Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Active
Updated 3 weeks ago
0
Follow
Cannot Delete a Document in the Index Using the Doc_id
Cannot Delete a Document in the Index Using the Doc_id
Active
0
Follow
B
Brent
3 weeks ago
Β·
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.
W
L
2 comments
Share
Open in Discord
W
WhiteFang_Jr
edited 3 weeks ago
Currently delete func is not there for Faiss vector store:
https://github.com/run-llama/llama_index/blob/112d307505a44c5f7cf88089b23d4136686f58ec/llama-index-integrations/vector_stores/llama-index-vector-stores-faiss/llama_index/vector_stores/faiss/base.py#L168
L
Logan M
3 weeks ago
Yea, faiss doesn't support it afaik
Add a reply
Sign up and join the conversation on Discord
Join on Discord