List embedding models compatible with the KB dimension policy
List embedding models the user can pick at KB-creation time.
Walks the caller’s credentials, looks up each provider’s
embedding model class, gathers its model cards, and projects
each card through the manager’s :class:DimensionPolicy.
Incompatible cards are dropped; matryoshka cards under a
FIXED / LOCKED_BY_EXISTING policy are narrowed to the
locked dimension. Providers that end up with zero compatible
models are omitted from the response entirely.
Args:
user_id (str):
Injected authenticated user ID.
storage (StorageBase):
Injected storage backend used to enumerate credentials.
manager (KnowledgeBaseManagerBase):
Injected knowledge base manager.
Returns:
ListKbEmbeddingModelsResponse:
One entry per credential with at least one compatible
embedding model, plus the policy used for filtering.
Headers
Caller's user ID. Temporary header-based identity; will be replaced by JWT auth.
Response
Successful Response
Response body listing KB-compatible embedding models.
The list is pre-filtered server-side against the manager's dimension policy. The policy itself is also returned so the front-end can render an explanatory banner and lock the dimension selector when applicable.