From 35df22cf0853b542254f16e68743d016d1145177 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 25 Mar 2025 20:47:25 +0800 Subject: [PATCH] Update pipeline_enqueue_file to include file_paths parameter --- lightrag/api/routers/document_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightrag/api/routers/document_routes.py b/lightrag/api/routers/document_routes.py index e2284c11..e91668f6 100644 --- a/lightrag/api/routers/document_routes.py +++ b/lightrag/api/routers/document_routes.py @@ -370,7 +370,7 @@ async def pipeline_enqueue_file(rag: LightRAG, file_path: Path) -> bool: # Insert into the RAG queue 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}") return True else: