Exact search compares the query with every vector (brute force): perfect recall but cost grows linearly with corpus size, which is too slow for millions of vectors at low latency.
ANN indexes build a structure (graph, clusters, compressed codes) that finds very likely nearest neighbors while examining a small fraction of vectors.
The core trade-off is recall versus latency versus memory; tuning parameters moves along that curve, and recall is measured against exact search results.
Brute force remains fine for small corpora (a few hundred thousand vectors) and for offline evaluation.
Loading…