Package org.apache.lucene.codecs.hnsw
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
.-
ClassDescriptionDefault implementation of
FlatVectorsScorer
.Vectors' writer for a fieldUtilities forFlatVectorsScorer
.Encodes/decodes per-document vectors and provides a scoring interface for the flat stored vectorsReads vectors from an index.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 vectorsVectors' writer for a field that allows additional indexing logic to be implemented by the callerAn interface that provides an HNSW graph.Default scalar quantized implementation ofFlatVectorsScorer
.Quantized vector scorer supplier