This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: complete the supabase adapter method
- Loading branch information
1 parent
8b3ed23
commit e431c79
Showing
2 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
supabase/migrations/20231030085814_create_embedding_table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
-- Creates the `embeddings` table to store embeddings for every issue | ||
-- Creates the `embeddings` table to store an embedding for every issue | ||
-- We've decided to use the `text-embedding-ada-002` model in the beginning which has 1536 output dimensions | ||
CREATE TABLE IF NOT EXISTS embeddings ( | ||
id serial PRIMARY KEY, | ||
org character varying(255) NOT NULL, | ||
repo character varying(255) NOT NULL, | ||
issue integer NOT NULL, | ||
embeddings vector(1536) NOT NULL, | ||
embedding vector(1536) NOT NULL, | ||
created_at timestamptz NOT NULL, | ||
updated_at timestamptz NOT NULL, | ||
); |