Vamana
Python module: cuvs.neighbors.vamana
Index
Vamana index object. This object stores the trained Vamana index state which can be used to perform nearest neighbors searches.
Members
trained
IndexParams
Parameters for building a Vamana index
Parameters
Constructor
Members
metric
graph_degree
visited_size
vamana_iters
alpha
max_fraction
batch_base
queue_size
reverse_batchsize
build
@auto_sync_resources
Build the Vamana index from the dataset for efficient search.
The build utilities the Vamana insertion-based algorithm to create the graph. The algorithm starts with an empty graph and iteratively inserts batches of nodes. Each batch involves performing a greedy search for each vector to be inserted, and inserting it with edges to all nodes traversed during the search. Reverse edges are also inserted and robustPrune is applied to improve graph quality. The index_params struct controls the degree of the final graph.
The following distance metrics are supported:
- L2Expanded
Parameters
Returns
Examples
save
@auto_sync_resources
Saves the index to a file.
Matches the file format used by the DiskANN open-source repository, allowing cross-compatibility.
Parameters
Examples