# Package org.apache.lucene.util.quantization

Provides quantization methods for scaling vector values to smaller data types and possibly fewer dimensions

- Interface Summary
  Interface | Description
  --- | ---
  QuantizedVectorsReader | Quantized vector reader
  RandomAccessQuantizedByteVectorValues | Random access values for `byte[]`, but also includes accessing the score correction constant for the current vector in the buffer.
  ScalarQuantizedVectorSimilarity | Calculates and adjust the scores correctly for quantized vectors given the scalar quantization parameters

- Class Summary
  Class | Description
  --- | ---
  QuantizedByteVectorValues | A version of `ByteVectorValues`, but additionally retrieving score correction offset for Scalar quantization scores.
  ScalarQuantizedRandomVectorScorer | Quantized vector scorer
  ScalarQuantizedRandomVectorScorerSupplier | Quantized vector scorer supplier
  ScalarQuantizedVectorSimilarity.DotProduct | Calculates dot product on quantized vectors, applying the appropriate corrections
  ScalarQuantizedVectorSimilarity.Euclidean | Calculates euclidean distance on quantized vectors, applying the appropriate corrections
  ScalarQuantizedVectorSimilarity.MaximumInnerProduct | Calculates max inner product on quantized vectors, applying the appropriate corrections
  ScalarQuantizer | Will scalar quantize float vectors into `int8` byte values.