quantize_batch_adaptive

Function quantize_batch_adaptive 

Source
pub fn quantize_batch_adaptive(
    embeddings: &[Vector],
    target: AccuracyTarget,
) -> BatchResult
Expand description

Quantize a batch of embeddings using adaptive selection

§Arguments

  • embeddings - Slice of embedding vectors to quantize
  • target - The desired accuracy target

§Returns

  • BatchResult - Contains results and statistics