From 6ad9d528b4013f8dc26bd55d2f47b3d4fa61a9db Mon Sep 17 00:00:00 2001 From: Arjun Rao Date: Thu, 8 May 2025 14:22:11 +1000 Subject: [PATCH] Updated semaphore release message --- lightrag/lightrag.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 9ae6178f..02ec060d 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -1046,7 +1046,9 @@ class LightRAG: } ) - # Semphore is NOT released here, however, the profile context is + # Semphore is NOT released here, because the merge_nodes_and_edges function is highly concurrent + # and more importantly, it is the bottleneck and needs to be resource controlled in massively + # parallel insertions if file_extraction_stage_ok: try: