Uses of Class
org.apache.lucene.util.quantization.ScalarQuantizer
Packages that use ScalarQuantizer
Package
Description
HNSW vector helper classes.
Lucene 10.4 file format.
Lucene 9.9 file format.
Provides quantization methods for scaling vector values to smaller data types and possibly fewer
dimensions
-
Uses of ScalarQuantizer in org.apache.lucene.codecs.hnsw
Methods in org.apache.lucene.codecs.hnsw with parameters of type ScalarQuantizerModifier and TypeMethodDescriptionstatic floatScalarQuantizedVectorScorer.quantizeQuery(float[] query, byte[] quantizedQuery, VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer) Constructors in org.apache.lucene.codecs.hnsw with parameters of type ScalarQuantizerModifierConstructorDescriptionScalarQuantizedRandomVectorScorerSupplier(VectorSimilarityFunction similarityFunction, ScalarQuantizer scalarQuantizer, QuantizedByteVectorValues values) -
Uses of ScalarQuantizer in org.apache.lucene.codecs.lucene104
Methods in org.apache.lucene.codecs.lucene104 that return ScalarQuantizerModifier and TypeMethodDescriptionLucene104ScalarQuantizedVectorsReader.getQuantizationState(String fieldName) -
Uses of ScalarQuantizer in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 that return ScalarQuantizer -
Uses of ScalarQuantizer in org.apache.lucene.util.quantization
Methods in org.apache.lucene.util.quantization that return ScalarQuantizerModifier and TypeMethodDescriptionstatic ScalarQuantizerScalarQuantizer.fromVectors(FloatVectorValues floatVectorValues, float confidenceInterval, int totalVectorCount, byte bits) This will read the float vector values and calculate the quantiles.static ScalarQuantizerScalarQuantizer.fromVectorsAutoInterval(FloatVectorValues floatVectorValues, VectorSimilarityFunction function, int totalVectorCount, byte bits) QuantizedVectorsReader.getQuantizationState(String fieldName) QuantizedByteVectorValues.getScalarQuantizer()Methods in org.apache.lucene.util.quantization with parameters of type ScalarQuantizerModifier and TypeMethodDescriptionfloatScalarQuantizer.recalculateCorrectiveOffset(byte[] quantizedVector, ScalarQuantizer oldQuantizer, VectorSimilarityFunction similarityFunction) Recalculate the old score corrective value given new current quantiles