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:
Kevin Hu
2026-07-30 18:39:01 +08:00
committed by GitHub
parent 1667d1495f
commit 3f8a3dfcff
16 changed files with 901 additions and 196 deletions

View File

@@ -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:

View File

@@ -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,
)