mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-27 19:04:25 +08:00
(improvement)(headless&chat)Move ChatContext from Headless module to Chat module.
This commit is contained in:
@@ -5,7 +5,7 @@ import com.tencent.supersonic.auth.api.authentication.pojo.User;
|
||||
import com.tencent.supersonic.auth.api.authorization.service.AuthService;
|
||||
import com.tencent.supersonic.chat.server.service.AgentService;
|
||||
import com.tencent.supersonic.chat.server.service.ChatManageService;
|
||||
import com.tencent.supersonic.chat.server.service.ChatService;
|
||||
import com.tencent.supersonic.chat.server.service.ChatQueryService;
|
||||
import com.tencent.supersonic.chat.server.service.PluginService;
|
||||
import com.tencent.supersonic.common.service.SystemConfigService;
|
||||
import com.tencent.supersonic.headless.api.pojo.DataSetModelConfig;
|
||||
@@ -75,7 +75,7 @@ public abstract class S2BaseDemo implements CommandLineRunner {
|
||||
@Autowired
|
||||
protected TagObjectService tagObjectService;
|
||||
@Autowired
|
||||
protected ChatService chatService;
|
||||
protected ChatQueryService chatQueryService;
|
||||
@Autowired
|
||||
protected ChatManageService chatManageService;
|
||||
@Autowired
|
||||
|
||||
@@ -137,11 +137,11 @@ public class S2VisitsDemo extends S2BaseDemo {
|
||||
public void addSampleChats(Integer agentId) {
|
||||
Long chatId = chatManageService.addChat(user, "样例对话1", agentId);
|
||||
|
||||
chatService.parseAndExecute(chatId.intValue(), agentId, "超音数 访问次数");
|
||||
chatService.parseAndExecute(chatId.intValue(), agentId, "按部门统计");
|
||||
chatService.parseAndExecute(chatId.intValue(), agentId, "查询近30天");
|
||||
chatService.parseAndExecute(chatId.intValue(), agentId, "alice 停留时长");
|
||||
chatService.parseAndExecute(chatId.intValue(), agentId, "访问次数最高的部门");
|
||||
chatQueryService.parseAndExecute(chatId.intValue(), agentId, "超音数 访问次数");
|
||||
chatQueryService.parseAndExecute(chatId.intValue(), agentId, "按部门统计");
|
||||
chatQueryService.parseAndExecute(chatId.intValue(), agentId, "查询近30天");
|
||||
chatQueryService.parseAndExecute(chatId.intValue(), agentId, "alice 停留时长");
|
||||
chatQueryService.parseAndExecute(chatId.intValue(), agentId, "访问次数最高的部门");
|
||||
}
|
||||
|
||||
private Integer addAgent(long dataSetId) {
|
||||
|
||||
@@ -51,12 +51,12 @@ com.tencent.supersonic.headless.server.processor.ResultProcessor=\
|
||||
|
||||
### chat-server SPIs
|
||||
|
||||
com.tencent.supersonic.chat.server.parser.ChatParser=\
|
||||
com.tencent.supersonic.chat.server.parser.ChatQueryParser=\
|
||||
com.tencent.supersonic.chat.server.parser.NL2PluginParser, \
|
||||
com.tencent.supersonic.chat.server.parser.NL2SQLParser,\
|
||||
com.tencent.supersonic.chat.server.parser.PlainTextParser
|
||||
|
||||
com.tencent.supersonic.chat.server.executor.ChatExecutor=\
|
||||
com.tencent.supersonic.chat.server.executor.ChatQueryExecutor=\
|
||||
com.tencent.supersonic.chat.server.executor.PluginExecutor, \
|
||||
com.tencent.supersonic.chat.server.executor.SqlExecutor,\
|
||||
com.tencent.supersonic.chat.server.executor.PlainTextExecutor
|
||||
|
||||
Reference in New Issue
Block a user