Update pipeline_enqueue_file to include file_paths parameter

This commit is contained in:
yangdx
2025-03-25 20:47:25 +08:00
parent 4076b20582
commit 35df22cf08

View File

@@ -370,7 +370,7 @@ async def pipeline_enqueue_file(rag: LightRAG, file_path: Path) -> bool:
# Insert into the RAG queue # Insert into the RAG queue
if content: if content:
await rag.apipeline_enqueue_documents(content) await rag.apipeline_enqueue_documents(content, file_paths=file_path.name)
logger.info(f"Successfully fetched and enqueued file: {file_path.name}") logger.info(f"Successfully fetched and enqueued file: {file_path.name}")
return True return True
else: else: