Neighbors Ivf Pq Index Module
Rust module: cuvs::neighbors::ivf_pq::index
Source: rust/cuvs/src/neighbors/ivf_pq/index.rs
Index
IVF-PQ ANN index.
Methods
build
Builds an IVF-PQ index over dataset for compressed, efficient search.
dataset is a row-major matrix on the host or device implementing
[AsDlTensor]. It is copied into the index, so the caller may free it
once this call returns (hence Index carries no lifetime).
Source: rust/cuvs/src/neighbors/ivf_pq/index.rs:25
search
Searches the index for the k nearest neighbors of each query.
queries, neighbors, and distances must reside in device memory and
implement [AsDlTensor] / [AsDlTensorMut]. neighbors receives the
neighbor indices and distances their distances; both are written in
place.
Source: rust/cuvs/src/neighbors/ivf_pq/index.rs:56
Source: rust/cuvs/src/neighbors/ivf_pq/index.rs:17