Class ES93HnswScalarQuantizedVectorsFormat

java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.elasticsearch.index.codec.vectors.AbstractHnswVectorsFormat
org.elasticsearch.index.codec.vectors.es93.ES93HnswScalarQuantizedVectorsFormat
All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI

public class ES93HnswScalarQuantizedVectorsFormat extends AbstractHnswVectorsFormat
  • Field Details

    • confidenceInterval

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

    • ES93HnswScalarQuantizedVectorsFormat

      public ES93HnswScalarQuantizedVectorsFormat()
    • ES93HnswScalarQuantizedVectorsFormat

      public ES93HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, Float confidenceInterval, int bits, boolean compress, boolean useDirectIO)
    • ES93HnswScalarQuantizedVectorsFormat

      public ES93HnswScalarQuantizedVectorsFormat(int maxConn, int beamWidth, DenseVectorFieldMapper.ElementType elementType, Float confidenceInterval, int bits, boolean compress, boolean useDirectIO, int numMergeWorkers, ExecutorService mergeExec)
  • Method Details

    • flatVectorsFormat

      protected org.apache.lucene.codecs.hnsw.FlatVectorsFormat flatVectorsFormat()
      Specified by:
      flatVectorsFormat in class AbstractHnswVectorsFormat
    • fieldsWriter

      public org.apache.lucene.codecs.KnnVectorsWriter fieldsWriter(org.apache.lucene.index.SegmentWriteState state) throws IOException
      Specified by:
      fieldsWriter in class org.apache.lucene.codecs.KnnVectorsFormat
      Throws:
      IOException
    • fieldsReader

      public org.apache.lucene.codecs.KnnVectorsReader fieldsReader(org.apache.lucene.index.SegmentReadState state) throws IOException
      Specified by:
      fieldsReader in class org.apache.lucene.codecs.KnnVectorsFormat
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class AbstractHnswVectorsFormat