-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove vector causes error, only for "Normalised" distance types: Index.h:remove:1544: Not found the specified id #152
Comments
Note the results are the same if |
Thank you for your feedback. I was able to reproduce the issue you mentioned. However, it will take a little while to fix it, because of its complicated situation. |
I have released v2.1.5 to resolve this issue. |
I have integrated this change to
|
These two distances are different from other distances. When using distances, the given vector data must follow the specific manners for the two distances. You may want you to remove the two distances from your test. |
Thanks for the precision, I have removed them from the test and released the fix. |
Thanks everyone 👏🏼 |
Summary
When calling
index.remove(<id>)
, an error occurs, but only with the following distance types:I first reported this bug on the ngt-rs project, but following comments by @lerouxrgd I decided to make a reproducer here. Note that since the same errors occur on that project, it is impossible that the error is in the Python wrapper.
Reproducer
Here is a small file to reproduce the error. To setup the venv and install deps:
$ python3.10 -m venv venv $ source venv/bin/activate (venv) $ pip install -U pip wheel ngt
These are the versions I have installed in my venv:
To run the file below, simply:
Here is the file below. The important part is the function
run_test()
.This produces the following output:
Comments
Normalized Cosine
The text was updated successfully, but these errors were encountered: