We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63bd066 commit 443aab2Copy full SHA for 443aab2
lightrag/lightrag.py
@@ -469,9 +469,8 @@ async def ainsert(
469
error_msg = f"Failed to process document {doc_id}: {str(e)}\n{traceback.format_exc()}"
470
logger.error(error_msg)
471
continue
472
-
473
- finally:
474
- # Ensure all indexes are updated after each document
+ else:
+ # Only update index when processing succeeds
475
await self._insert_done()
476
477
def insert_custom_chunks(self, full_text: str, text_chunks: list[str]):
0 commit comments