Repository navigation
feat(platform): pick the embedding model from the provider's catalog - #3435
Merged
Merged
Conversation
Settings > Data residency took the embedding model as a free-text tag. The Model row now reads the organization's provider catalogs (the same listing the AI-providers and governance pages use) and takes one of four shapes for the chosen provider: - the catalog lists embedding models: a closed select over them; a pick fills the vector width the catalog states. An organization-defined provider keeps an "Other model…" escape into the free tag field, since a bare /models listing tags nothing as an embedding model. - a shipped catalog lists none: the form says so and refuses the provider (the shared Save stays off) instead of accepting a tag that fails later, at index time. - a shipped catalog could not be loaded: refused, with the remedy named. - no listing can tell (an organization-defined provider without an embedding entry, Azure's per-credential deployments): the free tag field, with a hint that says why. The choice between a catalog pick and a typed tag rides the form values (modelSource), so Discard and remote updates stay coherent; the baseline waits for the catalogs once, so a stored tag is classified exactly once. Select gains errorMessage, rendered under the control like Input's, because its description slot sits under the label — in a settings row that is the other column, where the provider select's error used to land. The form's three selects use it. Locales en/de/fr, the self-hosted data-residency docs, the manual suite (DATA-F2b/F2c) and the design-system input guide follow.
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Settings › Data residency › Embedding model took the model as a free-text tag. The Model row now reads the organization's provider catalogs (the listing the AI-providers and governance pages already use) and lets the catalog decide:
/modelslisting tags nothing as an embedding model, so the listing may be incompletecatalog: nonedeployments, a provider the listing does not know)The pick-vs-typed choice rides the form values (
modelSource), so Discard and remote updates stay coherent; the form's baseline waits for the catalogs once, so a stored tag is classified exactly once (a stored tag a shipped catalog does not list shows as its own entry, so nothing configured is hidden).@tale/uiSelectgainserrorMessage, rendered under the control the wayInputrenders its own: thedescriptionslot sits under the label, which in a settings row is the other column — where this form's provider/credential errors used to land. The form's three selects use it.Part of #2991 (the form half of "distinguish the two empty states"). The
unsupportedprovider declaration stays unused: the refusal here is a statement about the shipped catalog, not about the vendor.Deliberate consequences
models.ymlentries (width included), not a typed tag.text-embedding-3-smallonly (the one curated entry; the bare live listing tagstext-embedding-3-largeas chat). Curate it if wanted.Checklist
bun run check— format:check ✓; typecheck ui + platform ✓; lint ui + platform (whole) ✓;@tale/uitests ✓ (incl. the newSelect.errorMessagecase);@tale/ui-docs74 ✓; platformtest:ui✓ (settings 102 files / 875 incl. the 10 embedding cases; full suite green); platform i18n messages test 24 ✓ (key parity 47/47/47); docs parity ✓;lint:manual✓ +check-guideon the suite ✓.bun run lint:sast— the pre-commit opengrep pass ran on the staged TS/TSX.messages/{en,de,fr}.yml(10 new keys, nbsp typography in fr); node-CHoverride applies.docs/{en,de,fr}/self-hosted/configuration/data-residency.md(embedding paragraph);services/ui-docs/content/components/input.md(Select takeserrorMessage).README*— N/A (no env var, flag or command changed).Test plan
Manual:
DATA-F2b(updated) andDATA-F2c(new) inservices/platform/tests/manual/suites/data-residency.md.Observed on the dev stack (org with a Z.ai credential and
embedding-3/ 1536 stored):embedding-3, options[embedding-3], hint "Embedding models the provider's catalog lists.";deepseekempties the model, the row reads "No embedding model" with the explanation on the left, nothing appears under the provider select, and the header Save is disabled;