Try Opteryx

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

Returns

FLOAT — Returns the computed result as FLOAT.