-
Notifications
You must be signed in to change notification settings - Fork 150
Expand file tree
/
Copy path01.sql
More file actions
23 lines (22 loc) · 1.1 KB
/
01.sql
File metadata and controls
23 lines (22 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CREATE DATABASE IF NOT EXISTS llphant;
GRANT ALL ON *.* TO 'root'@'%';
CREATE TABLE IF NOT EXISTS test_place (
id SERIAL PRIMARY KEY,
content text,
type text,
sourcetype text,
sourcename text,
embedding vector(3072) not null,
chunknumber int,
VECTOR INDEX (embedding)
);
CREATE TABLE IF NOT EXISTS test_doc (
id SERIAL PRIMARY KEY,
content text,
type text,
sourcetype text,
sourcename text,
embedding vector(1024) not null,
chunknumber int,
VECTOR INDEX (embedding)
);