Neighbors Vamana Index Module
Rust module: cuvs::neighbors::vamana::index
Source: rust/cuvs/src/neighbors/vamana/index.rs
Index
Vamana ANN index.
Methods
build
Builds a Vamana index for efficient DiskANN search.
The build uses the Vamana insertion-based algorithm: starting from an
empty graph it iteratively inserts batches of nodes, performing a greedy
search for each inserted vector and connecting it to all nodes traversed;
reverse edges are added and robustPrune is applied to improve quality.
[IndexParams] controls the degree of the final graph.
dataset is a row-major matrix on the host or device implementing
[AsDlTensor]; it is copied into the index, so Index carries no
lifetime.
Source: rust/cuvs/src/neighbors/vamana/index.rs:33
serialize
Saves the Vamana index to a file.
Matches the on-disk format used by the DiskANN open-source repository, so the serialized index can be consumed there for graph search.
filename is the file prefix under which the index is saved;
include_dataset controls whether the dataset is embedded.
Source: rust/cuvs/src/neighbors/vamana/index.rs:65
Source: rust/cuvs/src/neighbors/vamana/index.rs:19