mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-10 16:59:01 +08:00
Fix backquotes in text2sql causing execution errors (#7793)
### What problem does this PR solve? Remove the backquotes in the sql generated by LLM to prevent it from causing execution errors.   ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
9e80f39caa
commit
53b991aa0e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user