From 49cb51b5dc2cfc5b63ffc86155de688f31e395c1 Mon Sep 17 00:00:00 2001 From: xuewei <728857235@qq.com> Date: Sat, 5 Jul 2025 13:47:47 +0800 Subject: [PATCH] =?UTF-8?q?PDF=E6=96=87=E4=BB=B6=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/api/routers/document_routes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lightrag/api/routers/document_routes.py b/lightrag/api/routers/document_routes.py index c25f7241..80e1ba56 100644 --- a/lightrag/api/routers/document_routes.py +++ b/lightrag/api/routers/document_routes.py @@ -714,6 +714,10 @@ async def pipeline_enqueue_file(rag: LightRAG, file_path: Path) -> bool: # Insert into the RAG queue if content: + + if content == "\n": + logger.info(f"File appears to be empty. file_paths={file_path.name}") + await rag.apipeline_enqueue_documents(content, file_paths=file_path.name) logger.info(f"Successfully fetched and enqueued file: {file_path.name}") return True