Skip to content

Commit 9c4107f

Browse files
cypher 25 information
1 parent 954098d commit 9c4107f

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

modules/ROOT/pages/functions/index.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ Vector functions allow you to compute the similarity scores of vector pairs.
815815

816816
1.1+| xref::functions/vector.adoc#functions-vector[`vector()`]
817817
| `vector(vectorValue :: STRING \| LIST<INTEGER \| FLOAT>, dimension :: INTEGER, coordinateType :: [INTEGER64, INTEGER32, INTEGER16, INTEGER8, FLOAT64, FLOAT32]) :: VECTOR`
818-
| Constructs a `VECTOR` value. label:new[Introduced in Neo4j 2025.xx]
818+
| Constructs a `VECTOR` value. label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
819819

820820
1.1+| xref::functions/vector.adoc#functions-similarity-cosine[`vector.similarity.cosine()`]
821821
| `vector.similarity.cosine(a :: VECTOR \| LIST<INTEGER \| FLOAT>, b :: VECTOR \| LIST<INTEGER \| FLOAT>) :: FLOAT`
@@ -827,15 +827,15 @@ Vector functions allow you to compute the similarity scores of vector pairs.
827827

828828
1.1+| xref::functions/vector.adoc#functions-vector_dimension_count[`vector_dimension_count()`]
829829
| `(vector :: VECTOR) :: INTEGER`
830-
| Returns the dimension of a `VECTOR`. label:new[Introduced in Neo4j 2025.xx]
830+
| Returns the dimension of a `VECTOR`. label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
831831

832832
1.1+| xref::functions/vector.adoc#functions-vector_distance[`vector_distance()`]
833833
| `(vector1 :: VECTOR, vector2 :: VECTOR, vectorDistanceMetric :: [EUCLIDEAN, EUCLIDEAN_SQUARED, MANHATTAN, COSINE, DOT, HAMMING]) :: FLOAT`
834-
| Returns a `FLOAT` representing the distance between the two vector values based on the selected `vectorDistanceMetric` algorithm. label:new[Introduced in Neo4j 2025.xx]
834+
| Returns a `FLOAT` representing the distance between the two vector values based on the selected `vectorDistanceMetric` algorithm. label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
835835

836836
1.1+| xref::functions/vector.adoc#functions-vector_norm[`vector_norm()`]
837837
| `vector_norm(vector :: VECTOR, vectorDistanceMetric :: [EUCLIDEAN, MANHATTAN]) :: FLOAT`
838-
| Returns a `FLOAT` representing the distance between the given vector and a vector of the same dimension with all coordinates set to zero, calculated using the specified `vectorDistanceMetric`. label:new[Introduced in Neo4j 2025.xx]
838+
| Returns a `FLOAT` representing the distance between the given vector and a vector of the same dimension with all coordinates set to zero, calculated using the specified `vectorDistanceMetric`. label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
839839

840840
|===
841841

modules/ROOT/pages/functions/vector.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Vector functions allow you to construct xref:values-and-types/vector.adoc[`VECTOR` values], compute the similarity and distance scores of vector pairs, and calculate the size of a vector.
77

8-
[role=label--new-2025.xx]
8+
[role=label--new-Neo4j-2025.xx label--cypher-25-only]
99
[[functions-vector]]
1010
== vector()
1111

@@ -211,7 +211,7 @@ This returns the two nearest neighbors.
211211
======
212212

213213

214-
[role=label--new-2025.xx]
214+
[role=label--new-Neo4j-2025.xx label--cypher-25-only]
215215
[[functions-vector_dimension_count]]
216216
== vector_dimension_count()
217217

@@ -255,7 +255,7 @@ RETURN vector_dimension_count(vector([1, 2, 3], 3, INTEGER)) AS size
255255
=====
256256

257257

258-
[role=label--new-2025.xx]
258+
[role=label--new-Neo4j-2025.xx label--cypher-25-only]
259259
[[functions-vector_distance]]
260260
== vector_distance()
261261

