Skip to content

fix: prefix bare model names with Xenova/ in all defaults#1517

Open
sparkling wants to merge 2 commits intoruvnet:mainfrom
sparkling:fix/bare-model-names
Open

fix: prefix bare model names with Xenova/ in all defaults#1517
sparkling wants to merge 2 commits intoruvnet:mainfrom
sparkling:fix/bare-model-names

Conversation

@sparkling
Copy link
Copy Markdown

Issue

Fixes #1516

Summary

Bare model names (e.g. all-mpnet-base-v2) in init defaults resolve to non-existent HuggingFace repos, causing silent fallback to mock embeddings. Every init --full user gets fake embeddings.

  • init/types.ts: 3 defaults fixed (DEFAULT, CODEX, FULL)
  • commands/init.ts: 6 references fixed (wizard, CLI flags, help)
  • embeddings-tools.ts: 4 references fixed (MCP enum, default, handler)
  • hooks-tools.ts: 1 reference fixed (status model)

Test plan

  • init --full writes Xenova/all-mpnet-base-v2 to embeddings.json (not bare)
  • memory store + memory search produces real embeddings (not hash-fallback)
  • Wizard model selection shows prefixed names

Generated with claude-flow

Bare model names like 'all-mpnet-base-v2' resolve to non-existent
HuggingFace repos, causing @xenova/transformers to fail with 401.
EmbeddingService silently falls back to mock embeddings, and all
semantic search degrades to FNV-1a hash pseudo-embeddings.

Files changed:
- init/types.ts: DEFAULT, CODEX, FULL option defaults
- commands/init.ts: wizard choices, CLI flag defaults
- mcp-tools/embeddings-tools.ts: MCP tool enum + handler default
- mcp-tools/hooks-tools.ts: status report model name

Fixes ruvnet#1516

Co-Authored-By: claude-flow <ruv@ruv.net>
ControllerRegistry created AgentDB with only dbPath. AgentDB fell back
to its own default model (MiniLM 384-dim) instead of the configured
model from getEmbeddingConfig() (mpnet 768-dim).

Co-Authored-By: claude-flow <ruv@ruv.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: bare model names in init defaults cause silent fallback to mock embeddings

1 participant