Vector Functions
Explore vector functions. This section details SQL functions for manipulating and querying vector data types, enabling efficient similarity search and AI/ML applications within your database.
Last updated
Was this helpful?
Explore vector functions. This section details SQL functions for manipulating and querying vector data types, enabling efficient similarity search and AI/ML applications within your database.
Calculate distance between vectors. This function computes the distance between two vectors using either Euclidean or Cosine metric, depending on the index.
Calculate Cosine distance. This function computes the Cosine distance between two vectors, measuring the cosine of the angle between them.
Calculate Euclidean distance. This function computes the Euclidean (L2) distance between two vectors, representing the straight-line distance.
Convert text to vector. This function parses a JSON array string representation of a vector and converts it into the binary VECTOR data type.
Convert vector to text. This function takes a binary VECTOR data type and returns its JSON array string representation.
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?
Was this helpful?

