COSINE_DISTANCE
Embeds both texts with the active embedding provider and returns 1 - cosine similarity.
Category: Text Similarity Functions
Syntax
sql
COSINE_DISTANCE(arr, vec)Arguments
- arr
varcharFirst text input. - vec
varcharSecond text input.
Returns
FLOAT — Returns the computed result as FLOAT.