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
This commit is contained in:
Roo Code 2025-07-14 07:30:06 +00:00
parent a163053430
commit befcd2b5ef

View file

@ -31,6 +31,11 @@ export const EMBEDDING_MODEL_PROFILES: EmbeddingModelProfiles = {
scoreThreshold: 0.15,
queryPrefix: "Represent this query for searching relevant code: ",
},
"manutic/nomic-embed-code": {
dimension: 3584,
scoreThreshold: 0.15,
queryPrefix: "Represent this query for searching relevant code: ",
},
"mxbai-embed-large": { dimension: 1024, scoreThreshold: 0.4 },
"all-minilm": { dimension: 384, scoreThreshold: 0.4 },
// Add default Ollama model if applicable, e.g.: