Ivf Flat Index Module
Rust module: cuvs::ivf_flat::index
Source: rust/cuvs/src/ivf_flat/index.rs
Index
Ivf-Flat ANN Index
Methods
build
Builds a new Index from the dataset for efficient search.
Arguments
res- Resources to useparams- Parameters for building the indexdataset- A row-major matrix on either the host or device to index
Source: rust/cuvs/src/ivf_flat/index.rs:25
new
Creates a new empty index
Source: rust/cuvs/src/ivf_flat/index.rs:39
search
Perform a Approximate Nearest Neighbors search on the Index
Arguments
res- Resources to useparams- Parameters to use in searching the indexqueries- A matrix in device memory to query forneighbors- Matrix in device memory that receives the indices of the nearest neighborsdistances- Matrix in device memory that receives the distances of the nearest neighbors
Source: rust/cuvs/src/ivf_flat/index.rs:56
Source: rust/cuvs/src/ivf_flat/index.rs:15