Find answers from the community

Updated 2 months ago

Cannot Delete a Document in the Index Using the Doc_id

At a glance

The community member is trying to delete a document from a Faiss index, but is encountering a NotImplementedError as the delete function is not yet implemented for Faiss indexes. Other community members confirm that Faiss does not currently support the delete operation.

Useful resources
Hi @all.

I cannot delete a doc in the index using the doc_id.

doc_id = f"{id}"
index.delete(doc_id)

Save the index after the update

index.storage_context.persist(persist_dir=f"{Constants.index_path}/{folder}")

I got the error:
NotImplementedError: Delete not yet implemented for Faiss index.
Add a reply
Sign up and join the conversation on Discord