Lance C/C++ Bindings
C ABI and header-only C++ RAII wrappers for the Lance columnar data format
Loading...
Searching...
No Matches
lance::VectorIndexOptions Struct Reference

#include <lance/detail/declarations.hpp>

Public Member Functions

VectorIndexOptions & accelerator (std::string device)
 

Public Attributes

LanceVectorIndexType index_type = LANCE_INDEX_IVF_FLAT
 
LanceMetricType metric = LANCE_METRIC_L2
 
std::optional< uint64_t > num_partitions
 
std::optional< uint64_t > target_partition_size
 
std::optional< uint64_t > max_iters
 
std::optional< uint64_t > sample_rate
 
std::optional< uint64_t > streaming_sample_rate
 
std::optional< uint64_t > streaming_coreset_rate
 
uint64_t streaming_refine_passes = 0
 
std::optional< std::string > precomputed_partitions_file
 
std::optional< std::pair< std::string, std::vector< std::string > > > precomputed_shuffle_buffers
 
std::optional< uint64_t > shuffle_partition_batches
 
std::optional< uint64_t > shuffle_partition_concurrency
 
std::optional< std::map< std::string, std::string > > storage_options
 
std::optional< uint64_t > num_sub_vectors
 
std::optional< uint64_t > num_bits
 
IndexModel * ivf_centroids = nullptr
 
IndexModel * pq_codebook = nullptr
 
std::optional< std::string > rabitq_model_json
 
std::optional< uint64_t > hnsw_max_level
 
std::optional< uint64_t > hnsw_m
 
std::optional< uint64_t > hnsw_ef_construction
 
LanceIndexFileVersion index_file_version = LANCE_INDEX_FILE_VERSION_V3
 
bool skip_transpose = false
 
std::map< std::string, std::string > runtime_hints
 
std::optional< bool > train
 

Detailed Description

Additive native vector-build options.

A default-constructed value leaves every optional native field absent. train == std::nullopt retains the native train=true default. Arrow models are borrowed for the call; IndexModel values must outlive the call or builder-creation call that receives them.

Definition at line 2952 of file declarations.hpp.

Member Function Documentation

◆ accelerator()

VectorIndexOptions & lance::VectorIndexOptions::accelerator ( std::string device)

Record a caller-provided accelerator hint. This does not enable C-side accelerator execution.

Member Data Documentation

◆ hnsw_ef_construction

std::optional<uint64_t> lance::VectorIndexOptions::hnsw_ef_construction

Definition at line 2979 of file declarations.hpp.

◆ hnsw_m

std::optional<uint64_t> lance::VectorIndexOptions::hnsw_m

Definition at line 2978 of file declarations.hpp.

◆ hnsw_max_level

std::optional<uint64_t> lance::VectorIndexOptions::hnsw_max_level

Definition at line 2977 of file declarations.hpp.

◆ index_file_version

LanceIndexFileVersion lance::VectorIndexOptions::index_file_version = LANCE_INDEX_FILE_VERSION_V3

Definition at line 2981 of file declarations.hpp.

◆ index_type

LanceVectorIndexType lance::VectorIndexOptions::index_type = LANCE_INDEX_IVF_FLAT

Definition at line 2953 of file declarations.hpp.

◆ ivf_centroids

IndexModel* lance::VectorIndexOptions::ivf_centroids = nullptr

Definition at line 2973 of file declarations.hpp.

◆ max_iters

std::optional<uint64_t> lance::VectorIndexOptions::max_iters

Definition at line 2958 of file declarations.hpp.

◆ metric

LanceMetricType lance::VectorIndexOptions::metric = LANCE_METRIC_L2

Definition at line 2954 of file declarations.hpp.

◆ num_bits

std::optional<uint64_t> lance::VectorIndexOptions::num_bits

Definition at line 2972 of file declarations.hpp.

◆ num_partitions

std::optional<uint64_t> lance::VectorIndexOptions::num_partitions

Definition at line 2956 of file declarations.hpp.

◆ num_sub_vectors

std::optional<uint64_t> lance::VectorIndexOptions::num_sub_vectors

Definition at line 2971 of file declarations.hpp.

◆ pq_codebook

IndexModel* lance::VectorIndexOptions::pq_codebook = nullptr

Definition at line 2974 of file declarations.hpp.

◆ precomputed_partitions_file

std::optional<std::string> lance::VectorIndexOptions::precomputed_partitions_file

Definition at line 2964 of file declarations.hpp.

◆ precomputed_shuffle_buffers

std::optional<std::pair<std::string, std::vector<std::string> > > lance::VectorIndexOptions::precomputed_shuffle_buffers

Definition at line 2966 of file declarations.hpp.

◆ rabitq_model_json

std::optional<std::string> lance::VectorIndexOptions::rabitq_model_json

Definition at line 2975 of file declarations.hpp.

◆ runtime_hints

std::map<std::string, std::string> lance::VectorIndexOptions::runtime_hints

Definition at line 2983 of file declarations.hpp.

◆ sample_rate

std::optional<uint64_t> lance::VectorIndexOptions::sample_rate

Definition at line 2959 of file declarations.hpp.

◆ shuffle_partition_batches

std::optional<uint64_t> lance::VectorIndexOptions::shuffle_partition_batches

Definition at line 2967 of file declarations.hpp.

◆ shuffle_partition_concurrency

std::optional<uint64_t> lance::VectorIndexOptions::shuffle_partition_concurrency

Definition at line 2968 of file declarations.hpp.

◆ skip_transpose

bool lance::VectorIndexOptions::skip_transpose = false

Definition at line 2982 of file declarations.hpp.

◆ storage_options

std::optional<std::map<std::string, std::string> > lance::VectorIndexOptions::storage_options

Definition at line 2969 of file declarations.hpp.

◆ streaming_coreset_rate

std::optional<uint64_t> lance::VectorIndexOptions::streaming_coreset_rate

Definition at line 2961 of file declarations.hpp.

◆ streaming_refine_passes

uint64_t lance::VectorIndexOptions::streaming_refine_passes = 0

Definition at line 2962 of file declarations.hpp.

◆ streaming_sample_rate

std::optional<uint64_t> lance::VectorIndexOptions::streaming_sample_rate

Definition at line 2960 of file declarations.hpp.

◆ target_partition_size

std::optional<uint64_t> lance::VectorIndexOptions::target_partition_size

Definition at line 2957 of file declarations.hpp.

◆ train

std::optional<bool> lance::VectorIndexOptions::train

Definition at line 2984 of file declarations.hpp.


The documentation for this struct was generated from the following file: