PDF文件解析不到内容
This commit is contained in:
parent
706da5ad23
commit
49cb51b5dc
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue