xuewei commited on
Commit
91c9e4c
·
1 Parent(s): be16370

文本块是空白

Browse files
Files changed (1) hide show
  1. lightrag/lightrag.py +3 -0
lightrag/lightrag.py CHANGED
@@ -965,6 +965,9 @@ class LightRAG:
965
  )
966
  }
967
 
 
 
 
968
  # Process document in two stages
969
  # Stage 1: Process text chunks and docs (parallel execution)
970
  doc_status_task = asyncio.create_task(
 
965
  )
966
  }
967
 
968
+ if not chunks:
969
+ logger.error("No document chunks to process")
970
+
971
  # Process document in two stages
972
  # Stage 1: Process text chunks and docs (parallel execution)
973
  doc_status_task = asyncio.create_task(