Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fixed errror when vars of cnt begin declare with key contain "begin" (#7457)

so95d6cc6453d1d3
diff --git a/agent/component/base.py b/agent/component/base.py
index 54ccb6c3c4..f03c5d1070 100644
--- a/agent/component/base.py
+++ b/agent/component/base.py
@@ -466,7 +466,7 @@ class ComponentBase(ABC):
outs = []
for q in sources:
if q.get("component_id"):
- if q["component_id"].split("@")[0].lower().find("begin") >= 0:
+ if "@" in q["component_id"] and q["component_id"].split("@")[0].lower().find("begin") >= 0:
cpn_id, key = q["component_id"].split("@")
for p in self._canvas.get_component(cpn_id)["obj"]._param.query:
if p["key"] == key: