|
|
@@ -5785,16 +5785,15 @@ INSERT INTO `sys_grid_fields` (`object`, `name`, `title`, `width`, `translatable
|
|
|
('sys_studio_agents_vector_store', 'switcher', '_sys_active', '10%', 0, 0, '', '', 10),
|
|
|
('sys_studio_agents_vector_store', 'title', '_Title', '20%', 0, 0, '', '', 20),
|
|
|
('sys_studio_agents_vector_store', 'type', '_adm_form_txt_fields_type', '10%', 0, 0, '', '', 30),
|
|
|
-('sys_studio_agents_vector_store', 'topk', '_sys_agents_vector_store_txt_topk', '5%', 0, 0, '', '', 40),
|
|
|
+('sys_studio_agents_vector_store', 'embedding_provider_id', '_sys_agents_vector_store_txt_embedding_provider', '5%', 0, 0, '', '', 40),
|
|
|
('sys_studio_agents_vector_store', 'files_num', '_sys_agents_vector_store_txt_files_num', '5%', 0, 0, '', '', 50),
|
|
|
('sys_studio_agents_vector_store', 'actions', '', '25%', 0, 0, '', '', 60);
|
|
|
|
|
|
INSERT INTO `sys_grid_actions` (`object`, `type`, `name`, `title`, `icon`, `icon_only`, `confirm`, `active`, `order`) VALUES
|
|
|
('sys_studio_agents_vector_store', 'single', 'add_data', '_sys_uploader_simple_attach_one_more_file', 'plus', 1, 0, 1, 10),
|
|
|
-('sys_studio_agents_vector_store', 'single', 'files', '_adm_lmi_cpt_files', 'folder', 1, 0, 1, 20),
|
|
|
-('sys_studio_agents_vector_store', 'single', 'edit', '_Edit', 'pencil-alt', 1, 0, 1, 30),
|
|
|
-('sys_studio_agents_vector_store', 'single', 'delete', '_Delete', 'remove', 1, 1, 1, 40),
|
|
|
-('sys_studio_agents_vector_store', 'single', 'duplicate', '_Duplicate', 'copy', 1, 0, 1, 50);
|
|
|
+('sys_studio_agents_vector_store', 'single', 'edit', '_Edit', 'pencil-alt', 1, 0, 1, 20),
|
|
|
+('sys_studio_agents_vector_store', 'single', 'delete', '_Delete', 'remove', 1, 1, 1, 30),
|
|
|
+('sys_studio_agents_vector_store', 'single', 'duplicate', '_Duplicate', 'copy', 1, 0, 1, 40);
|
|
|
|
|
|
-- GRID: Agents Vector Store Data
|
|
|
INSERT INTO `sys_objects_grid` (`object`, `source_type`, `source`, `table`, `field_id`, `field_order`, `field_active`, `paginate_url`, `paginate_per_page`, `paginate_simple`, `paginate_get_start`, `paginate_get_per_page`, `filter_fields`, `filter_fields_translatable`, `filter_mode`, `sorting_fields`, `sorting_fields_translatable`, `visible_for_levels`, `responsive`, `show_total_count`, `override_class_name`, `override_class_file`) VALUES
|
|
|
@@ -7090,8 +7089,10 @@ CREATE TABLE IF NOT EXISTS `sys_agents_vector_store_data` (
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `sys_agents_vector_store` (
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
+ `embedding_provider_id` int(11) NOT NULL,
|
|
|
`type` varchar(128) NOT NULL,
|
|
|
`title` varchar(255) NOT NULL DEFAULT '',
|
|
|
+ `docs` text DEFAULT NULL,
|
|
|
`topk` tinyint(4) DEFAULT 4,
|
|
|
`params` text DEFAULT NULL,
|
|
|
`params_user` text DEFAULT NULL,
|