yangdx commited on
Commit
d8c7135
·
1 Parent(s): d66a4a6

Update pipeline_enqueue_file to include file_paths parameter

Browse files
lightrag/api/routers/document_routes.py CHANGED
@@ -370,7 +370,7 @@ async def pipeline_enqueue_file(rag: LightRAG, file_path: Path) -> bool:
370
 
371
  # Insert into the RAG queue
372
  if content:
373
- await rag.apipeline_enqueue_documents(content)
374
  logger.info(f"Successfully fetched and enqueued file: {file_path.name}")
375
  return True
376
  else:
 
370
 
371
  # Insert into the RAG queue
372
  if content:
373
+ await rag.apipeline_enqueue_documents(content, file_paths=file_path.name)
374
  logger.info(f"Successfully fetched and enqueued file: {file_path.name}")
375
  return True
376
  else: