(improvement)(chat) updateParseInfo after selectQueries and add update mysql s2_agent table LLM_S2QL -> LLM_S2SQL (#359)

This commit is contained in:
lexluo09
2023-11-10 16:43:23 +08:00
committed by GitHub
parent 8ed7e91221
commit cf788316c3
2 changed files with 5 additions and 4 deletions

View File

@@ -159,12 +159,10 @@ public class QueryServiceImpl implements QueryService {
List<ChatParseDO> chatParseDOS = Lists.newArrayList();
if (candidateQueries.size() > 0) {
List<SemanticQuery> selectedQueries = querySelector.select(candidateQueries, queryReq);
candidateQueries.forEach(semanticQuery -> parseInfoService.updateParseInfo(semanticQuery.getParseInfo()));
List<SemanticParseInfo> selectedParses = parseInfoService.sortParseInfo(selectedQueries);
List<SemanticParseInfo> candidateParses = parseInfoService.sortParseInfo(candidateQueries);
candidateParses = parseInfoService.getTopCandidateParseInfo(selectedParses, candidateParses);
candidateQueries.forEach(semanticQuery -> parseInfoService.updateParseInfo(semanticQuery.getParseInfo()));
parseResult = ParseResp.builder()
.chatId(queryReq.getChatId())

View File

@@ -77,3 +77,6 @@ update s2_model set status = 1;
update s2_datasource set status = 1;
update s2_metric set status = 1;
update s2_dimension set status = 1;
--20231110
UPDATE `s2_agent` SET `config` = replace (`config`,'LLM_S2QL','LLM_S2SQL') WHERE `config` LIKE '%LLM_S2QL%';