注册并分享邀请链接,可获得视频播放与邀请奖励。

Elastic (@elastic) “Here are 5 distance metrics in vector search. But how do you choose the right on” — TopicDigg

Elastic 的个人资料封面
Elastic 的头像
Elastic
@elastic
Where developers learn, build, and share. Your source for hands-on demos, cheat sheets, explainers and more.
加入 October 2009
183 正在关注    65.3K 粉丝
Here are 5 distance metrics in vector search. But how do you choose the right one? • L1 (Manhattan): sum of absolute differences, exact kNN only with no HNSW support • L2 (Euclidean): straight-line distance, the safe default for most models • Cosine similarity: angle between vectors, magnitude ignored • Dot product: same ranking as cosine on normalized vectors, less compute • Max inner product: dot product without the normalization constraint Most teams default to cosine and move on. That works until your model outputs non-normalized vectors, and suddenly dot product or max inner product is the better fit. Scoring formulas and config details in the blog.
显示更多
0
58
1.2K
98
转发到社区