Python module: cuvs.neighbors.ivf_sq
IvfSq index object. This object stores the trained IvfSq index state which can be used to perform nearest neighbors searches.
Members
The number of inverted lists (clusters)
dimensionality of the cluster centers
Get the cluster centers corresponding to the lists in the original space
Parameters to build index for IvfSq nearest neighbor search
Parameters
Constructor
Members
Supplemental parameters to search IVF-SQ index
Parameters
Constructor
Members
@auto_sync_resources
Build the IvfSq index from the dataset for efficient search.
IVF-SQ (Scalar Quantization) combines an IVF coarse quantizer with per-dimension scalar quantization. Each vector’s residual is encoded as one byte per dimension, providing ~4x memory reduction vs IVF-Flat with higher recall than IVF-PQ at similar memory budgets.
Parameters
Returns
Examples
@auto_sync_resources
Extend an existing index with new vectors.
The input array can be either CUDA array interface compliant matrix or array interface compliant matrix in host memory.
Parameters
Returns
Examples
@auto_sync_resources
Loads index from file.
Saving / loading the index is experimental. The serialization format is subject to change, therefore loading an index saved with a previous version of cuvs is not guaranteed to work.
Parameters
Returns
@auto_sync_resources
Saves the index to a file.
Saving / loading the index is experimental. The serialization format is subject to change.
Parameters
Examples
@auto_sync_resources
@auto_convert_output
Find the k nearest neighbors for each query.
Parameters
Examples