-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Gemini text-embedding-004 model (#122)
- Add Gemini text-embedding-004 as a new embedding model option - Add rate limit error handling for embedding API calls - Update model names to include provider prefix for clarity
- Loading branch information
Showing
12 changed files
with
559 additions
and
31 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
10 changes: 10 additions & 0 deletions
10
drizzle/0007_create_vector_data_gemini_text_embedding_004.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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE IF NOT EXISTS "vector_data_gemini_text_embedding_004" ( | ||
"id" serial PRIMARY KEY NOT NULL, | ||
"path" text NOT NULL, | ||
"mtime" bigint NOT NULL, | ||
"content" text NOT NULL, | ||
"embedding" vector(768), | ||
"metadata" jsonb NOT NULL | ||
); | ||
--> statement-breakpoint | ||
CREATE INDEX IF NOT EXISTS "embeddingIndex_gemini_text_embedding_004" ON "vector_data_gemini_text_embedding_004" USING hnsw ("embedding" vector_cosine_ops); |
Oops, something went wrong.