Skip to content

Commit

Permalink
better SQL formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
choccccy committed Oct 4, 2023
1 parent bb14318 commit 0c06e1e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pylib/embedding_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
CREATE TABLE IF NOT EXISTS {table_name} (
id bigserial primary key,
embedding vector({embed_dimension}), -- embedding vector field size
content text NOT NULL, -- text content of the chunk
permission text, -- permission of the chunk
title text, -- title of file
page_numbers integer[], -- page number of the document that the chunk is found in
tags text[] -- tags associated with the chunk
);\
content text NOT NULL, -- text content of the chunk
permission text, -- permission of the chunk
title text, -- title of file
page_numbers integer[], -- page number of the document that the chunk is found in
tags text[] -- tags associated with the chunk
);\
'''

INSERT_DOC_TABLE = '''\
Expand All @@ -79,7 +79,7 @@
'{title}',
'{page_numbers}',
'{tags}'
);\
);\
'''

SEARCH_DOC_TABLE = '''\
Expand Down

0 comments on commit 0c06e1e

Please sign in to comment.