-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Removing a particular item from AnnoyIndex #191
Comments
sorry there's no way atm... we could probably support this by having a special "tombstone" vector (like all zeros or something) so lmk if you want to add support for this and i can give you the rough outline |
Sure. |
Hi, thanks, |
No I also don't see a huge use case for this. If it's before building the index, why don't you just prevent adding it in the first place. If it's after building the index, the dataset is immutable anyway, so it won't work. |
according to the docs:
I tried and saw that when I have new items which I would like to include in the index, or to override existing items in the index, I can just use |
It's possible you can run |
could you please explain a bit more the meaning "allocate a lot of new memory for the tree structure" ? does the memory allocation is for completely new tree which is re-builded each time |
yes, annoy is not suitable for streaming updates any time |
Ok, thanks. |
sorry no – if I had infinite time available, I would implement it, but alas I don't :) |
@mazorigal have a look at #96 for a previous discussion. |
Suppose I have an AnnoyIndex, say
ann_index(100)
, and I want to remove a particular index item fromann_index
, say 10th item. Is there any way to do this ?The text was updated successfully, but these errors were encountered: