COSINE_SIMILARITY

Cosine similarity over numeric vectors or semantic text inputs.

Category: Vector / Embedding Functions

Syntax

COSINE_SIMILARITY(arr, vec)
COSINE_SIMILARITY(arr, vec)

Arguments

  • arr vector First vector or text input.
  • vec vector Second vector or text input.

Returns

double — Returns the computed result as double.