RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
Fix Logical operator (#2143)
H527ebec2f55d
diff --git a/agent/component/switch.py b/agent/component/switch.pyindex 72cfaccf24..fe2e2452ff 100644--- a/agent/component/switch.py+++ b/agent/component/switch.py@@ -42,8 +42,6 @@ class SwitchParam(ComponentParamBase):self.check_empty(self.conditions, "[Switch] conditions")for cond in self.conditions:if not cond["to"]: raise ValueError(f"[Switch] 'To' can not be empty!")- if cond["logical_operator"] not in ["and", "or"] and len(cond["items"]) > 1:- raise ValueError(f"[Switch] Please set logical_operator correctly!")class Switch(ComponentBase, ABC):