mirror of https://github.com/apache/lucene.git
LUCENE-10109: Bump default beam width for HNSW (#312)
Lucene90HnswVectorsFormat has a default 'beam width' of 16. This is quite low and produces poor recall on typical-sized datasets. This commit bumps it to 100. This new default tries to balance good search performance with indexing speed. Most runs in ann-benchmarks set the parameter between ~400 and 800, but they are heavily optimizing search over index speed.
This commit is contained in:
parent
eb44d1e6ad
commit
eaa421094d
|
@ -78,7 +78,7 @@ public final class Lucene90HnswVectorsFormat extends KnnVectorsFormat {
|
|||
static final int VERSION_CURRENT = VERSION_START;
|
||||
|
||||
public static final int DEFAULT_MAX_CONN = 16;
|
||||
public static final int DEFAULT_BEAM_WIDTH = 16;
|
||||
public static final int DEFAULT_BEAM_WIDTH = 100;
|
||||
|
||||
/**
|
||||
* Controls how many of the nearest neighbor candidates are connected to the new node. Defaults to
|
||||
|
|
Loading…
Reference in New Issue