refine manul parser (#131)

This commit is contained in:
KevinHuSh
2024-03-19 12:26:04 +08:00
committed by GitHub
parent d56c9e7630
commit 9da671b951
13 changed files with 145 additions and 52 deletions

View File

@ -274,6 +274,8 @@ def use_sql(question, field_map, tenant_id, chat_mdl):
return retrievaler.sql_retrieval(sql, format="json"), sql
tbl, sql = get_table()
if tbl is None:
return None, None
if tbl.get("error") and tried_times <= 2:
user_promt = """
表名:{}