Lucene102HnswBinaryQuantizedVectorsFormat

class Lucene102HnswBinaryQuantizedVectorsFormat(maxConn: Int = Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN, beamWidth: Int = Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH, numMergeWorkers: Int = Lucene99HnswVectorsFormat.DEFAULT_NUM_MERGE_WORKER, mergeExec: ExecutorService? = null) : KnnVectorsFormat

A vectors format that uses HNSW graph to store and search for vectors. But vectors are binary quantized using Lucene102BinaryQuantizedVectorsFormat before being stored in the graph.

Constructors

constructor(maxConn: Int = Lucene99HnswVectorsFormat.DEFAULT_MAX_CONN, beamWidth: Int = Lucene99HnswVectorsFormat.DEFAULT_BEAM_WIDTH, numMergeWorkers: Int = Lucene99HnswVectorsFormat.DEFAULT_NUM_MERGE_WORKER, mergeExec: ExecutorService? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open lateinit override var name: String

Functions

Link copied to clipboard

Returns a KnnVectorsReader to read the vectors from the index.

Link copied to clipboard

Returns a KnnVectorsWriter to write the vectors to the index.

Link copied to clipboard
open override fun getMaxDimensions(fieldName: String): Int

Returns the maximum number of vector dimensions supported by this codec for the given field name

Link copied to clipboard
open override fun toString(): String