PDF文件解析不到内容

This commit is contained in:
xuewei 2025-07-05 13:47:47 +08:00
parent 706da5ad23
commit 49cb51b5dc

View file

@ -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