Hello Friends,
Here at Amazon, we've been working on improving merge performance
for very large HNSW segments with 4K dimensional vectors.
We parallelized the two vector passes in merge - one for centroid
recomputation and another for quantization, for a 38X speedup on our target
instance (details in description of PR #16871). The code was human reviewed
multiple times and reshaped to preserve readability and performance.
This is one of the key improvements in our efforts to improve Lucene-KNN
performance on indices much larger than RAM. *Thanks to the community
support*, we have already contributed #16705, #16771, #16806, #16956,
collaborated on #16145 and many more to come.
I'd really appreciate a review on PR #16871 and its accompanying PR
#16872. I understand that AI generated code has multiplied the workload of
Lucene maintainers so I am happy to provide some of my time for reviewing
other PRs. I also recommend using AI as a code-review assistant to reduce
strain.
Thanks
Ankur