Skip to content

Improvement: no provider declares embedding capability, so an operator can pick one that cannot embed #2991

Closed

Description

@Israeltheminer

Problem

Nothing in configs/platform/system/providers/*/provider.yml records whether a provider can serve embeddings. Settings → Data residency will therefore accept a provider that only routes chat completions, and the failure surfaces later — at index time, as a runtime error — rather than at the point of choosing.

The information exists, but only implicitly and only for some providers: an embedding-capable provider carries a model tagged embedding with curated embedding.dimensions in its static catalog (see configs/platform/system/models/openai/models.yml, .../openrouter/models.yml). pickEmbeddingRecommendations uses exactly that to build the one-click list, and it correctly offers nothing for a provider without such an entry.

But the recommendation list is a suggestion, not a constraint. The provider and model fields remain free, so an operator who types rather than picks gets no warning.

Compounding factor: live catalogs carry no width

lib/shared/providers/embedding_recommendations.ts:

The facts live in the shipped static catalogs — live listings publish no vector width.

So a provider whose catalog is fetched live contributes no recommendations even if it can embed, because dimensions is required and cannot be guessed. That is the right call — a wrong width poisons a corpus invisibly — but it means "offers no recommendation" conflates cannot embed with we don't know its vector widths, and the UI cannot tell an operator which.

Suggested

  • An explicit embedding: supported | unsupported | unknown on the provider connector, independent of whether its catalog happens to carry curated model facts.
  • Warn (or block) in the embedding form when the chosen provider is unsupported.
  • Distinguish the two empty states in the UI: "this provider cannot embed" versus "no curated widths — enter the model and dimensions yourself".

Related

Activity

  1. added
    priority: medium
    improvement
    service: platform
    on Aug 17, 2026
  2. Israeltheminer commented on Sep 4, 2026

    @Israeltheminer
    ContributorAuthor

    #3219 carries the schema and the two empty states, but I've pulled back what it claims.

    My first version marked Anthropic unsupported and the other nine unknown, based on my own reading of which vendors offer embeddings. That was inference dressed as data — the same mistake this issue is about, one layer down.

    What the repo actually establishes is narrower: openai and openrouter ship a curated dimensions: entry, so supported is evidenced. For the other ten the absence of an entry says only that this deployment has no width to offer, which is what unknown means. So nothing declares unsupported.

    That leaves the warn-or-block half of this issue open, and it needs per-vendor evidence rather than a judgement call: a citation to each vendor's own docs, in the change that sets the value. The schema note asks for exactly that.

  3. added
    agent-ready
    on Oct 29, 2026
  4. tale-code-bot commented on Oct 30, 2026

    @tale-code-bot
    Collaborator

    Closing as completed: what this issue asks for already ships on main (checked at 49ce42fdd3b20a452a2572554c587f4f89bdb4f8; release/0.6 is the same commit).

    • 9d1bcc7f53af0ba27f3d5c8265285f8eaa252dfe (feat(platform): let a provider declare whether it can embed #3219), "feat(platform): let a provider declare whether it can embed": embedding: supported | unsupported | unknown on the provider schema, declared in all 12 shipped provider.yml files.
    • 66a587028090b11d3940291b728a6949dbd0ee15 (feat(platform): refuse an embedding provider that cannot embed #3527), "feat(platform): refuse an embedding provider that cannot embed": the form's Cannot embed state, the separate "no curated width" state, and the server's EMBEDDING_PROVIDER_UNSUPPORTED refusal. Its pull request said Refs #2991 rather than Closes, which is why this issue stayed open.
    • 80d92293d444cbdbf358bdae0a2a5190279abb24, "fix(platform): close the fail-open embedding provider refusal".

    Each of these commits is an ancestor of main. The Coder ran the tests that cover them on board task TALE-21: the server tests (90 of 90) and the Data residency form tests (66 of 66) passed.

    Board task: TALE-21.

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

    agent-readyimprovementpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions