For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GitHubCUDA-X
    • Home
    • Installation
  • Getting Started
    • Introduction
    • Integrations
    • Use-cases
  • User Guide
    • API Guide
    • Benchmarking Guide
    • Field Guide
    • References
  • Developer Guide
    • Coding Guidelines
    • Contributing
  • API Reference
    • C API Documentation
    • Cpp API Documentation
    • Python API Documentation
    • Java API Documentation
    • Rust API Documentation
      • cuVS Cluster
      • cuVS Cluster Kmeans
      • cuVS Cluster Kmeans Params
      • cuVS
      • cuVS Dlpack
      • cuVS Error
      • cuVS Resources
      • cuVS Distance
      • cuVS Distance Type
      • cuVS Brute Force
      • cuVS Cagra
      • cuVS Cagra Index
      • cuVS Cagra Index Params
      • cuVS Cagra Search Params
      • cuVS IVF Flat
      • cuVS IVF Flat Index
      • cuVS IVF Flat Index Params
      • cuVS IVF Flat Search Params
      • cuVS IVF PQ
      • cuVS IVF PQ Index
      • cuVS IVF PQ Index Params
      • cuVS IVF PQ Search Params
      • cuVS Vamana
      • cuVS Vamana Index
      • cuVS Vamana Index Params
    • Go API Documentation
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Your Privacy Choices | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogocuVS
GitHubCUDA-X
On this page
  • IndexParams
  • new
  • set_metric
  • set_graph_degree
  • set_visited_size
  • set_vamana_iters
  • set_alpha
  • set_max_fraction
  • set_batch_base
  • set_queue_size
  • set_reverse_batchsize
API ReferenceRust API Documentation

Vamana Index Params Module

||View as Markdown|
Previous

cuVS Vamana Index

Next

Go API Documentation

Rust module: cuvs::vamana::index_params

Source: rust/cuvs/src/vamana/index_params.rs

IndexParams

1pub struct IndexParams(pub ffi::cuvsVamanaIndexParams_t); {
2 /* private fields */
3}

Methods

NameSource
newrust/cuvs/src/vamana/index_params.rs:15
set_metricrust/cuvs/src/vamana/index_params.rs:24
set_graph_degreerust/cuvs/src/vamana/index_params.rs:33
set_visited_sizerust/cuvs/src/vamana/index_params.rs:42
set_vamana_itersrust/cuvs/src/vamana/index_params.rs:50
set_alpharust/cuvs/src/vamana/index_params.rs:58
set_max_fractionrust/cuvs/src/vamana/index_params.rs:67
set_batch_baserust/cuvs/src/vamana/index_params.rs:75
set_queue_sizerust/cuvs/src/vamana/index_params.rs:83
set_reverse_batchsizerust/cuvs/src/vamana/index_params.rs:91

new

1pub fn new() -> Result<IndexParams>

Returns a new IndexParams

Source: rust/cuvs/src/vamana/index_params.rs:15

set_metric

1pub fn set_metric(self, metric: DistanceType) -> IndexParams

DistanceType to use for building the index

Source: rust/cuvs/src/vamana/index_params.rs:24

set_graph_degree

1pub fn set_graph_degree(self, graph_degree: u32) -> IndexParams

Maximum degree of output graph corresponds to the R parameter in the original Vamana literature.

Source: rust/cuvs/src/vamana/index_params.rs:33

set_visited_size

1pub fn set_visited_size(self, visited_size: u32) -> IndexParams

Maximum number of visited nodes per search corresponds to the L parameter in the Vamana literature

Source: rust/cuvs/src/vamana/index_params.rs:42

set_vamana_iters

1pub fn set_vamana_iters(self, vamana_iters: f32) -> IndexParams

Number of Vamana vector insertion iterations (each iteration inserts all vectors).

Source: rust/cuvs/src/vamana/index_params.rs:50

set_alpha

1pub fn set_alpha(self, alpha: f32) -> IndexParams

Alpha for pruning parameter

Source: rust/cuvs/src/vamana/index_params.rs:58

set_max_fraction

1pub fn set_max_fraction(self, max_fraction: f32) -> IndexParams

Maximum fraction of dataset inserted per batch. Larger max batch decreases graph quality, but improves speed

Source: rust/cuvs/src/vamana/index_params.rs:67

set_batch_base

1pub fn set_batch_base(self, batch_base: f32) -> IndexParams

Base of growth rate of batch sizes

Source: rust/cuvs/src/vamana/index_params.rs:75

set_queue_size

1pub fn set_queue_size(self, queue_size: u32) -> IndexParams

Size of candidate queue structure - should be (2^x)-1

Source: rust/cuvs/src/vamana/index_params.rs:83

set_reverse_batchsize

1pub fn set_reverse_batchsize(self, reverse_batchsize: u32) -> IndexParams

Max batchsize of reverse edge processing (reduces memory footprint)

Source: rust/cuvs/src/vamana/index_params.rs:91

Source: rust/cuvs/src/vamana/index_params.rs:11