Labs / LLM and RAG Lab
Approximate nearest neighbors
Partition vectors into clusters, probe a few, and trade recall against the number of distance computations.
Theory and worked examples: Vector search
Approximate nearest neighbors (IVF)
500 synthetic 2D vectors. Click or drag to move the query. IVF clusters them into cells and scans only the nprobe cells nearest the query.
querytrue top-k, foundtrue top-k, missed× centroids (bold = probed)