Package org.apache.lucene.sandbox.codecs.dedup
package org.apache.lucene.sandbox.codecs.dedup
De-duplicating HNSW vector formats.
Stores each distinct vector once and shares it across the documents and fields that reference it, while reusing the Lucene 9.9 HNSW graph. Two formats are provided:
DedupHnswVectorsFormatstores and scores raw vectors; seeDedupFlatVectorsFormatfor the on-disk layout.DedupHnswScalarQuantizedVectorsFormatadditionally stores a scalar quantized copy of each distinct FLOAT32 vector, used for scoring; seeDedupScalarQuantizedVectorsFormatfor the on-disk layout.
-
ClassesClassDescriptionAn HNSW vector format that de-duplicates vectors, storing each distinct vector once in both raw and scalar quantized form.An HNSW vector format that de-duplicates raw vectors.