Skip to content

Commit b3bd7a5

Browse files
minor fixes and additions entries
1 parent 2a9e44b commit b3bd7a5

File tree

4 files changed

+88
-3
lines changed

4 files changed

+88
-3
lines changed

modules/ROOT/pages/deprecations-additions-removals-compatibility.adoc

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,91 @@ Replacement syntax for deprecated and removed features are also indicated.
2121
Cypher 25 was introduced in Neo4j 2025.06 and can only be used on Neo4j 2025.06+ databases.
2222
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.
2323

24+
[[cypher-deprecations-additions-removals-2025.xx]]
25+
== Neo4j 2025.xx
26+
27+
=== New in Cypher 25
28+
29+
[cols="2", options="header"]
30+
|===
31+
| Feature
32+
| Details
33+
34+
a|
35+
label:functionality[]
36+
label:new[]
37+
[source, cypher, role="noheader"]
38+
----
39+
VECTOR([1.05, 0.123, 5], 3, FLOAT32 NOT NULL)
40+
----
41+
42+
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.
65+
66+
a|
67+
label:functionality[]
68+
label:new[]
69+
[source, cypher, role="noheader"]
70+
----
71+
RETURN vector_distance(vector([1, 2, 3], 3, INT), vector([1, 2, 4], 3, INT), COSINE) AS distance
72+
----
73+
74+
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`.
85+
86+
|===
87+
88+
=== Updated in Cypher 25
89+
90+
[cols="2", options="header"]
91+
|===
92+
| Feature
93+
| Details
94+
95+
a|
96+
label:functionality[]
97+
label:updated[]
98+
[source, cypher, role="noheader"]
99+
----
100+
RETURN toFloatList(Vector([1, 2, 3], 3, INTEGER64)),
101+
toIntegerList(Vector([1, 2, 3], 3, INTEGER8)),
102+
vector.similarity.cosine(vector([3, 5, 7], 3, INT), vector([-1, -2, -3], 3, INT)),
103+
vector.similarity.euclidean(vector([3, 5, 7], 3, INT), vector([-1, -2, -3], 3, INT))
104+
----
105+
106+
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.
107+
|===
108+
24109
[[cypher-deprecations-additions-removals-2025.06]]
25110
== Neo4j 2025.06
26111

modules/ROOT/pages/expressions/predicates/type-predicate-expressions.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ RETURN val, val IS :: INTEGER AS isInteger
4040

4141
[role=label-new-2025.xx]
4242
[[type-predicate-vector]]
43-
=== VECTOR values
43+
=== Vector values
4444

4545
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.
4646

modules/ROOT/pages/functions/vector.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ RETURN vector_dimension_count(vector([1, 2, 3], 3, INTEGER)) AS size
261261

262262
.Details
263263
|===
264-
| *Syntax* 3+| `vector_dimension(vector1, vector2, vectorDistanceMetric)`
264+
| *Syntax* 3+| `vector_distance(vector1, vector2, vectorDistanceMetric)`
265265
| *Description* 3+| Returns a `FLOAT` representing the distance between the two vector values based on the selected `vectorDistanceMetric` algorithm.
266266
.4+| *Arguments* | *Name* | *Type* | *Description*
267267
| `vector1` | `VECTOR` | The first vector.

modules/ROOT/pages/values-and-types/vector.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Cypher supports the construction of a `VECTOR` value that can be stored as xref:
99
[[vector-type]]
1010
== The vector type
1111

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.
1313
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.
1414
Each numeric value in the list represents a coordinate along one of the vector’s defined dimensions.
1515
The coordinate type controls the type of each coordinate in the `VECTOR`, influencing precision and storage size.

0 commit comments

Comments
 (0)