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
Remove redundant param of rewrite component. (#4422)
Kevin Hubc681e2ee905
diff --git a/agent/component/rewrite.py b/agent/component/rewrite.pyindex f6bf0de695..06a1f6b237 100644--- a/agent/component/rewrite.py+++ b/agent/component/rewrite.py@@ -29,7 +29,6 @@ class RewriteQuestionParam(GenerateParam):super().__init__()self.temperature = 0.9self.prompt = ""- self.loop = 1def check(self):super().check()@@ -85,13 +84,6 @@ class RewriteQuestion(Generate, ABC):component_name = "RewriteQuestion"def _run(self, history, **kwargs):- if not hasattr(self, "_loop"):- setattr(self, "_loop", 0)- if self._loop >= self._param.loop:- self._loop = 0- raise Exception("Sorry! Nothing relevant found.")- self._loop += 1-hist = self._canvas.get_history(4)conv = []for m in hist: