[improvement][chat]Modify core workflow of NL2SQLParser, always invoking rule-based parsers first.#1729

This commit is contained in:
jerryjzhang
2024-10-29 13:07:02 +08:00
parent b01751afdb
commit 400b9f86f0
9 changed files with 96 additions and 52 deletions

View File

@@ -40,6 +40,7 @@ public class DataUtils {
public static ChatParseReq getChatParseReq(Integer id, String query, boolean enableLLM) {
ChatParseReq chatParseReq = new ChatParseReq();
chatParseReq.setQueryText(query);
chatParseReq.setAgentId(metricAgentId);
chatParseReq.setChatId(id);
chatParseReq.setUser(user_test);
chatParseReq.setDisableLLM(!enableLLM);