Module org.elasticsearch.server
Class ES814ScalarQuantizedVectorsFormat
java.lang.Object
org.apache.lucene.codecs.KnnVectorsFormat
org.apache.lucene.codecs.hnsw.FlatVectorsFormat
org.elasticsearch.index.codec.vectors.ES814ScalarQuantizedVectorsFormat
- All Implemented Interfaces:
org.apache.lucene.util.NamedSPILoader.NamedSPI
public class ES814ScalarQuantizedVectorsFormat
extends org.apache.lucene.codecs.hnsw.FlatVectorsFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal FloatControls the confidence interval used to scalar quantize the vectors the default value is calculated as `1-1/(vector_dimensions + 1)`Fields inherited from class org.apache.lucene.codecs.KnnVectorsFormat
DEFAULT_MAX_DIMENSIONS, EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionES814ScalarQuantizedVectorsFormat(Float confidenceInterval, int bits, boolean compress) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.codecs.hnsw.FlatVectorsReaderfieldsReader(org.apache.lucene.index.SegmentReadState state) org.apache.lucene.codecs.hnsw.FlatVectorsWriterfieldsWriter(org.apache.lucene.index.SegmentWriteState state) intgetMaxDimensions(String fieldName) toString()Methods inherited from class org.apache.lucene.codecs.KnnVectorsFormat
availableKnnVectorsFormats, forName, getName, reloadKnnVectorsFormat
-
Field Details
-
confidenceInterval
Controls the confidence interval used to scalar quantize the vectors the default value is calculated as `1-1/(vector_dimensions + 1)`
-
-
Constructor Details
-
ES814ScalarQuantizedVectorsFormat
-
-
Method Details
-
toString
-
fieldsWriter
public org.apache.lucene.codecs.hnsw.FlatVectorsWriter fieldsWriter(org.apache.lucene.index.SegmentWriteState state) throws IOException - Specified by:
fieldsWriterin classorg.apache.lucene.codecs.hnsw.FlatVectorsFormat- Throws:
IOException
-
fieldsReader
public org.apache.lucene.codecs.hnsw.FlatVectorsReader fieldsReader(org.apache.lucene.index.SegmentReadState state) throws IOException - Specified by:
fieldsReaderin classorg.apache.lucene.codecs.hnsw.FlatVectorsFormat- Throws:
IOException
-
getMaxDimensions
- Overrides:
getMaxDimensionsin classorg.apache.lucene.codecs.hnsw.FlatVectorsFormat
-