mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-20 06:34:55 +00:00
@@ -93,6 +93,8 @@ public class ChatDemoLoader implements CommandLineRunner {
|
||||
addAgent3();
|
||||
addSampleChats();
|
||||
addSampleChats2();
|
||||
updateQueryScore(1);
|
||||
updateQueryScore(4);
|
||||
} catch (Exception e) {
|
||||
log.error("Failed to add sample chats", e);
|
||||
}
|
||||
@@ -506,6 +508,10 @@ public class ChatDemoLoader implements CommandLineRunner {
|
||||
agentService.createAgent(agent, User.getFakeUser());
|
||||
}
|
||||
|
||||
private void updateQueryScore(Integer queryId) {
|
||||
chatService.updateFeedback(queryId, 5, "");
|
||||
}
|
||||
|
||||
private boolean checkEnable() {
|
||||
if (!demoEnabled) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user