Closed
Labels
enhancementNew feature or requestpriority:mediumFix soonscope:coreCore engine workv0.1.0Feature bump
Description
Feature: Pluggable Embedding Models
Problem
Uteke is locked to EmbeddingGemma Q4 (ONNX, 768d). Users with different needs (code embeddings, multilingual, smaller/faster models) cannot swap the embedding model.
Proposed Solution
Make embedding model pluggable — users can choose or bring their own model.
Supported Backends
| Backend | Model Example | Use Case |
|---|---|---|
| ONNX (current) | EmbeddingGemma Q4 | Default, CPU-only |
| ONNX | Jina Code v2 | Code-aware embeddings |
| ONNX | multilingual-e5 | Multilingual content |
| OpenAI API | text-embedding-3-small | Cloud, zero local compute |
| Ollama | nomic-embed-text | Local GPU, popular models |
Config
[embedding]
backend = "onnx" # "onnx" | "openai" | "ollama"
model = "embeddinggemma-q4" # Model name/identifier
max_seq_length = 256 # Max tokens per chunk
dims = 768 # Embedding dimensions
# For API backends:
[embedding.api]
base_url = "https://api.openai.com/v1"
api_key_env = "OPENAI_API_KEY" # Read from env varCLI Usage
uteke config set embedding.model jina-code-v2
uteke config set embedding.backend onnx
uteke recall "deploy pattern" # Uses new model automatically
# Re-index if model changed (dimensions might differ):
uteke reindex --forceWhy v0.1.0
- Required before code-aware embedding (🧠 Feature: Code-aware embedding with AST chunking #245) — code needs different models
- Required before MCP (🔌 Feature: MCP server for AI tool integration #248) — MCP consumers may want specific models
- Foundation for "bring your own embedding" positioning
Migration Safety
- Changing model with different dimensions = need re-index
uteke reindexshould detect dimension mismatch and warn- Old embeddings preserved until reindex confirmed
Acceptance Criteria
-
uteke.tomlsupportsembedding.backendandembedding.model - ONNX backend (default, current behavior)
- OpenAI API backend (text-embedding-3-small)
-
uteke reindexrebuilds embeddings with new model - Dimension mismatch detection + warning
- Backward compatible: default config = current behavior
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestpriority:mediumFix soonscope:coreCore engine workv0.1.0Feature bump
Activity
feat: v0.1.0 remaining — tag junction, room document, pluggable embed…
ajianaz commentedon Jun 13, 2026
Implemented in PR #314, merged to develop.
sync: main → v0.1.0 (#323)
feat: v0.1.0 remaining — tag junction, room document, pluggable embed…