From f52b9929bb39b069c9a9cffc9659863c26a89022 Mon Sep 17 00:00:00 2001 From: yangdx Date: Thu, 20 Feb 2025 14:48:54 +0800 Subject: [PATCH] fix: add missing rag parameter in pipeline_enqueue_file call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Add rag param to function call • Fix argument mismatch error • Ensure proper pipeline execution --- 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 383c762c..242f37b9 100644 --- a/lightrag/api/routers/document_routes.py +++ b/lightrag/api/routers/document_routes.py @@ -263,7 +263,7 @@ async def pipeline_index_file(rag: LightRAG, file_path: Path): file_path: Path to the saved file """ try: - if await pipeline_enqueue_file(file_path): + if await pipeline_enqueue_file(rag, file_path): await rag.apipeline_process_enqueue_documents() except Exception as e: