Fix: Persist document data immediately after index update

This commit is contained in:
yangdx 2025-08-14 12:33:36 +08:00
parent 28fc075c59
commit 65a4437f78

View file

@ -1103,6 +1103,8 @@ class LightRAG:
for doc_id in new_docs.keys()
}
await self.full_docs.upsert(full_docs_data)
# Persist data to disk immediately
await self.full_docs.index_done_callback()
# Store document status (without content)
await self.doc_status.upsert(new_docs)