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