Commit ce1888e2 by 陈正乐

知识库初始化

parent 06462e13
\connect lae_chat
DROP TABLE IF EXISTS "chat";
CREATE TABLE chat (
chat_id varchar(1000) PRIMARY KEY,
......@@ -79,25 +79,3 @@ INSERT INTO public.chat (chat_id, user_id, info, create_time, deleted) VALUES ('
INSERT INTO public.chat (chat_id, user_id, info, create_time, deleted) VALUES ('2', '1', '这是chat_id为2的问答info', '2024-05-27 01:12:05.025912', 0);
INSERT INTO public.chat (chat_id, user_id, info, create_time, deleted) VALUES ('3', '2', '这是chat_id为3的问答info', '2024-05-27 01:12:05.027267', 0);
INSERT INTO public.chat (chat_id, user_id, info, create_time, deleted) VALUES ('4', '2', '这是chat_id为4的问答info', '2024-05-27 01:12:05.028840', 0);
create table txt_doc
(
hash varchar(40) not null
primary key,
text text not null,
matadate text
);
alter table txt_doc
owner to postgres;
create table vec_txt
(
vector_id varchar(36) not null
primary key,
text text,
paragraph_id varchar(40) not null
);
alter table vec_txt
owner to postgres;
\connect lae
create table txt_doc
(
hash varchar(40) not null
primary key,
text text not null,
matadate text
);
alter table txt_doc
owner to postgres;
create table vec_txt
(
vector_id varchar(36) not null
primary key,
text text,
paragraph_id varchar(40) not null
);
alter table vec_txt
owner to postgres;
INSERT INTO public.vec_txt (vector_id, text, paragraph_id) VALUES ('4a87264c-15db-421d-a5e3-e18cfe2af4de', '华西村成立中国第一村成立通用航空公司 试水低空航空旅游', 'ckHmvhLxRocQMTcV38Wrv+3XA/Y=');
INSERT INTO public.vec_txt (vector_id, text, paragraph_id) VALUES ('d73a0373-bf44-41de-8c67-2a5d132231de', '产业案例 - 中国低空产业经济研究院', 'ckHmvhLxRocQMTcV38Wrv+3XA/Y=');
INSERT INTO public.vec_txt (vector_id, text, paragraph_id) VALUES ('6b1352a7-1886-41bb-9566-22fbbc58450c', '试水低空航空旅游', 'ckHmvhLxRocQMTcV38Wrv+3XA/Y=');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment