Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix cannot run raptor (#16694)

Wang Qi2de5940325f1
diff --git a/rag/svr/task_executor_refactor/task_handler.py b/rag/svr/task_executor_refactor/task_handler.py
index bc261099c3..06defc9b74 100644
--- a/rag/svr/task_executor_refactor/task_handler.py
+++ b/rag/svr/task_executor_refactor/task_handler.py
@@ -237,7 +237,9 @@ class TaskHandler:
return
# Route to appropriate handler
- if task_type == "graphrag":
+ if task_type == "raptor":
+ await self._run_raptor(embedding_model, vector_size)
+ elif task_type == "graphrag":
await self._run_graphrag(embedding_model)
elif task_type == "mindmap":
ctx.progress_cb(1, "place holder")