← All examples · Home

13. Metric comparison

BrowserVec supports three similarity metrics: cosine (angle between vectors), dot (un-normalized dot product), and l2 (negative squared Euclidean distance). Only cosine and dot support quantization. For all metrics, higher score = closer.

ready.