You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pick the next embedding tier for Brain Mode (between today's hashing 256d ≈15-20 CoIR and the planned 154 MB ONNX jina-v2-base-code ≈57 in #500), and harvest optimization ideas from peer tools. CPU-only is a hard requirement (cora is BYOK/local-first).
Candidate: EmbeddingGemma-300m (Q4, ONNX)
~300M params, runs in-browser/on-device, QAT-quantized for edge
Code retrieval strength: arXiv 2509.20354 reports large gains on CosQA and AppsRetrieval vs same-size models
License: Gemma terms (usable, not Apache) — flag vs our Apache-2.0 stance
nomic-embed-text v1.5 (137M, Apache-2.0) — general text, weaker on code
codet5p-110m (BSD-3) — code-specific, seq 512, no ONNX
Vendor upgrade path: nomic-embed-code 7B / jina-code-0.5b — too big or NC-licensed
What peers actually use
codebase-memory-mcp (40.9k★): bundles nomic-embed-code 768d int8 into the binary; local CPU inference; hybrid FTS5-BM25 + vectors + graph + 11-signal ranking; MinHash/LSH clone detection; Louvain communities; team-shared zstd graph artifact; Linux kernel 28M LOC in ~3 min
graphify: knowledge-graph MCP; embeddings roadmap = OpenAI API or nomic-embed-text via Ollama (local)
Continue.dev: recommends nomic-embed-text via Ollama; voyage-code-3 if cloud OK
aider / code-review-graph: NO embeddings — pure tree-sitter repo/structural maps
⇒ Industry local default is Nomic-family on CPU; nobody ships a small code-specific transformer locally — a gap EmbeddingGemma-300m or jina-v2-code would fill for cora.
Goal
Pick the next embedding tier for Brain Mode (between today's hashing 256d ≈15-20 CoIR and the planned 154 MB ONNX jina-v2-base-code ≈57 in #500), and harvest optimization ideas from peer tools. CPU-only is a hard requirement (cora is BYOK/local-first).
Candidate: EmbeddingGemma-300m (Q4, ONNX)
Alternatives
What peers actually use
nomic-embed-textvia Ollama (local)nomic-embed-textvia Ollama; voyage-code-3 if cloud OK⇒ Industry local default is Nomic-family on CPU; nobody ships a small code-specific transformer locally — a gap EmbeddingGemma-300m or jina-v2-code would fill for cora.
Adoptable optimizations for cora
coraextragraph.db.zstpattern) for onboardingcora archcora index --watch; consider auto-trigger)Recommendation
Sources: arXiv 2509.20354 · codebase-memory-mcp README · graphify#1 · tabby docs · ollama nomic-embed-text