Package org.apache.lucene.codecs.hnsw
HNSW vector helper classes. The classes in this package provide a scoring and storing mechanism
for vectors stored in a flat file. This allows for HNSW formats to be extended with other flat
storage formats or scoring without significant changes to the HNSW code. Some examples for
scoring include
ScalarQuantizedVectorScorer
and DefaultFlatVectorScorer
. Some examples for storing include Lucene99FlatVectorsFormat
and Lucene99ScalarQuantizedVectorsFormat
.-
Interface Summary Interface Description FlatVectorsScorer Provides mechanisms to score vectors that are stored in a flat file The purpose of this class is for providing flexibility to the codec utilizing the vectorsHnswGraphProvider An interface that provides an HNSW graph. -
Class Summary Class Description DefaultFlatVectorScorer Default implementation ofFlatVectorsScorer
.FlatFieldVectorsWriter<T> Vectors' writer for a fieldFlatVectorScorerUtil Utilities forFlatVectorsScorer
.FlatVectorsFormat Encodes/decodes per-document vectors and provides a scoring interface for the flat stored vectorsFlatVectorsReader Reads vectors from an index.FlatVectorsWriter Vectors' writer for a field that allows additional indexing logic to be implemented by the callerScalarQuantizedVectorScorer Default scalar quantized implementation ofFlatVectorsScorer
.ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier Quantized vector scorer supplier