Skip to main content

Module ivf

Module ivf 

Source
Expand description

IVF (Inverted File Index) module for vector search

This module provides the core IVF infrastructure that can be combined with different quantization methods (RaBitQ, PQ, etc.):

  • coarse - Coarse centroids for IVF partitioning (k-means clustering)
  • cluster - Generic cluster data storage
  • soar - SOAR (Spilling with Orthogonality-Amplified Residuals) for better recall

Re-exports§

pub use cluster::ClusterData;
pub use cluster::ClusterStorage;
pub use cluster::QuantizedCode;

Modules§

cluster
Generic cluster data storage for IVF indexes

Structs§

CoarseCentroids
Coarse centroids for IVF - trained once, shared across all segments
CoarseConfig
Configuration for coarse quantizer
MultiAssignment
Multi-cluster assignment result from SOAR
SoarConfig
Configuration for SOAR (Spilling with Orthogonality-Amplified Residuals)