Skip to content

Commit befcd2b

Browse files
committed
fix: add manutic/nomic-embed-code model for Ollama compatibility
- Add manutic/nomic-embed-code to Ollama and OpenAI Compatible embedding model profiles - Provides same configuration as nomic-embed-code (3584 dimensions, 0.15 score threshold, code search query prefix) - Resolves issue where users cannot use nomic-embed-code with Ollama since only community version exists - Enables flexible embedding model selection for code indexing with Ollama Fixes #5687
1 parent a163053 commit befcd2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/shared/embeddingModels.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export const EMBEDDING_MODEL_PROFILES: EmbeddingModelProfiles = {
3131
scoreThreshold: 0.15,
3232
queryPrefix: "Represent this query for searching relevant code: ",
3333
},
34+
"manutic/nomic-embed-code": {
35+
dimension: 3584,
36+
scoreThreshold: 0.15,
37+
queryPrefix: "Represent this query for searching relevant code: ",
38+
},
3439
"mxbai-embed-large": { dimension: 1024, scoreThreshold: 0.4 },
3540
"all-minilm": { dimension: 384, scoreThreshold: 0.4 },
3641
// Add default Ollama model if applicable, e.g.:

0 commit comments

Comments
 (0)