mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: correct gemini-embedding-001 dimension from 768 to 3072
- Fixed incorrect dimension configuration for gemini-embedding-001 model - Updated comment in gemini.ts to reflect correct dimension (3072) - This resolves Qdrant dimension mismatch errors when using Gemini embeddings Fixes #7348
This commit is contained in:
parent
44302b0812
commit
32fc3d6498
2 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ import { TelemetryService } from "@roo-code/telemetry"
|
|||
*
|
||||
* Supported models:
|
||||
* - text-embedding-004 (dimension: 768)
|
||||
* - gemini-embedding-001 (dimension: 768)
|
||||
* - gemini-embedding-001 (dimension: 3072)
|
||||
*/
|
||||
export class GeminiEmbedder implements IEmbedder {
|
||||
private readonly openAICompatibleEmbedder: OpenAICompatibleEmbedder
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ export const EMBEDDING_MODEL_PROFILES: EmbeddingModelProfiles = {
|
|||
},
|
||||
gemini: {
|
||||
"text-embedding-004": { dimension: 768 },
|
||||
"gemini-embedding-001": { dimension: 768, scoreThreshold: 0.4 },
|
||||
"gemini-embedding-001": { dimension: 3072, scoreThreshold: 0.4 },
|
||||
},
|
||||
mistral: {
|
||||
"codestral-embed-2505": { dimension: 1536, scoreThreshold: 0.4 },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue