Skip to main content Link Menu Expand (external link) Document Search Copy Copied

VECTOR() data type

Vector data types store a specified number of floating point values in an array.

These vectors can be compared using the COSINE_DISTANCE() function.




Argument Description Additional information
<length> Integer value representing the number of elements in the array Cannot have a zero length

Additional information

  • values in the array must be floats
  • vector itself can be null
  • maximum precision is 64-bit float

Value definition

Column data type Assignment Additional information
VECTOR(n) {<value>,...} n values must be inserted

Use semicolons to separate values in a CSV data source intended for VECTOR columns: e.g., <previous-value>,<value>;...,<next-value>


Further information