Neighbors Ivf Pq Module
Rust module: cuvs::neighbors::ivf_pq
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs
IVF-PQ: an inverted-file index that product-quantizes the vectors. Like
IVF-Flat it partitions the dataset into n_lists clusters and scans the
n_probes closest at query time, but compresses each vector into pq_dim
codes of pq_bits bits — much smaller, slightly less accurate.
Build an [Index] from a dataset, then search it with
device-resident queries and output buffers. Tensors are borrowed through the
AsDlTensor / AsDlTensorMut traits; see the dlpack
module for the tensor model and examples/cagra.rs for the same build/search
workflow.
index::Index
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs:19
params::{IndexParams, SearchParams}
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs:20
CodebookGen
Strategy for creating PQ codebooks.
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs:28
ListLayout
Memory layout of the IVF-PQ list data.
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs:56
LutDType
Lookup-table dtype used during IVF-PQ search.
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs:84
InternalDistanceDType
Accumulator dtype used for internal IVF-PQ distance computation.
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs:106
IvfPqError
Error type for IVF-PQ operations.
Source: rust/cuvs/src/neighbors/ivf_pq/mod.rs:125