-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support assistant attachment handling in API
- refactor database schema - support assistant attachment - support assistant embedding - start working on RAG
- Loading branch information
Showing
64 changed files
with
18,593 additions
and
2,510 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS users; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE IF NOT EXISTS users ( | ||
id SERIAL PRIMARY KEY, | ||
uuid UUID UNIQUE NOT NULL DEFAULT gen_random_uuid(), | ||
username VARCHAR(255), | ||
password_hash TEXT, | ||
email VARCHAR(255) UNIQUE, | ||
github VARCHAR(255) UNIQUE, | ||
google VARCHAR(255) UNIQUE, | ||
telegram VARCHAR(255) UNIQUE, | ||
activate_assistant_id UUID, | ||
activate_thread_id UUID, | ||
status VARCHAR(255) NOT NULL DEFAULT 'pending', | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DROP TABLE assistant_embedddings; | ||
DROP TABLE assistant_attachments; | ||
DROP TABLE assistant_messages; | ||
DROP TABLE assistant_threads; | ||
DROP TABLE assistants; | ||
DROP EXTENSION IF EXISTS vector; |
Oops, something went wrong.