mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-08 00:18:12 +08:00
Feat: Refact pipeline (#13826)
### What problem does this PR solve? ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Refactoring --------- Co-authored-by: Zhichang Yu <yuzhichang@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,7 @@ import random
|
||||
import time
|
||||
|
||||
from api.db import CanvasCategory
|
||||
from agent.dsl_migration import normalize_chunker_dsl
|
||||
from rag.utils.redis_conn import REDIS_CONN, RedisDistributedLock
|
||||
|
||||
|
||||
@@ -56,7 +57,7 @@ class CanvasReplicaService:
|
||||
raise ValueError("DSL must be a JSON object.")
|
||||
|
||||
try:
|
||||
return json.loads(json.dumps(normalized, ensure_ascii=False))
|
||||
return json.loads(json.dumps(normalize_chunker_dsl(normalized), ensure_ascii=False))
|
||||
except Exception as e:
|
||||
raise ValueError("DSL is not JSON-serializable.") from e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user