hnswlib icon indicating copy to clipboard operation
hnswlib copied to clipboard

Header-only C++/python library for fast approximate nearest neighbors

Results 207 hnswlib issues
Sort by recently updated
recently updated
newest added

`setup.py` imports `pybind11` and `numpy` and assumes that this will be available https://github.com/nmslib/hnswlib/blob/0dcfb9111b3a9a349a86ec23f84b70705599f6ea/python_bindings/setup.py#L88-L89 There should be a pyproject.toml that requires both those modules to be installed before the setup.py is...

Hi, my question might be stupid but do you compute distances with 32 or 64 bits? I'm wondering because the returned distance is always 32 bits even if the stored...

There should be a feature to handle the index size automatically, making it increase. Example implementation: ```python while index.get_current_count() + len(to_add) > index.get_max_elements(): index.resize_index(2 * index.get_current_count()) ``` On that note,...

Hi, Thanks for the great work! I have two questions: 1. I would like to define my own distance function for the query in Python. The document says "Can work...

Hello, I have created some simple toy example, and was surprised from the NN i got from hnswlib. The data i was using is : taking 5 random vectors with...

Hi @Yury Malkov, In the comment for function 'markDeletedInternal', it states that "Uses the first 8 bits of the memory for the linked list to store the mark...". However, from...

To avoid a error when i use 'knn_query' method with k < N N is the number of undeleted items

https://github.com/nmslib/hnswlib/blob/2571bdb6ef3f91d6f4c2e59178fde49055d2f980/hnswlib/hnswalg.h#L62

Currently, from what I understand of the documentation, we would need to load an index into the memory to be able to update the number of max elements and add...

Hi, I have an interesting question, ef is used as a search parameter for HNSW, however I don't see this name in other indexes, what does it mean? why you...