



Algorithms and techniques for finding nearest neighbors in high-dimensional vector spaces with speed-accuracy trade-offs. ANN methods like HNSW, IVF, and DiskANN enable billion-scale vector search by sacrificing small amounts of recall for massive performance gains over exact search.
Loading more......
Approximate Nearest Neighbor (ANN) search is a family of algorithms that find nearest neighbors with high probability while being orders of magnitude faster than exact search. ANN is essential for large-scale vector search applications.
Exact nearest neighbor search has O(n×d) complexity:
HNSW (Hierarchical Navigable Small World)
DiskANN/Vamana
IVF (Inverted File Index)
IVF-PQ (with Product Quantization)
Annoy (Approximate Nearest Neighbors Oh Yeah)
KD-trees / Ball trees
LSH (Locality-Sensitive Hashing)
Fraction of true nearest neighbors found:
All ANN algorithms allow tuning:
Example HNSW parameters:
ANN-Benchmarks.com
Key findings:
Consider:
Core technology; implementations vary by platform.