Vector
Represents a vector of floating-point values. Used for storing embeddings of text.
Properties
Functions
Link copied to clipboard
Calculates the cosine similarity between this vector and another vector. The result is a value between -1 and 1, where 1 means the vectors are identical, 0 means they are orthogonal, and -1 means they are completely opposite.
Link copied to clipboard
Calculates the dot product of this vector and the given vector. The dot product is the sum of the products of the corresponding elements of the two vectors.
Link copied to clipboard
Calculates the Euclidean distance between this vector and another vector. The result is a non-negative value, where 0 means the vectors are identical.