Skip to main content

Module vector_index_optimizer

Module vector_index_optimizer 

Source
Expand description

Vector Index Optimizer

Selects and maintains optimal vector index structures based on workload analysis. Supports Flat, IVF-Flat, Product Quantization, HNSW-like, LSH, and Tree structures. Uses pure-Rust cost models to recommend and maintain the best index for a given workload.

Structs§

IndexRecommendation
Recommendation produced by the optimizer.
IndexStats
Snapshot of a live index’s runtime statistics.
OptimizerConfig
Configuration for the VectorIndexOptimizer.
OptimizerStats
Aggregate statistics for the optimizer itself.
VectorIndexOptimizer
Production-quality vector index optimizer.
WorkloadProfile
Workload characteristics used to drive index selection.

Enums§

IndexStructure
Supported index structures for approximate nearest-neighbour search.
MaintenanceAction
Maintenance operation to be applied to an index.
OptimizationCriterion
Criterion used to compare and select index structures.
OptimizerError
Errors produced by the optimizer.

Functions§

xorshift64
Xorshift64 PRNG — advances state and returns the next pseudo-random u64.
xorshift_f64
Returns a pseudo-random f64 in [0, 1) using xorshift64.

Type Aliases§

VioIndexStats
Type alias for IndexStats (re-exported as VioIndexStats to avoid conflict with stats::IndexStats which is already exported at crate level).
VioOptimizerConfig
Type alias for OptimizerConfig (re-exported as VioOptimizerConfig to avoid conflict with semantic_query_optimizer::OptimizerConfig which is already exported at crate level).
VioOptimizerError
Type alias for OptimizerError (re-exported as VioOptimizerError to avoid conflict with semantic_query_optimizer::OptimizerError which is already exported at crate level).
VioOptimizerStats
Type alias for OptimizerStats (re-exported as VioOptimizerStats to avoid conflict with semantic_query_optimizer::OptimizerStats which is already exported at crate level).