Commit 06462e13 by 陈正乐

知识库初始化,添加建表

parent 731234e9
...@@ -80,3 +80,24 @@ INSERT INTO public.chat (chat_id, user_id, info, create_time, deleted) VALUES (' ...@@ -80,3 +80,24 @@ 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 ('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 ('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); 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;
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