Function Description
vector_avg(array) Returns the element-wise mean of float vectors in a group. All vectors must have the same dimension.
vector_cosine_similarity(array1, array2) Returns the cosine similarity between two float vectors. The vectors must have the same dimension.
vector_inner_product(array1, array2) Returns the inner product (dot product) between two float vectors. The vectors must have the same dimension.
vector_l2_distance(array1, array2) Returns the Euclidean (L2) distance between two float vectors. The vectors must have the same dimension.
vector_norm(vector, degree) Returns the Lp norm of a float vector using the specified degree. Degree defaults to 2.0 (Euclidean norm) if unspecified. Supported values: 1.0 (L1 norm), 2.0 (L2 norm), float('inf') (infinity norm).
vector_normalize(vector, degree) Normalizes a float vector to unit length using the specified norm degree. Degree defaults to 2.0 (Euclidean norm) if unspecified. Supported values: 1.0 (L1 norm), 2.0 (L2 norm), float('inf') (infinity norm).
vector_sum(array) Returns the element-wise sum of float vectors in a group. All vectors must have the same dimension.