@@ -343,15 +343,15 @@ RETURN vector_distance(vector([1.0, 5.0, 3.0, 6.7], 4, FLOAT), vector([5.0, 2.5,
343343
344344
=====
345345

346-
[role=label--new-2025.xx]
346+
[role=label--new-Neo4j-2025.xx label--cypher-25-only]
347347
[[functions-vector_norm]]
348348
== vector_norm()
349349

350350
.Details
351351
|===
352352
| *Syntax* 3+| `vector_norm(vector, vectorDistanceMetric)`
353353
| *Description* 3+| Returns a `FLOAT` representing 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`.
354-
.4+| *Arguments* | *Name* | *Type* | *Description*
354+
.3+| *Arguments* | *Name* | *Type* | *Description*
355355
| `vector` | `VECTOR` | A vector for which the norm to the origin vector will be computed.
356356
| `vectorDistanceMetric` | `[EUCLIDEAN, MANHATTAN]` | The vector distance algorithm to calculate the distance by.
357357
| *Returns* 3+| `FLOAT`

modules/ROOT/pages/genai-integrations.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ If you want to generate many embeddings at once, use xref:genai-integrations.ado
7272
======
7373

7474
`genai.vector.encode()` returns a `LIST<FLOAT>`.
75-
To convert and store this value as a xref:values-and-types/vector.adoc[`VECTOR` property type (introduced in Neo4j 2025.xx)], use the xref:functions/vector.adoc#functions-vector[`vector()`] function.
75+
To convert and store this value as a xref:values-and-types/vector.adoc[`VECTOR` property type], use the xref:functions/vector.adoc#functions-vector[`vector()`] function.
7676
Storing `VECTOR` values on an on-prem instance requires Enterprise Edition and using Neo4j's link:{neo4j-docs-base-uri}/operations-manual/current/database-internals/store-formats/#store-format-overview[block format].
7777

7878
.Signature for `vector()` label:function[]
@@ -193,7 +193,7 @@ Each returned row contains the following columns:
193193
======
194194

195195
`genai.vector.encode()` returns a `LIST<FLOAT>`.
196-
To convert and store this value as a xref:values-and-types/vector.adoc[`VECTOR` property type (introduced in Neo4j 2025.xx)], use the xref:functions/vector.adoc#functions-vector[`vector()`] function.
196+
To convert and store this value as a xref:values-and-types/vector.adoc[`VECTOR` property type], use the xref:functions/vector.adoc#functions-vector[`vector()`] function.
197197
Storing `VECTOR` values on an on-prem instance requires Enterprise Edition and using Neo4j's link:{neo4j-docs-base-uri}/operations-manual/current/database-internals/store-formats/#store-format-overview[block format].
198198

199199
.Signature for `vector()` label:function[]

modules/ROOT/pages/indexes/semantic-indexes/vector-indexes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Each word or token in a text is typically represented as high-dimensional vector
4141

4242
The embedding for a particular data object can be created by both proprietary (such as https://cloud.google.com/vertex-ai[Vertex AI] or https://openai.com/[OpenAI]) and open source (such as https://github.com/UKPLab/sentence-transformers[sentence-transformers]) embedding generators, which can produce vector embeddings with dimensions such as 256, 768, 1536, and 3072.
4343
Vector embeddings are stored as `LIST<INTEGER | FLOAT>` properties on a node or relationship.
44-
As of Neo4j 2025.xx, they can also be more efficiently stored as xref:values-and-types/vector.adoc[`VECTOR`] properties.
44+
As of Neo4j 2025.xx, they can also be more efficiently stored as xref:values-and-types/vector.adoc[`VECTOR`] properties using Cypher 25.
4545

4646
[NOTE]
4747
====

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ More information about the data values and types supported by Cypher can be foun
1313
* xref:values-and-types/spatial.adoc[]
1414
* xref:values-and-types/lists.adoc[]
1515
* xref:values-and-types/maps.adoc[]
16-
* xref:values-and-types/vector.adoc[] label:new[Introduced in Neo4j 2025.xx]
16+
* xref:values-and-types/vector.adoc[] label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
1717
* xref:values-and-types/graph-references.adoc[]
1818
* xref::values-and-types/working-with-null.adoc[]
1919
* xref::values-and-types/casting-data.adoc[]

modules/ROOT/pages/values-and-types/ordering-equality-comparison.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Values of different types are ordered based on a predefined hierarchy, from leas
5151
* xref::values-and-types/property-structural-constructed.adoc#structural-types[`RELATIONSHIP`]
5252
* xref::values-and-types/lists.adoc[`LIST`]
5353
* xref::patterns/fixed-length-patterns.adoc#path-patterns[`PATH`]
54-
* xref::values-and-types/vector.adoc[`VECTOR`] label:new[Introduced in Neo4j 2025.xx]
54+
* xref::values-and-types/vector.adoc[`VECTOR`] label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.xx]
5555
* xref::values-and-types/spatial.adoc[`POINT`]
5656
* xref::values-and-types/temporal.adoc[`ZONED DATETIME`]
5757
* xref::values-and-types/temporal.adoc[`LOCAL DATETIME`]

modules/ROOT/pages/values-and-types/property-structural-constructed.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This section will first provide a brief overview of each type, and then go into
1212

1313
A property type value is one that can be stored as a node or relationship property.
1414

15-
Property types are the most primitive types in Cypher and include the following: `BOOLEAN`, `DATE`, `DURATION`, `FLOAT`, `INTEGER`, `LIST`, `LOCAL DATETIME`, `LOCAL TIME`, `POINT`, `STRING`, `VECTOR` (introduced in Neo4j 2025.xx) `ZONED DATETIME`, and `ZONED TIME`.
15+
Property types are the most primitive types in Cypher and include the following: `BOOLEAN`, `DATE`, `DURATION`, `FLOAT`, `INTEGER`, `LIST`, `LOCAL DATETIME`, `LOCAL TIME`, `POINT`, `STRING`, `VECTOR`, `ZONED DATETIME`, and `ZONED TIME`.
1616

1717
* Property types can be returned from Cypher queries.
1818
* Property types can be used as xref::syntax/parameters.adoc[parameters].
@@ -100,7 +100,7 @@ However, not all types can be used in all places.
100100
| `PROPERTY VALUE` | `ANY PROPERTY VALUE`
101101
| `RELATIONSHIP` | `ANY RELATIONSHIP`, `EDGE`, `ANY EDGE`
102102
| `STRING` | `VARCHAR`
103-
| `VECTOR<TYPE>(DIMENSION)` label:new[Introduced in Neo4j 2025.xx] | `VECTOR`, `VECTOR<TYPE>`, `VECTOR(DIMENSION)`, `VECTOR(DIMENSION, TYPE)`
103+
| `VECTOR<TYPE>(DIMENSION)` | `VECTOR`, `VECTOR<TYPE>`, `VECTOR(DIMENSION)`, `VECTOR(DIMENSION, TYPE)`
104104
| `ZONED DATETIME` | `TIMESTAMP WITH TIME ZONE`, `TIMESTAMP WITH TIMEZONE`
105105
| `ZONED TIME` | `TIME WITH TIME ZONE`, `TIME WITH TIMEZONE`
106106
| `INNER_TYPE_1 \| INNER_TYPE_2...` | `ANY<INNER_TYPE_1 \| INNER_TYPE_2...>`

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= Vectors
22
:description: Information about Cypher's `VECTOR` type.
3-
:page-role: new-2025.xx
3+
:page-role: cypher-25-only new-neo4j-2025.xx
44

55

66
Cypher supports the construction of a `VECTOR` value 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].

0 commit comments

Comments
 (0)