nmslib / hnswlib

Header-only C++/python library for fast approximate nearest neighbors
https://github.com/nmslib/hnswlib
Apache License 2.0
4.36k stars 645 forks source link

Pagination #512

Open amirouche opened 1 year ago

amirouche commented 1 year ago

It is my understanding that with Index::Search in the case of HNSW that the result is not always 100% recall, being able to continue the search, that is having pagination support will be nice.

yurymalkov commented 1 year ago

Hi @amirouche,

Pagination is not that hard to implement (save state, and load state during next search), but it is not currently supported. If someone would volunteer to implement it without too much changes we would gladly review and merge.