-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinit.sql
More file actions
64 lines (60 loc) · 1.84 KB
/
Copy pathinit.sql
File metadata and controls
64 lines (60 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
CREATE EXTENSION IF NOT EXISTS vector;
CREATE TABLE IF NOT EXISTS cover_letter_chunks (
id TEXT PRIMARY KEY,
source TEXT,
doc_type TEXT,
category TEXT,
sub_section TEXT,
keywords_str TEXT,
text TEXT,
achievements JSONB,
keywords JSONB,
sub_categories JSONB,
key_points JSONB,
context TEXT,
char_count INT,
embedding vector(1024)
);
CREATE TABLE IF NOT EXISTS portfolio_chunks (
id TEXT PRIMARY KEY,
source TEXT,
doc_type TEXT,
job TEXT,
career TEXT,
company_name TEXT,
company_type TEXT,
company_domain TEXT,
section TEXT,
sub_section TEXT,
project TEXT,
period TEXT,
role TEXT,
team TEXT,
tech_stack JSONB,
contributions JSONB,
achievements JSONB,
keywords JSONB,
text TEXT,
context TEXT,
text_with_context TEXT,
char_count INT,
content_type TEXT,
fig_id TEXT,
image_path TEXT,
embedding vector(1024)
);
CREATE TABLE IF NOT EXISTS resume_chunks (
id TEXT PRIMARY KEY,
source TEXT,
doc_type TEXT,
section TEXT,
sub_section TEXT,
facts JSONB,
skills JSONB,
period TEXT,
char_count INT,
embedding vector(1024)
);
CREATE INDEX IF NOT EXISTS idx_cl_embedding ON cover_letter_chunks USING hnsw (embedding vector_cosine_ops);
CREATE INDEX IF NOT EXISTS idx_pf_embedding ON portfolio_chunks USING hnsw (embedding vector_cosine_ops);
CREATE INDEX IF NOT EXISTS idx_res_embedding ON resume_chunks USING hnsw (embedding vector_cosine_ops);