Neighbors Ivf Flat Index Module
Rust module: cuvs::neighbors::ivf_flat::index
Source: rust/cuvs/src/neighbors/ivf_flat/index.rs
Index
IVF-Flat ANN index.
Methods
build
Builds an IVF-Flat index over dataset for 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).
Supported dataset/query dtypes in the current C-backed implementation are
f32, f16, i8, and u8.
Source: rust/cuvs/src/neighbors/ivf_flat/index.rs:29
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_flat/index.rs:60
search_filtered
Searches the index with a row-level bitset filter.
Source: rust/cuvs/src/neighbors/ivf_flat/index.rs:80
Source: rust/cuvs/src/neighbors/ivf_flat/index.rs:18