COSINE_DISTANCE
Cosine distance over numeric vectors or semantic text inputs.
Category: Vector / Embedding Functions
Syntax
COSINE_DISTANCE(arr, vec)
COSINE_DISTANCE(arr, vec)
Arguments
- arr
vectorFirst vector or text input. - vec
vectorSecond vector or text input.
Returns
double — Returns the computed result as double.