hnswlib
hnswlib copied to clipboard
how to unmark_deleted
is it possible to unmark_deleted?
Hi @liding1990, Yes, via C++ interface. Would people use if it were be in python?
Thanks for the info, I think it would be logical to have the unmark_delete function in python🙌🏼
@yurymalkov I also have a use case , can you point me to the c++ code interface method as well , thanks
@patelprateek I have started working on this.
@patelprateek this https://github.com/nmslib/hnswlib/pull/334 should add unmark_deleted function in python
@patelprateek this https://github.com/nmslib/hnswlib/pull/334 should add unmark_deleted function in python
I just found out that in version 0.5.2, the unmark deleted feature was exist. When use add_item function with an pre-existing mark_deleted label, add_item will work as "update_item" and "unmark_deleted" the label.
Perhaps the "add_item" name is misleading, but documentation on update function definitely needs more work.