You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc
+85Lines changed: 85 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,91 @@ Replacement syntax for deprecated and removed features are also indicated.
21
21
Cypher 25 was introduced in Neo4j 2025.06 and can only be used on Neo4j 2025.06+ databases.
22
22
Features removed in Cypher 25 are still available on Neo4j 2025.06+ databases either by prepending a query with `CYPHER 5` or by having Cypher 5 as the default language for the database.
a| Introduced a `VECTOR` value type that can be stored as xref:indexes/semantic-indexes/vector-indexes.adoc#embeddings[embedding] properties on nodes and relationships and utilized for efficient semantic retrieval using Neo4j's xref:indexes/semantic-indexes/vector-indexes.adoc[vector indexes] and xref:genai-integrations.adoc[GenAI plugin].
43
+
For more information, see xref:values-and-types/vector.adoc[Values and types -> Vectors].
44
+
45
+
a|
46
+
label:functionality[]
47
+
label:new[]
48
+
[source, cypher, role="noheader"]
49
+
----
50
+
WITH vector([1, 2, 3], 3, INTEGER) AS vector
51
+
RETURN vector, valueType(vector) AS vectorType
52
+
----
53
+
54
+
a| New xref:functions/vector.adoc#functions-vector[`vector()`] function for the construction of xref:values-and-types/vector.adoc[`VECTOR`] values.
55
+
56
+
a|
57
+
label:functionality[]
58
+
label:new[]
59
+
[source, cypher, role="noheader"]
60
+
----
61
+
RETURN vector_dimension_count(vector([1, 2, 3], 3, INTEGER)) AS size
62
+
----
63
+
64
+
a| New xref:functions/vector.adoc#functions-vector_dimension_count[`vector_dimension_count()`] function, which returns the dimension of a xref:values-and-types/vector.adoc[`VECTOR`] value.
a| New xref:functions/vector.adoc#functions-vector_distance[`vector_distance()`] function, which returns the distance between two xref:values-and-types/vector.adoc[`VECTOR`] values based on the selected `vectorDistanceMetric` algorithm.
75
+
76
+
a|
77
+
label:functionality[]
78
+
label:new[]
79
+
[source, cypher, role="noheader"]
80
+
----
81
+
RETURN vector_norm(vector([1.0, 5.0, 3.0, 6.7], 4, FLOAT), EUCLIDEAN) AS norm
82
+
----
83
+
84
+
a| New xref:functions/vector.adoc#functions-vector_norm[`vector_norm()`] function, which returns the distance between the given vector and an origin vector, which is a vector with the same dimension with all coordinates set to zero, calculated using the specified `vectorDistanceMetric`.
a| The xref:functions/list.adoc#functions-tofloatlist[`toFloatList()`], xref:functions/list.adoc#functions-tointegerlist[`toIntegerList()`], xref:functions/vector.adoc#functions-similarity-cosine[`vector.similarity.cosine()`], and xref:functions/vector.adoc#functions-similarity-euclidean[`vector.similarity.euclidean()`] functions now accept `VECTOR` values as input arguments.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/expressions/predicates/type-predicate-expressions.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ RETURN val, val IS :: INTEGER AS isInteger
40
40
41
41
[role=label-new-2025.xx]
42
42
[[type-predicate-vector]]
43
-
=== VECTOR values
43
+
=== Vector values
44
44
45
45
Whilst it is not possible to store a xref:values-and-types/vector.adoc[`VECTOR`] value without a coordinate type and dimension, it is possible to use the `VECTOR` supertype (encompassing all combinations of `VECTOR<TYPE>(DIMENSION)`) in type predicate expressions.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/values-and-types/vector.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Cypher supports the construction of a `VECTOR` value that can be stored as xref:
9
9
[[vector-type]]
10
10
== The vector type
11
11
12
-
The `VECTOR` type is a fixed-length, ordered collection of of numeric coordinate values (`INTEGER` or `FLOAT`) stored as a single unit.
12
+
The `VECTOR` type is a fixed-length, ordered collection of numeric coordinate values (`INTEGER` or `FLOAT`) stored as a single unit.
13
13
It is defined by its dimension, which sets how many numeric values it holds, and its coordinate type, which specifies the specific numeric data type for those numbers.
14
14
Each numeric value in the list represents a coordinate along one of the vector’s defined dimensions.
15
15
The coordinate type controls the type of each coordinate in the `VECTOR`, influencing precision and storage size.
0 commit comments