- Fix the bug from main stream that using doc['status']

- Improve the performance of Apache AGE.
- Revise the README.md for Apache AGE indexing.
This commit is contained in:
Samuel Chan
2025-02-02 18:20:32 +08:00
parent 75b5739f81
commit 02ac96ff8e
3 changed files with 52 additions and 6 deletions

View File

@@ -373,7 +373,7 @@ class LightRAG:
doc_id
for doc_id in new_docs.keys()
if (current_doc := await self.doc_status.get_by_id(doc_id)) is None
or current_doc["status"] == DocStatus.FAILED
or current_doc.status == DocStatus.FAILED
}
new_docs = {k: v for k, v in new_docs.items() if k in _add_doc_keys}