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

#include <lance/lance.h>

Public Attributes

int32_t index_type
 
int32_t metric
 
LanceOptionalU64 num_partitions
 
LanceOptionalU64 target_partition_size
 
LanceOptionalU64 max_iters
 
LanceOptionalU64 sample_rate
 
LanceOptionalU64 streaming_sample_rate
 
LanceOptionalU64 streaming_coreset_rate
 
uint64_t streaming_refine_passes
 
const char * precomputed_partitions_file
 
const LancePrecomputedShuffleBuffers * precomputed_shuffle_buffers
 
LanceOptionalU64 shuffle_partition_batches
 
LanceOptionalU64 shuffle_partition_concurrency
 
const LanceStringMap * storage_options
 
LanceOptionalU64 num_sub_vectors
 
LanceOptionalU64 num_bits
 
struct ArrowArray * ivf_centroids
 
const struct ArrowSchema * ivf_centroids_schema
 
struct ArrowArray * pq_codebook
 
const struct ArrowSchema * pq_codebook_schema
 
const char * rabitq_model_json
 
LanceOptionalU64 hnsw_max_level
 
LanceOptionalU64 hnsw_m
 
LanceOptionalU64 hnsw_ef_construction
 
int32_t index_file_version
 
bool skip_transpose
 
const LanceStringMap * runtime_hints
 
bool has_train
 
bool train
 

Detailed Description

Additive native vector-build options. Zero-initialize this structure.

Optional numeric fields distinguish absent (is_set == false) from an explicit value, including zero. Native Lance code owns defaults, validation timing and execution semantics. num_bits applies to IVF_PQ and IVF_RQ; absent PQ bits use the native default and an absent RQ value uses the native default of 5. num_partitions and target_partition_size may be absent for native automatic sizing.

ivf_centroids and pq_codebook are native Arrow C Data Interface FixedSizeList values. The whole options object is borrowed only for this call. A non-NULL ArrowArray may be replaced while a live caller-owned equivalent is left in place; the schema remains caller-owned. Both members of each pair must be NULL or non-NULL. Native model shape and dtype acceptance is not narrowed here.

rabitq_model_json is the native RabitQuantizationMetadata JSON accepted by IVF_RQ. Use lance_index_build_rq_model() to mint a portable fast rotation. runtime_hints may contain arbitrary UTF-8 keys and values and does not enable any accelerator execution in this binding.

has_train == false retains the native default train=true.

Definition at line 187 of file lance.h.

Member Data Documentation

◆ has_train

bool LanceVectorIndexOptions::has_train

Definition at line 221 of file lance.h.

◆ hnsw_ef_construction

LanceOptionalU64 LanceVectorIndexOptions::hnsw_ef_construction

Definition at line 216 of file lance.h.

◆ hnsw_m

LanceOptionalU64 LanceVectorIndexOptions::hnsw_m

Definition at line 215 of file lance.h.

◆ hnsw_max_level

LanceOptionalU64 LanceVectorIndexOptions::hnsw_max_level

Definition at line 214 of file lance.h.

◆ index_file_version

int32_t LanceVectorIndexOptions::index_file_version

Definition at line 218 of file lance.h.

◆ index_type

int32_t LanceVectorIndexOptions::index_type

Definition at line 188 of file lance.h.

◆ ivf_centroids

struct ArrowArray* LanceVectorIndexOptions::ivf_centroids

Definition at line 208 of file lance.h.

◆ ivf_centroids_schema

const struct ArrowSchema* LanceVectorIndexOptions::ivf_centroids_schema

Definition at line 209 of file lance.h.

◆ max_iters

LanceOptionalU64 LanceVectorIndexOptions::max_iters

Definition at line 193 of file lance.h.

◆ metric

int32_t LanceVectorIndexOptions::metric

Definition at line 189 of file lance.h.

◆ num_bits

LanceOptionalU64 LanceVectorIndexOptions::num_bits

Definition at line 206 of file lance.h.

◆ num_partitions

LanceOptionalU64 LanceVectorIndexOptions::num_partitions

Definition at line 191 of file lance.h.

◆ num_sub_vectors

LanceOptionalU64 LanceVectorIndexOptions::num_sub_vectors

Definition at line 205 of file lance.h.

◆ pq_codebook

struct ArrowArray* LanceVectorIndexOptions::pq_codebook

Definition at line 210 of file lance.h.

◆ pq_codebook_schema

const struct ArrowSchema* LanceVectorIndexOptions::pq_codebook_schema

Definition at line 211 of file lance.h.

◆ precomputed_partitions_file

const char* LanceVectorIndexOptions::precomputed_partitions_file

Definition at line 199 of file lance.h.

◆ precomputed_shuffle_buffers

const LancePrecomputedShuffleBuffers* LanceVectorIndexOptions::precomputed_shuffle_buffers

Definition at line 200 of file lance.h.

◆ rabitq_model_json

const char* LanceVectorIndexOptions::rabitq_model_json

Definition at line 212 of file lance.h.

◆ runtime_hints

const LanceStringMap* LanceVectorIndexOptions::runtime_hints

Definition at line 220 of file lance.h.

◆ sample_rate

LanceOptionalU64 LanceVectorIndexOptions::sample_rate

Definition at line 194 of file lance.h.

◆ shuffle_partition_batches

LanceOptionalU64 LanceVectorIndexOptions::shuffle_partition_batches

Definition at line 201 of file lance.h.

◆ shuffle_partition_concurrency

LanceOptionalU64 LanceVectorIndexOptions::shuffle_partition_concurrency

Definition at line 202 of file lance.h.

◆ skip_transpose

bool LanceVectorIndexOptions::skip_transpose

Definition at line 219 of file lance.h.

◆ storage_options

const LanceStringMap* LanceVectorIndexOptions::storage_options

Definition at line 203 of file lance.h.

◆ streaming_coreset_rate

LanceOptionalU64 LanceVectorIndexOptions::streaming_coreset_rate

Definition at line 196 of file lance.h.

◆ streaming_refine_passes

uint64_t LanceVectorIndexOptions::streaming_refine_passes

Definition at line 197 of file lance.h.

◆ streaming_sample_rate

LanceOptionalU64 LanceVectorIndexOptions::streaming_sample_rate

Definition at line 195 of file lance.h.

◆ target_partition_size

LanceOptionalU64 LanceVectorIndexOptions::target_partition_size

Definition at line 192 of file lance.h.

◆ train

bool LanceVectorIndexOptions::train

Definition at line 222 of file lance.h.


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