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: Before executing the SQL, remove tags in the format [ID: number] to avoid execution errors. (#9326)
goodboyasia3ccaa06031fd
diff --git a/agent/tools/exesql.py b/agent/tools/exesql.pyindex 63cd3d0be0..ca03dfc21a 100644--- a/agent/tools/exesql.py+++ b/agent/tools/exesql.py@@ -14,6 +14,7 @@# limitations under the License.#import os+import refrom abc import ABCimport pandas as pdimport pymysql@@ -109,7 +110,7 @@ class ExeSQL(ToolBase, ABC):single_sql = single_sql.replace('```','')if not single_sql:continue-+ single_sql = re.sub(r"\[ID:[0-9]+\]", "", single_sql)cursor.execute(single_sql)if cursor.rowcount == 0:sql_res.append({"content": "No record in the database!"})