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 interface as input variable for component. (#4212)
Kevin Hu4e5f92f01bb9
diff --git a/agent/component/base.py b/agent/component/base.pyindex 663ac2744d..592515a89a 100644--- a/agent/component/base.py+++ b/agent/component/base.py@@ -477,6 +477,13 @@ class ComponentBase(ABC):assert False, f"Can't find parameter '{key}' for {cpn_id}"continue+ if q["component_id"].lower().find("answer") == 0:+ for r, c in self._canvas.history[::-1]:+ if r == "user":+ self._param.inputs.append(pd.DataFrame([{"content": c, "component_id": q["component_id"]}]))+ break+ continue+outs.append(self._canvas.get_component(q["component_id"])["obj"].output(allow_partial=False)[1])self._param.inputs.append({"component_id": q["component_id"],"content": "\n".join(