Skip to content

Commit b6e3589

Browse files
Mention list conversion possibilities in vectors (#1410)
1 parent 9523ebf commit b6e3589

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 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
@@ -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)