Fix: Persist document data immediately after index update
This commit is contained in:
parent
28fc075c59
commit
65a4437f78
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue