Approximate Nearest Neighbor Search (ANN)
Approximate Nearest Neighbor Search (ANN)
What problem it solves
Find the nearest vectors to a query quickly among billions, accepting a small amount of missed recall.
What it is
Exact nearest-neighbor search is too slow at scale; ANN approximates with graph indexes, quantization or hashing.
HNSW uses a multi-layer navigable graph and brings query cost close to logarithmic.
Why it matters
ANN is the core of a vector database. Recall, memory and latency must be tuned together; changing index parameters changes retrieval quality.
Chinese aliases
Terms in the same area
What you can do now
Models atlas: which quantisations exist and which tier fits your VRAM ↗
Sources
Use this term in a task
Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.