(improvement)(chat) Add DrillDownDimensionProcessor and SimilarQueryProcessor to obtain recommended dimensions and similar queries (#511)

Co-authored-by: jolunoluo
This commit is contained in:
LXW
2023-12-15 10:27:33 +08:00
committed by GitHub
parent 7db1cc270e
commit e9a479e2df
32 changed files with 436 additions and 565 deletions

View File

@@ -157,19 +157,21 @@ CREATE TABLE `s2_chat_parse` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE `s2_chat_query` (
`question_id` bigint(20) NOT NULL AUTO_INCREMENT,
`agent_id` int(11) DEFAULT NULL,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`query_text` mediumtext,
`user_name` varchar(150) DEFAULT NULL,
`query_state` int(1) DEFAULT NULL,
`chat_id` bigint(20) NOT NULL,
`query_result` mediumtext,
`score` int(11) DEFAULT '0',
`feedback` varchar(1024) DEFAULT '',
PRIMARY KEY (`question_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `s2_chat_query`
(
`question_id` bigint(20) NOT NULL AUTO_INCREMENT,
`agent_id` int(11) DEFAULT NULL,
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`query_text` mediumtext,
`user_name` varchar(150) DEFAULT NULL,
`query_state` int(1) DEFAULT NULL,
`chat_id` bigint(20) NOT NULL,
`query_result` mediumtext,
`score` int(11) DEFAULT '0',
`feedback` varchar(1024) DEFAULT '',
`similar_queries` varchar(1024) DEFAULT '',
PRIMARY KEY (`question_id`)
) ENGINE = InnoDB DEFAULT CHARSET = utf8;
CREATE TABLE `s2_chat_statistics` (