mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
(improvement)(chat) updateParseInfo after selectQueries and add update mysql s2_agent table LLM_S2QL -> LLM_S2SQL (#359)
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -76,4 +76,7 @@ alter table s2_datasource add column status int null after database_id;
|
||||
update s2_model set status = 1;
|
||||
update s2_datasource set status = 1;
|
||||
update s2_metric set status = 1;
|
||||
update s2_dimension 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%';
|
||||
Reference in New Issue
Block a user