You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues and this bug is not already filed.
My model is hosted on OpenAI or Azure. If not, please look at the "model providers" issue and don't file a new one here.
I believe this is a legitimate bug, not just a question. If this is a question, please use the Discussions area.
Describe the bug
Two issues related to handling deleted documents during index updates:
The code here fails if there are only documents to delete and no documents to add:
# Fail on empty delta datasetifdelta_dataset.new_inputs.empty:
error_msg="Incremental Indexing Error: No new documents to process."raiseValueError(error_msg)
In the same function, delta_dataset.deleted_inputs is not referenced and only delta_dataset.new_inputs is. So it looks like document deletion is not implemented. If that's the case, with some guidance I may be able to provide a PR.
Steps to reproduce
Run an index update with only documents to delete and no documents to add.
Expected Behavior
Updates containing only document deletions succeed and deleted documents are removed from the index.
Do you need to file an issue?
Describe the bug
Two issues related to handling deleted documents during index updates:
The code here fails if there are only documents to delete and no documents to add:
graphrag/graphrag/index/run/run_workflows.py
Line 93 in 63042d2
(related to #1600)
In the same function,
delta_dataset.deleted_inputs
is not referenced and onlydelta_dataset.new_inputs
is. So it looks like document deletion is not implemented. If that's the case, with some guidance I may be able to provide a PR.Steps to reproduce
Run an index update with only documents to delete and no documents to add.
Expected Behavior
Updates containing only document deletions succeed and deleted documents are removed from the index.
GraphRAG Config Used
N/A
Logs and screenshots
No response
Additional Information
The text was updated successfully, but these errors were encountered: