3 ms·
Tend to avoid Euclidean distance.
by gbacon 1y ago
Tend to avoid Euclidean distance.
- crystal_revenge 1y agoWhen the vectors are normalized to unit length cosine similarity and Euclidean distance are equivalent. This an optimization that many vector dbs use in retrieval since it is typically much faster to compute Euclidean distance rather than cosine.