Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
LAE
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
文靖昊
LAE
Commits
ce1888e2
Commit
ce1888e2
authored
Jun 12, 2024
by
陈正乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
知识库初始化
parent
06462e13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
23 deletions
+25
-23
create_table.sql
init_db/create_table.sql
+1
-23
insert_data.sql
init_db/insert_data.sql
+24
-0
No files found.
init_db/create_table.sql
View file @
ce1888e2
\
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
;
init_db/insert_data.sql
View file @
ce1888e2
\
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='
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment