COSINE_DISTANCE

Cosine distance over numeric vectors or semantic text inputs.

Category: Vector / Embedding Functions

Syntax

COSINE_DISTANCE(arr, vec)
COSINE_DISTANCE(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.