Uses of Class
org.apache.lucene.index.KnnVectorValues
Packages that use KnnVectorValues
Package
Description
HNSW vector helper classes.
Lucene 10.2 file format.
Lucene 9.5 file format.
Lucene 9.9 file format.
Code to maintain and access indices.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
Provides quantization methods for scaling vector values to smaller data types and possibly fewer
dimensions
-
Uses of KnnVectorValues in org.apache.lucene.codecs.hnsw
Methods in org.apache.lucene.codecs.hnsw with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionDefaultFlatVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) DefaultFlatVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) FlatVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) Returns aRandomVectorScorer
for the given set of vectors and target vector.FlatVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) Returns aRandomVectorScorer
for the given set of vectors and target vector.ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) DefaultFlatVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) FlatVectorsScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) Returns aRandomVectorScorerSupplier
that can be used to score vectorsScalarQuantizedVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of KnnVectorValues in org.apache.lucene.codecs.lucene102
Subclasses of KnnVectorValues in org.apache.lucene.codecs.lucene102Modifier and TypeClassDescriptionclass
Binarized vector values loaded from off-heapMethods in org.apache.lucene.codecs.lucene102 with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionLucene102BinaryFlatVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) Lucene102BinaryFlatVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) Lucene102BinaryFlatVectorsScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of KnnVectorValues in org.apache.lucene.codecs.lucene95
Subclasses of KnnVectorValues in org.apache.lucene.codecs.lucene95Modifier and TypeClassDescriptionclass
Read the vector values from the index input.static class
Dense vector values that are stored off-heap.class
Read the vector values from the index input.static class
Dense vector values that are stored off-heap. -
Uses of KnnVectorValues in org.apache.lucene.codecs.lucene99
Subclasses of KnnVectorValues in org.apache.lucene.codecs.lucene99Modifier and TypeClassDescriptionclass
Read the quantized vector values and their score correction values from the index input.static class
Dense vector values that are stored off-heap.Methods in org.apache.lucene.codecs.lucene99 with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionLucene99ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of KnnVectorValues in org.apache.lucene.index
Subclasses of KnnVectorValues in org.apache.lucene.indexModifier and TypeClassDescriptionclass
This class provides access to per-document floating point vector values indexed asKnnByteVectorField
.class
This class provides access to per-document floating point vector values indexed asKnnFloatVectorField
.Methods in org.apache.lucene.index that return KnnVectorValuesModifier and TypeMethodDescriptionabstract KnnVectorValues
KnnVectorValues.copy()
Creates a new copy of thisKnnVectorValues
.Methods in org.apache.lucene.index with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionstatic org.apache.lucene.index.SortingCodecReader.SortingIteratorSupplier
SortingCodecReader.iteratorSupplier
(KnnVectorValues values, Sorter.DocMap docMap) Creates a factory for SortingValuesIterator. -
Uses of KnnVectorValues in org.apache.lucene.util.hnsw
Methods in org.apache.lucene.util.hnsw with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionprotected HnswBuilder
ConcurrentHnswMerger.createBuilder
(KnnVectorValues mergedVectorValues, int maxOrd) protected HnswBuilder
IncrementalHnswGraphMerger.createBuilder
(KnnVectorValues mergedVectorValues, int maxOrd) Builds a new HnswGraphBuilderprotected final int[][]
IncrementalHnswGraphMerger.getNewOrdMapping
(KnnVectorValues mergedVectorValues, BitSet initializedNodes) HnswGraphMerger.merge
(KnnVectorValues mergedVectorValues, InfoStream infoStream, int maxOrd) Merge and produce the on heap graphIncrementalHnswGraphMerger.merge
(KnnVectorValues mergedVectorValues, InfoStream infoStream, int maxOrd) Constructors in org.apache.lucene.util.hnsw with parameters of type KnnVectorValuesModifierConstructorDescriptionCreates a new scorer for the given vector values.Creates a new scorer for the given vector values. -
Uses of KnnVectorValues in org.apache.lucene.util.quantization
Subclasses of KnnVectorValues in org.apache.lucene.util.quantizationModifier and TypeClassDescriptionclass
A version ofByteVectorValues
, but additionally retrieving score correction offset for Scalar quantization scores.