mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-19 04:44:19 +08:00
[improvement][chat]Merge RuleTool and LLMTool.#1766 (#1768)
This commit is contained in:
@@ -148,11 +148,11 @@ public class Text2SQLEval extends BaseTest {
|
||||
return agent;
|
||||
}
|
||||
|
||||
private static LLMParserTool getLLMQueryTool() {
|
||||
LLMParserTool llmParserTool = new LLMParserTool();
|
||||
llmParserTool.setType(AgentToolType.NL2SQL_LLM);
|
||||
llmParserTool.setDataSetIds(Lists.newArrayList(-1L));
|
||||
private static DatasetTool getLLMQueryTool() {
|
||||
DatasetTool datasetTool = new DatasetTool();
|
||||
datasetTool.setType(AgentToolType.DATASET);
|
||||
datasetTool.setDataSetIds(Lists.newArrayList(-1L));
|
||||
|
||||
return llmParserTool;
|
||||
return datasetTool;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ public class DataUtils {
|
||||
chatParseReq.setQueryText(query);
|
||||
chatParseReq.setChatId(id);
|
||||
chatParseReq.setUser(user_test);
|
||||
chatParseReq.setDisableLLM(true);
|
||||
return chatParseReq;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user