Skip to content

Commit 7ba2c33

Browse files
authored
Merge branch 'dev' into dev_add_coll_functions
2 parents a5c00e4 + 492132b commit 7ba2c33

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

modules/ROOT/pages/constraints/managing-constraints.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ Added 1 constraint.
344344
345345
======
346346

347+
[[vector-type-constraints]]
347348
.Create `VECTOR` property type constraints label:cypher[Cypher 25 only] label:new[Introduced in Neo4j 2025.10]
348349
======
349350

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,19 @@ vector([1.05, 0.123, 5], 3, FLOAT32)
2424
In this example, `[1.05, 0.123, 5]` is the list of values, `3` its dimension, and `FLOAT32` the data type of the individual entries. +
2525
Each number in the list can also be seen as a coordinate along one of the vector's dimensions.
2626

27+
[TIP]
28+
You can convert vectors into lists via the functions xref:functions/list.adoc#functions-tointegerlist[`toIntegerList()`] and xref:functions/list.adoc#functions-tofloatlist[`toFloatList()`].
29+
2730

2831
[[valid-values]]
2932
=== Valid values
3033

31-
- A `VECTOR` value must have a dimension and a coordinate type.
34+
- A `VECTOR` value must have a dimension and a coordinate type (see table below for supported types).
3235
- The dimension of a `VECTOR` value must be larger than `0` and less than or equal to `4096`.
3336
- Vectors cannot contain lists as elements.
34-
- Supported coordinate types are: +
35-
+
37+
38+
[[supported-coordinate-types]]
39+
.Supported coordinate types
3640
[options="header",cols="2*<m"]
3741
|===
3842
| Default name | Alias
@@ -149,7 +153,7 @@ RETURN n.vectorProp AS vectorProp
149153
.Query
150154
[source, cypher]
151155
----
152-
CREATE (n:Label {vectorProp: $floatList})
156+
CREATE (n:Label {vectorProp: vector($floatList, 5, FLOAT)})
153157
RETURN n.vectorProp AS vectorProp
154158
----
155159
@@ -258,6 +262,9 @@ For more information, see:
258262
- Storing vector embeddings as `VECTOR` properties with a defined coordinate type allows them to be stored more efficiently.
259263
Moreover, reducing a vector's coordinate type (e.g., from `INTEGER16` to `INTEGER8`) downsizes storage requirements and improves performance, provided all values remain within the range supported by the smaller type.
260264

265+
[TIP]
266+
You can convert vectors into lists via the functions xref:functions/list.adoc#functions-tointegerlist[`toIntegerList()`] and xref:functions/list.adoc#functions-tofloatlist[`toFloatList()`].
267+
261268
For information about how to store embeddings as `VECTOR` values with the xref:genai-integrations.adoc[GenAI plugin], see:
262269

263270
* xref:genai-integrations.adoc#single-embedding[Generate a single embedding and store it]

0 commit comments

Comments
 (0)