HighDimensionVectorCodec

class HighDimensionVectorCodec constructor(maxDimensions: Int = DEFAULT_MAX_DIMENSIONS)

Custom codec that supports higher vector dimensions than the default 1024. This enables use of OpenAI embeddings (1536 dimensions) and other large embedding models.

Uses FilterCodec to wrap Lucene99Codec and override only the KnnVectorsFormat with a delegating format that reports a higher max dimension limit.

This codec is registered via SPI in META-INF/services/org.apache.lucene.codecs.Codec so that Lucene can find it when reading indexes from disk.

Constructors

Link copied to clipboard
constructor(maxDimensions: Int = DEFAULT_MAX_DIMENSIONS)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun knnVectorsFormat(): <Error class: unknown class>