From 572a75b14148ff617106558f031371fc19798e5b Mon Sep 17 00:00:00 2001 From: Yannick Stephan Date: Sun, 9 Feb 2025 11:36:33 +0100 Subject: [PATCH] cleaned code --- lightrag/lightrag.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index f33427cf..b190054d 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -500,10 +500,7 @@ class LightRAG: return # 4. Store original document - for doc_id, doc in new_docs.items(): - await self.full_docs.upsert( - {doc_id: doc} - ) + await self.full_docs.upsert(new_docs) logger.info(f"Stored {len(new_docs)} new unique documents") async def apipeline_process_chunks(