ScalarQuantizedVectorSimilarity

Calculates and adjust the scores correctly for quantized vectors given the scalar quantization parameters

Inheritors

Types

Link copied to clipboard

Compares two byte vectors

Link copied to clipboard
object Companion
Link copied to clipboard

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

Calculates max inner product on quantized vectors, applying the appropriate corrections

Functions

Link copied to clipboard
abstract fun score(queryVector: ByteArray, queryVectorOffset: Float, storedVector: ByteArray, vectorOffset: Float): Float