From b6bfb5207173a1021083f12d9e12e4934039991d Mon Sep 17 00:00:00 2001 From: ageerle <ageerle@163.com> Date: 星期五, 07 三月 2025 10:01:10 +0800 Subject: [PATCH] feat: 更新sql脚本 --- script/sql/update/update20250307.sql | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/script/sql/update/update20250307.sql b/script/sql/update/update20250307.sql new file mode 100644 index 0000000..e25f656 --- /dev/null +++ b/script/sql/update/update20250307.sql @@ -0,0 +1,15 @@ +ALTER TABLE `knowledge_info` + ADD COLUMN `knowledge_separator` varchar(255) NULL COMMENT '鐭ヨ瘑鍒嗛殧绗�' AFTER `create_by`, +ADD COLUMN `question_separator` varchar(255) NULL COMMENT '鎻愰棶鍒嗛殧绗�' AFTER `knowledge_separator`, +ADD COLUMN `overlap_char` int NULL COMMENT '閲嶅彔瀛楃鏁�' AFTER `question_separator`, +ADD COLUMN `retrieve_limit` int NULL COMMENT '鐭ヨ瘑搴撲腑妫�绱㈢殑鏉℃暟' AFTER `overlap_char`, +ADD COLUMN `text_block_size` int NULL COMMENT '鏂囨湰鍧楀ぇ灏�' AFTER `retrieve_limit`, +ADD COLUMN `vector` varchar(50) NULL COMMENT '鍚戦噺搴�' AFTER `text_block_size`, +ADD COLUMN `vector_model` varchar(50) NULL COMMENT '鍚戦噺妯″瀷' AFTER `vector`; + + + +INSERT INTO `chat_config` (`id`, `category`, `config_name`, `config_value`, `config_dict`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`) VALUES (1897610056458412050, 'weaviate', 'protocol', 'http', '鍗忚', 103, '2025-03-06 21:10:02', '1', '1', '2025-03-06 21:10:31', NULL, NULL, '0', NULL, 0); +INSERT INTO `chat_config` (`id`, `category`, `config_name`, `config_value`, `config_dict`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`) VALUES (1897610056458412051, 'weaviate', 'host', '127.0.0.1:6038', '鍦板潃', 103, '2025-03-06 21:10:02', '1', '1', '2025-03-06 21:10:31', NULL, NULL, '0', NULL, 0); +INSERT INTO `chat_config` (`id`, `category`, `config_name`, `config_value`, `config_dict`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`) VALUES (1897610056458412052, 'weaviate', 'classname', 'LocalKnowledge', '鍒嗙被鍚嶇О', 103, '2025-03-06 21:10:02', '1', '1', '2025-03-06 21:10:31', NULL, NULL, '0', NULL, 0); +INSERT INTO `chat_config` (`id`, `category`, `config_name`, `config_value`, `config_dict`, `create_dept`, `create_time`, `create_by`, `update_by`, `update_time`, `remark`, `version`, `del_flag`, `update_ip`, `tenant_id`) VALUES (1897610056458412053, 'milvus', 'host', '127.0.0.1', '鍦板潃', -- Gitblit v1.9.3