package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
MakeRaBitQCodeSet returns an empty set of quantization codes, where each code in the set represents a quantized vector with the given number of dimensions.
MakeRaBitQCodeSetFromRawData constructs a set of quantization codes from a raw slice of codes.
NewRaBitQuantizer returns a new RaBitQ quantizer that quantizes vectors with the given number of dimensions.
NewUnQuantizer returns a new instance of the UnQuantizer that stores vectors with the given number of dimensions.
RaBitQCodeSetWidth returns the number of uint64values needed to store 1 bit per dimension for a RaBitQ code.
# Structs
RaBitQuantizer quantizes vectors according to the algorithm described in this paper:
"RaBitQ: Quantizing High-Dimensional Vectors with a Theoretical Error Bound for Approximate Nearest Neighbor Search" by Jianyang Gao & Cheng Long.
UnQuantizer trivially implements the Quantizer interface, storing the original full-size vectors in unmodified form.
# Interfaces
QuantizedVectorSet is the compressed form of an original set of full-size vectors.
Quantizer compresses a set of full-size vectors to an equally-sized set of representative quantized vectors.
# Type aliases
RaBitQCode is a quantization code that partially encodes a quantized vector.