mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-02 13:57:30 +08:00
Feat: Compilation benefit naive rag. (#17555)
### Summary Compilation benifit naive rag --------- Co-authored-by: Yingfeng Zhang <yingfeng.zhang@gmail.com>
This commit is contained in:
@@ -1028,7 +1028,7 @@ async def run_wiki(
|
||||
template = CompilationTemplateService.get_saved(template_id, ctx.tenant_id)
|
||||
config = template.get("config") if template else {}
|
||||
kind = _compilation_template_kind(config.get("kind") if isinstance(config, dict) else "")
|
||||
if kind == "artifacts":
|
||||
if kind == "wiki":
|
||||
eligible.append((d, template_id))
|
||||
break
|
||||
if not eligible:
|
||||
|
||||
@@ -255,7 +255,7 @@ class TaskHandler:
|
||||
await self._run_graphrag(embedding_model)
|
||||
elif task_type == "mindmap":
|
||||
ctx.progress_cb(1, "place holder")
|
||||
elif task_type == "artifact":
|
||||
elif task_type == "wiki":
|
||||
from rag.svr.task_executor_refactor.dataset_wiki_generator import (
|
||||
run_wiki,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user