Skip to content

deploy: the canonical embedding model is rendered into backend.env but never ensured on the configured model server #19879

Open

Description

@mrveiss

Found in review of the merge train (PR #19859), member #19744.

backend.env.j2 renders AUTOBOT_EMBEDDING_MODEL as nomic-embed-text:latest on a fresh install, and again when read_deployed_embedding_model.yml replaces a deployed model that cannot embed (#19736). Nothing on the full deployment path ensures that model is present on the model server the backend is configured to use. The full deployment runs ai-stack, not the llm role that pulls models, and the separate AI-stack setup disables the model server by default. A host can therefore end up configured with an embedding model that it does not have, and every embedding call then fails.

The replacement path is no worse than before, because the replaced model could never embed. But it also does not reach a working state on such a host.

  • The deployment that renders AUTOBOT_EMBEDDING_MODEL ensures that the model is installed on the configured server (pull, or a check that fails loudly), for both a fresh install and a replacement.
  • If the server cannot be reached or the pull fails, the deployment reports this, and does not leave a silently broken embedding config.
  • A test pins that the deployment path which renders the variable also ensures the model is present.

Activity

  1. added
    bugSomething isn't working
    phase:M1.4Wizard and SLM: choose a mode, apply it, default models work
    on Oct 28, 2026
  2. mrveiss commented on Nov 1, 2026

    @mrveiss
    OwnerAuthor

    Status: #20385 adds the loud check on every render of backend.env.j2 (a role deploy fails naming a missing model; the updater warns). What it leaves for this issue: an unreachable server is silent there, and nothing pulls. This work follows #20385's landing because it edits the same resolve_models.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdeploymentphase:M1.4Wizard and SLM: choose a mode, apply it, default models work

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions