mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-02 05:47:31 +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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user