Class Lucene99ScalarQuantizedVectorsFormat


  • public final class Lucene99ScalarQuantizedVectorsFormat
    extends FlatVectorsFormat
    Format supporting vector quantization, storage, and retrieval
    • Field Detail

      • QUANTIZED_VECTOR_COMPONENT

        public static final java.lang.String QUANTIZED_VECTOR_COMPONENT
        See Also:
        Constant Field Values
      • VECTOR_DATA_CODEC_NAME

        static final java.lang.String VECTOR_DATA_CODEC_NAME
        See Also:
        Constant Field Values
      • VECTOR_DATA_EXTENSION

        static final java.lang.String VECTOR_DATA_EXTENSION
        See Also:
        Constant Field Values
      • MINIMUM_CONFIDENCE_INTERVAL

        private static final float MINIMUM_CONFIDENCE_INTERVAL
        The minimum confidence interval
        See Also:
        Constant Field Values
      • MAXIMUM_CONFIDENCE_INTERVAL

        private static final float MAXIMUM_CONFIDENCE_INTERVAL
        The maximum confidence interval
        See Also:
        Constant Field Values
      • confidenceInterval

        final java.lang.Float confidenceInterval
        Controls the confidence interval used to scalar quantize the vectors the default value is calculated as `1-1/(vector_dimensions + 1)`
    • Constructor Detail

      • Lucene99ScalarQuantizedVectorsFormat

        public Lucene99ScalarQuantizedVectorsFormat()
        Constructs a format using default graph construction parameters
      • Lucene99ScalarQuantizedVectorsFormat

        public Lucene99ScalarQuantizedVectorsFormat​(java.lang.Float confidenceInterval)
        Constructs a format using the given graph construction parameters.
        Parameters:
        confidenceInterval - the confidenceInterval for scalar quantizing the vectors, when `null` it is calculated based on the vector field dimensions.