Interface VectorEncodingConfig
public interface VectorEncodingConfig
The minimal vector-encoding configuration shared by the HNSW and Guardiann configs: the metric, the number of
dimensions, and the RaBitQ encoding parameters needed to (de)serialize stored vectors.
-
Method Summary
Modifier and TypeMethodDescriptionmetric()The metric that is used to determine distances between vectors.intThe number of dimensions used.intNumber of bits per dimensions iffuseRaBitQ()is set totrue, ignored otherwise.boolean
-
Method Details
-
metric
The metric that is used to determine distances between vectors. -
numDimensions
int numDimensions()The number of dimensions used. All vectors must have exactly this number of dimensions. -
useRaBitQ
boolean useRaBitQ() -
raBitQNumExBits
int raBitQNumExBits()Number of bits per dimensions iffuseRaBitQ()is set totrue, ignored otherwise. If RaBitQ encoding is used, a vector is stored using roughly25 + numDimensions * (numExBits + 1) / 8bytes.
-