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

@@ -56,7 +56,7 @@ def validate_template_payload(req: dict, require_all: bool = True) -> str:
return f"{section.capitalize()} field description is too long."
if len(str((field or {}).get("rule") or "")) > 1024:
return f"{section.capitalize()} field rule is too long."
if config.get("kind") == "artifacts" or req.get("kind") == "artifacts":
if config.get("kind") == "wiki" or req.get("kind") == "wiki":
for field in (config.get("claim") or {}).get("fields") or []:
if not str((field or {}).get("statement") or "").strip():
return "Claim statement is required."