Module org.elasticsearch.simdvec
Class NativeBinaryQuantizedVectorScorer
java.lang.Object
org.elasticsearch.simdvec.ES93BinaryQuantizedVectorScorer
org.elasticsearch.simdvec.internal.vectorization.DefaultES93BinaryQuantizedVectorScorer
org.elasticsearch.simdvec.internal.vectorization.NativeBinaryQuantizedVectorScorer
-
Field Summary
Fields inherited from class org.elasticsearch.simdvec.internal.vectorization.DefaultES93BinaryQuantizedVectorScorer
sliceFields inherited from class org.elasticsearch.simdvec.ES93BinaryQuantizedVectorScorer
byteSize, dimensions, FOUR_BIT_SCALE, numBytes -
Constructor Summary
ConstructorsConstructorDescriptionNativeBinaryQuantizedVectorScorer(org.apache.lucene.store.IndexInput in, int dimensions, int vectorLengthInBytes) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]getScratch(int len) floatscore(byte[] q, float queryLowerInterval, float queryUpperInterval, int queryQuantizedComponentSum, float queryAdditionalCorrection, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, float centroidDp, int targetOrd) floatscoreBulk(byte[] q, float queryLowerInterval, float queryUpperInterval, int queryQuantizedComponentSum, float queryAdditionalCorrection, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, float centroidDp, int[] nodes, float[] scores, int bulkSize) Methods inherited from class org.elasticsearch.simdvec.ES93BinaryQuantizedVectorScorer
applyCorrections
-
Constructor Details
-
NativeBinaryQuantizedVectorScorer
public NativeBinaryQuantizedVectorScorer(org.apache.lucene.store.IndexInput in, int dimensions, int vectorLengthInBytes)
-
-
Method Details
-
score
public float score(byte[] q, float queryLowerInterval, float queryUpperInterval, int queryQuantizedComponentSum, float queryAdditionalCorrection, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, float centroidDp, int targetOrd) throws IOException - Overrides:
scorein classDefaultES93BinaryQuantizedVectorScorer- Throws:
IOException
-
scoreBulk
public float scoreBulk(byte[] q, float queryLowerInterval, float queryUpperInterval, int queryQuantizedComponentSum, float queryAdditionalCorrection, org.apache.lucene.index.VectorSimilarityFunction similarityFunction, float centroidDp, int[] nodes, float[] scores, int bulkSize) throws IOException - Overrides:
scoreBulkin classES93BinaryQuantizedVectorScorer- Throws:
IOException
-
getScratch
protected byte[] getScratch(int len)
-