Skip to main content

Module ivf

Module ivf 

Source

Re-exports§

pub use index::IvfPqIndex;
pub use params::IvfPqParams;

Modules§

checkpoint
Checkpoint encoding for IvfPqIndex: centroids, the PQ codec, every cell’s ids, codes and FP32 vectors, the tombstones, and the training stamp. Codes are stored, never recomputed on load.
index
IVF-PQ index: inverted file with product quantization.
kmeans
k-means++ seeding and Lloyd iterations for the IVF coarse quantizer.
params
IVF-PQ index parameters.
search
IVF-PQ search: probe the nearest cells, rank their entries by PQ distance, and rerank the best of them by exact FP32 distance.