Skip to content

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

Fix backquotes in text2sql causing execution errors (#7793)

Sol53b991aa0e22
diff --git a/agent/component/exesql.py b/agent/component/exesql.py
index 2c414ddb71..6f8eae0259 100644
--- a/agent/component/exesql.py
+++ b/agent/component/exesql.py
@@ -105,6 +105,7 @@ class ExeSQL(Generate, ABC):
sql_res = []
for i in range(len(input_list)):
single_sql = input_list[i]
+ single_sql = single_sql.replace('```','')
while self._loop <= self._param.loop:
self._loop += 1
if not single_sql: