Try Opteryx

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 varchar First text input.
  • vec varchar Second text input.

Returns

FLOAT — Returns the computed result as FLOAT.