(improvement)(Chat)The chat history also returns the time taken for parsing and SQL generation (#1084)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2024-06-03 21:18:32 +08:00
committed by GitHub
parent 5e9c960263
commit 4648e8d875
20 changed files with 69 additions and 2953 deletions

View File

@@ -23,12 +23,12 @@ public class MetaDiscoveryTest extends BaseTest {
queryMapReq.setQueryText("对比alice和lucy的访问次数");
queryMapReq.setTopN(10);
queryMapReq.setUser(User.getFakeUser());
queryMapReq.setDataSetNames(Collections.singletonList("超音数"));
queryMapReq.setDataSetNames(Collections.singletonList("超音数数据集"));
MapInfoResp mapMeta = metaDiscoveryService.getMapMeta(queryMapReq);
Assertions.assertNotNull(mapMeta);
Assertions.assertNotEquals(0, mapMeta.getDataSetMapInfo().get("超音数").getMapFields());
Assertions.assertNotEquals(0, mapMeta.getDataSetMapInfo().get("超音数").getTopFields());
Assertions.assertNotEquals(0, mapMeta.getDataSetMapInfo().get("超音数数据集").getMapFields());
Assertions.assertNotEquals(0, mapMeta.getDataSetMapInfo().get("超音数数据集").getTopFields());
}
@Test

View File

@@ -38,6 +38,7 @@ CREATE TABLE IF NOT EXISTS `s2_chat_query`
`score` int DEFAULT '0',
`feedback` varchar(1024) DEFAULT '',
`similar_queries` varchar(1024) DEFAULT '',
`parse_time_cost` varchar(1024) DEFAULT '',
PRIMARY KEY (`question_id`)
);