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: