From 648a87653f616cb321a441e2c98805c48cd11b46 Mon Sep 17 00:00:00 2001 From: xuewei <728857235@qq.com> Date: Sat, 5 Jul 2025 14:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=AC=E5=9D=97=E6=98=AF=E7=A9=BA?= =?UTF-8?q?=E7=99=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/lightrag.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lightrag/lightrag.py b/lightrag/lightrag.py index 2ab9f89a..34ee15e6 100644 --- a/lightrag/lightrag.py +++ b/lightrag/lightrag.py @@ -965,6 +965,9 @@ class LightRAG: ) } + if not chunks: + logger.error("No document chunks to process") + # Process document in two stages # Stage 1: Process text chunks and docs (parallel execution) doc_status_task = asyncio.create_task(