Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions modules/ROOT/pages/values-and-types/vector.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ vector([1.05, 0.123, 5], 3, FLOAT32)
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. +
Each number in the list can also be seen as a coordinate along one of the vector's dimensions.

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


[[valid-values]]
=== Valid values

- A `VECTOR` value must have a dimension and a coordinate type.
- A `VECTOR` value must have a dimension and a coordinate type (see table below for supported types).
- The dimension of a `VECTOR` value must be larger than `0` and less than or equal to `4096`.
- Vectors cannot contain lists as elements.
- Supported coordinate types are: +
+

[[supported-coordinate-types]]
.Supported coordinate types
[options="header",cols="2*<m"]
|===
| Default name | Alias
Expand Down Expand Up @@ -258,6 +262,9 @@ For more information, see:
- Storing vector embeddings as `VECTOR` properties with a defined coordinate type allows them to be stored more efficiently.
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.

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

For information about how to store embeddings as `VECTOR` values with the xref:genai-integrations.adoc[GenAI plugin], see:

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