Package-level declarations

Types

Link copied to clipboard

Lucene 9.9 flat vector format, which encodes numeric vector values

Link copied to clipboard

Reads vectors from the index segments.

Link copied to clipboard

Writes vector values to index segments.

Link copied to clipboard
class Lucene99HnswScalarQuantizedVectorsFormat @JvmOverloads constructor(maxConn: Int = Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN, beamWidth: Int = Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH, numMergeWorkers: Int = Lucene99HnswVectorsFormat.DEFAULT_NUM_MERGE_WORKER, bits: Int = 7, compress: Boolean = false, confidenceInterval: Float? = null, mergeExec: ExecutorService? = null) : KnnVectorsFormat

Lucene 9.9 vector format using scalar-quantized vectors with HNSW.

Link copied to clipboard
class Lucene99HnswVectorsFormat @JvmOverloads constructor(maxConn: Int = DEFAULT_MAX_CONN, beamWidth: Int = DEFAULT_BEAM_WIDTH, numMergeWorkers: Int = DEFAULT_NUM_MERGE_WORKER, mergeExec: ExecutorService? = null) : KnnVectorsFormat

Lucene 9.9 vector format, which encodes numeric vector values into an associated graph connecting the documents having values. The graph is used to power HNSW search. The format consists of two files, and requires a FlatVectorsFormat to store the actual vectors:

Link copied to clipboard

Reads vectors from the index segments along with index data structures supporting KNN search.

Link copied to clipboard
class Lucene99HnswVectorsWriter(state: SegmentWriteState, M: Int, beamWidth: Int, flatVectorWriter: FlatVectorsWriter, numMergeWorkers: Int, mergeExec: TaskExecutor?) : KnnVectorsWriter

Writes vector values and knn graphs to index segments.

Link copied to clipboard

Optimized scalar quantized implementation of FlatVectorsScorer for quantized vectors stored in the Lucene99 format.

Link copied to clipboard
class Lucene99ScalarQuantizedVectorsFormat(val confidenceInterval: Float? = null, val bits: Int = 7, val compress: Boolean = false) : FlatVectorsFormat

Format supporting vector quantization, storage, and retrieval.

Link copied to clipboard

Reads Scalar Quantized vectors from the index segments along with index data structures.

Link copied to clipboard

Writes quantized vector values and metadata to index segments.

Link copied to clipboard

Lucene 9.9 Segment info format.

Link copied to clipboard
abstract class OffHeapQuantizedByteVectorValues(dimension: Int, size: Int, scalarQuantizerValue: ScalarQuantizer, similarityFunction: VectorSimilarityFunction, vectorsScorer: FlatVectorsScorer, compress: Boolean, val slice: IndexInput?) : QuantizedByteVectorValues

Read the quantized vector values and their score correction values from the index input. This supports both iterated and random access.