the.ai

Retrieval / Indexing

verified

Approximate Nearest Neighbor

Comparing a query against every stored vector is exact and, past a few million documents, too slow. Approximate search arranges the vectors so most can be ruled out without ever being examined, accepting that it will occasionally miss the true nearest neighbour in exchange for looking at a small fraction of them.

Viz primitive · budget-splitexamined = 200

examined holds 2% of the budget; rest holds the remaining 98%.

Vectors an approximate search actually compares against those it never looks at. Drag the search effort to watch the examined fraction grow — recall is bought one comparison at a time.

200

Reviewed by opendroid · 2026-08-04

  • arXiv:1603.09320 — Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs
  • arXiv:1702.08734 — Billion-scale similarity search with GPUs