Expand description
IVF-PQ (Inverted File with Product Quantization) Hybrid Index
Combines IVF clustering for fast candidate retrieval with PQ compression for memory-efficient storage. This is similar to the approach used by FAISS and other production vector databases.
Architecture:
- IVF partitions vectors into clusters using k-means centroids
- Within each cluster, vectors are stored as PQ codes (compressed)
- Search: find nearest clusters → scan PQ codes within those clusters
Structs§
- IvfPq
Config - Configuration for IVF-PQ hybrid index
- IvfPq
Index - IVF-PQ Hybrid Index
- IvfPq
Search Result - Search result from IVF-PQ index
- IvfPq
Stats - Statistics about the IVF-PQ index