public interface VectorScorerFactory
A factory of quantized vector scorers.
-
Method Summary
Modifier and TypeMethodDescriptiongetScalarQuantizedVectorScorer(int dims, int maxOrd, float scoreCorrectionConstant, VectorSimilarityType similarityType, org.apache.lucene.store.IndexInput indexInput) Returns an optional containing a scalar quantized vector scorer for the given parameters, or an empty optional if a scorer is not supported.static Optional<VectorScorerFactory>instance()
-
Method Details
-
instance
-
getScalarQuantizedVectorScorer
Optional<VectorScorer> getScalarQuantizedVectorScorer(int dims, int maxOrd, float scoreCorrectionConstant, VectorSimilarityType similarityType, org.apache.lucene.store.IndexInput indexInput) Returns an optional containing a scalar quantized vector scorer for the given parameters, or an empty optional if a scorer is not supported.- Parameters:
dims- the vector dimensionsmaxOrd- the ordinal of the largest vector accessiblescoreCorrectionConstant- the score correction constantsimilarityType- the similarity typeindexInput- the index input containing the vector data; offset of the first vector is 0, the length must be (maxOrd + Float#BYTES) * dims- Returns:
- an optional containing the vector scorer, or empty
-