ScalarQuantizedVectorSimilarity
interface ScalarQuantizedVectorSimilarity
Calculates and adjust the scores correctly for quantized vectors given the scalar quantization parameters
Inheritors
Types
Link copied to clipboard
interface ByteVectorComparator
Compares two byte vectors
Link copied to clipboard
class DotProduct(constMultiplier: Float, comparator: ScalarQuantizedVectorSimilarity.ByteVectorComparator) : ScalarQuantizedVectorSimilarity
Calculates dot product on quantized vectors, applying the appropriate corrections
Link copied to clipboard
Calculates euclidean distance on quantized vectors, applying the appropriate corrections
Link copied to clipboard
class MaximumInnerProduct(constMultiplier: Float, comparator: ScalarQuantizedVectorSimilarity.ByteVectorComparator) : ScalarQuantizedVectorSimilarity
Calculates max inner product on quantized vectors, applying the appropriate corrections