Skip to content

fix(embed): use config.models.embed from index.yml when set#625

Open
yaanfpv wants to merge 2 commits intotobi:mainfrom
yaanfpv:fix/embed-ignore-config-model
Open

fix(embed): use config.models.embed from index.yml when set#625
yaanfpv wants to merge 2 commits intotobi:mainfrom
yaanfpv:fix/embed-ignore-config-model

Conversation

@yaanfpv
Copy link
Copy Markdown

@yaanfpv yaanfpv commented May 4, 2026

Problem

qmd embed hardcodes DEFAULT_EMBED_MODEL_URI instead of reading
the configured embed model from index.yml. This means users who
configure a custom embedding model via models.embed in index.yml
see it silently ignored — embeddinggemma is always used regardless.

Fix

Load config in the embed case and prefer config.models.embed
over the default when set, falling back gracefully if config
can't be loaded.

Testing

Configured a local BGE-M3 GGUF in index.yml:

models:
  embed: "/path/to/bge-m3-FP16.gguf"

Before fix: qmd embed used embeddinggemma regardless.
After fix: qmd embed correctly uses the configured model.

Also fixes

qmd status was hardcoding DEFAULT_EMBED_MODEL_URI in the Models
section regardless of what was configured in index.yml. Status now
shows the actual active model from config, falling back to defaults
when not set.

yaanfpv added 2 commits May 4, 2026 20:16
qmd embed was hardcoding DEFAULT_EMBED_MODEL_URI instead of reading
the embed model from index.yml config. This meant custom embedding
models configured via models.embed in index.yml were silently ignored
during qmd embed runs.

Fix: load config in the embed case and prefer config.models.embed
over the default when set.

Fixes: users configuring custom embedding models via index.yml seeing
embeddinggemma used instead of their configured model.
qmd status was always displaying DEFAULT_EMBED_MODEL_URI regardless
of what model was configured in index.yml. This was misleading for
users who had configured custom models.

Fix: read config in showStatus() and display the active configured
models, falling back to defaults when not set.
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.

1 participant