benwtrent commented on code in PR #14963:
URL: https://github.com/apache/lucene/pull/14963#discussion_r2448314795
##########
lucene/core/src/java/org/apache/lucene/codecs/lucene104/Lucene104HnswScalarQuantizedVectorsFormat.java:
##########
@@ -60,6 +61,19 @@ public class Lucene104HnswScalarQuantizedVectorsFormat
extends KnnVectorsFormat
/** The format for storing, reading, merging vectors on disk */
private final Lucene104ScalarQuantizedVectorsFormat flatVectorsFormat;
+ /**
+ * The threshold to use to bypass HNSW graph building for tiny segments in
terms of k for a graph
+ * i.e. number of docs to match the query (default is {@link
+ * Lucene99HnswVectorsFormat#HNSW_GRAPH_THRESHOLD}).
+ *
+ * <ul>
+ * <li>0 indicates that the graph is always built.
+ * <li>0 indicates that the graph needs certain or more nodes before it
starts building.
Review Comment:
```suggestion
* <li>greater than 0 indicates that the graph needs a certain number of
nodes before it starts building. See {@link
Lucene99HnswVectorsFormat#HNSW_GRAPH_THRESHOLD} for details.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]