Skip to main content

Module auto_index

Module auto_index 

Source
Expand description

Auto-Index Selection

Automatically selects the optimal index type based on data characteristics:

  • Dataset size (number of vectors)
  • Dimensionality
  • Memory constraints
  • Query latency requirements
  • Accuracy requirements

§Index Selection Matrix

VectorsDimensionsMemoryLatencyRecommended Index
< 10KAnyAnyAnyFlat (brute force)
10K-100K< 256LowMediumIVF + SQ8
10K-100K< 256NormalLowHNSW
100K-1MAnyLowMediumIVF-PQ
100K-1MAnyNormalLowHNSW
> 1MAnyLowAnyIVF-PQ
> 1MAnyNormalLowHNSW + SQ8

Structs§

AutoIndexSelector
Auto-index selector
DataCharacteristics
Data characteristics for index selection
IndexParams
Suggested index parameters
IndexRecommendation
Index recommendation with reasoning
IndexRequirements
Requirements for the index

Enums§

AccuracyRequirement
Accuracy requirement for search results
LatencyRequirement
Query latency requirement
MemoryConstraint
Memory constraint level
RecommendedIndex
Recommended index type