
IVF (Inverted File Index)
Clustering-based approximate nearest neighbor algorithm that partitions vector space into Voronoi cells. Fast search through coarse-to-fine strategy, often combined with Product Quantization (IVF-PQ).
About this tool
Overview
IVF (Inverted File Index) partitions the vector space into clusters (Voronoi cells) using k-means, enabling fast approximate search by checking only relevant clusters.
How It Works
- Cluster vectors: K-means creates centroids
- Assign to clusters: Each vector assigned to nearest centroid
- Build inverted lists: Vectors grouped by cluster
- Query: Find nearest centroids, search their lists
Variants
- IVF-FLAT: No compression, exact distances within clusters
- IVF-PQ: Product Quantization for compression
- IVF-SQ: Scalar Quantization variant
Parameters
- nlist: Number of clusters
- nprobe: Clusters to search at query time
Advantages
- Fast search through pruning
- Memory efficient (with PQ)
- Scalable to large datasets
- Good recall-speed balance
Used In
- FAISS
- Milvus
- pgvector
- LanceDB
Pricing
Open algorithm.
Surveys
Loading more......
Information
Websitethenewstack.io
PublishedMar 11, 2026
Categories
Tags
Similar Products
6 result(s)