From c36afecba439a4f76b417e95bd108ddb0b3a24ce Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 30 Oct 2025 20:35:41 +0800 Subject: [PATCH] Remove redundant await call in file extraction pipeline --- lightrag/lightrag.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index f0acb72d..8453940b 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -1835,7 +1835,7 @@ class LightRAG: chunks, pipeline_status, pipeline_status_lock ) ) - await entity_relation_task + chunk_results = await entity_relation_task file_extraction_stage_ok = True except Exception as e: @@ -1917,8 +1917,7 @@ class LightRAG: "User cancelled" ) - # Get chunk_results from entity_relation_task - chunk_results = await entity_relation_task + # Use chunk_results from entity_relation_task await merge_nodes_and_edges( chunk_results=chunk_results, # result collected from entity_relation_task knowledge_graph_inst=self.chunk_entity_relation_graph,