cosine_similarity
Computes 1 - dot(a, b) / (||a|| * ||b||) over two equal-length array(float64) embeddings encoded as JSON-array text. Range [0, 2]: 0 = identical direction, 1 = orthogonal, 2 = opposite. Length mism…
cosine_similarity(…) → Float64Kind · scalar
Computes 1 - dot(a, b) / (||a|| * ||b||) over two equal-length array(float64) embeddings encoded as JSON-array text. Range [0, 2]: 0 = identical direction, 1 = orthogonal, 2 = opposite. Length mismatch or a zero-magnitude vector yields NULL.
Aliases · cosine_distance
Part of the Vector family.
cosine_distance
Computes 1 - dot(a, b) / (||a|| * ||b||) over two equal-length array(float64) embeddings encoded as JSON-array text. Range [0, 2]: 0 = identical direction, 1 = orthogonal, 2 = opposite. Length mism…
dot_product
Computes sum_i a_i * b_i over two equal-length array(float64) embeddings encoded as JSON-array text. Length mismatch yields NULL. For maximum-inner-product ANN ordering, use negative_inner_product …