mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-24 16:34:20 +08:00
(improvement)(chat) Add DrillDownDimensionProcessor and SimilarQueryProcessor to obtain recommended dimensions and similar queries (#511)
Co-authored-by: jolunoluo
This commit is contained in:
@@ -37,6 +37,7 @@ CREATE TABLE `s2_chat_query`
|
||||
`query_result` mediumtext NOT NULL ,
|
||||
`score` int DEFAULT '0',
|
||||
`feedback` varchar(1024) DEFAULT '',
|
||||
`similar_queries` varchar(1024) DEFAULT '',
|
||||
PRIMARY KEY (`question_id`)
|
||||
);
|
||||
|
||||
|
||||
@@ -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` (
|
||||
|
||||
@@ -142,4 +142,7 @@ CREATE TABLE `s2_metric_query_default_config`
|
||||
`updated_at` datetime null,
|
||||
`created_by` varchar(100) null,
|
||||
`updated_by` varchar(100) null
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--20231214
|
||||
alter table s2_chat_query add column `similar_queries` varchar(1024) DEFAULT '';
|
||||
Reference in New Issue
Block a user