Is the L2 distance score in vector search an inverted score? #1261
-
Hi there, the L2 scores and cosine scores for LanceDB vector search suggests that smaller |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The L2 score is not inverted. The cosine score is "cosine distance" and not "cosine similarity". Cosine distance is defined as In all cases a smaller |
Beta Was this translation helpful? Give feedback.
The L2 score is not inverted.
The cosine score is "cosine distance" and not "cosine similarity".
Cosine distance is defined as
1 - cosine_similarity
(cosine distance is inverted cosine similarity).In all cases a smaller
_distance
means more similar.