Skip to content

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

Resume content flow ExecSQL (#4738)

so95a73e1750b6d7
diff --git a/agent/component/exesql.py b/agent/component/exesql.py
index 86a1685d05..4b067d1d11 100644
--- a/agent/component/exesql.py
+++ b/agent/component/exesql.py
@@ -126,7 +126,8 @@ class ExeSQL(Generate, ABC):
single_sql = self._regenerate_sql(single_sql, str(e), **kwargs)
single_sql = self._refactor(single_sql)
if self._loop > self._param.loop:
- raise Exception("Maximum loop time exceeds. Can't query the correct data via SQL statement.")
+ sql_res.append({"content": "Can't query the correct data via SQL statement."})
+ # raise Exception("Maximum loop time exceeds. Can't query the correct data via SQL statement.")
db.close()
if not sql_res:
return ExeSQL.be_output("")