You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(kb): an options endpoint listing the embedding-capable models available now #19378
Part of #19373. Blocked by the resolver child (the response marks the active model).
An endpoint returns the embedding models the user can switch to right now:
the configured providers' models (model_manager_service.get_available_models, Ollama /api/tags), filtered by the canonical is_embedding_model_id;
the active model marked as active;
each option with its vector dimension where known.
GET /api/llm/embedding/models (llm.py:270, which uses its own EMBEDDING_MODEL_PATTERNS and a hard-coded fallback list) and GET /api/embeddings/models (settings.json lists) are consolidated into it, not kept beside it.
Acceptance criteria
Chat models (e.g. phi3:mini) never appear (test).
The active model is marked.
The two older listing endpoints are consolidated (redirected or removed, stated in the PR).
Follow-up recorded from the PR now opening: LLMEmbeddingModelsResponse (autobot-backend/api/schemas_agent.py) has no references once GET /api/llm/embedding/models redirects. schemas_agent.py is in open #19374, so per the one-PR-per-file rule I'll remove the class once #19374 lands. Also, dimension is null in the options for now: nothing measures a model's width before it embeds. #19379's switch flow embeds once and can record it.
Closing: delivered by #19509, which landed in train 85j (merge 8c511bf). The PR's Closes didn't fire because it merged inside a train. All three ACs are ticked, with evidence on origin/main:
Chat models never appear:autobot-backend/services/embedding_options.py:43 filters with the canonical is_embedding_model_id. Test: services/embedding_options_test.py:24 (phi3:mini, llama3.2, mistral and a reranker are excluded).
The active model is marked:embedding_options.py:41_same_model, which treats an untagged name as :latest. Test: :31. The active model is listed even when no provider reports it.
Activity
mrveiss commentedon Oct 24, 2026
Follow-up recorded from the PR now opening:
LLMEmbeddingModelsResponse(autobot-backend/api/schemas_agent.py) has no references onceGET /api/llm/embedding/modelsredirects.schemas_agent.pyis in open #19374, so per the one-PR-per-file rule I'll remove the class once #19374 lands. Also,dimensionisnullin the options for now: nothing measures a model's width before it embeds. #19379's switch flow embeds once and can record it.refactor(llm): drop LLMEmbeddingModelsResponse, unreferenced since th…
feat(kb): one embedding-model options endpoint -- embedding models on…
refactor(llm): drop LLMEmbeddingModelsResponse, unreferenced since th…
mrveiss commentedon Oct 26, 2026
Closing: delivered by #19509, which landed in train 85j (merge 8c511bf). The PR's Closes didn't fire because it merged inside a train. All three ACs are ticked, with evidence on origin/main:
autobot-backend/services/embedding_options.py:43filters with the canonicalis_embedding_model_id. Test:services/embedding_options_test.py:24(phi3:mini,llama3.2,mistraland a reranker are excluded).embedding_options.py:41_same_model, which treats an untagged name as:latest. Test::31. The active model is listed even when no provider reports it.api/llm.py:273answers 308 to/api/embeddings/models, andGET /api/embeddings/modelsserves the options. Test::74. Stated in feat(kb): one embedding-model options endpoint -- embedding models only, the active one marked; older listings consolidated (#19378) #19509's body.dimensionisnulluntil a model embeds; feat(kb): switch the embedding model -- background rebuild into a new collection, cutover only on a complete zero-failure build (#19379) #19641 (the switch) learns it.github-actions commentedon Oct 28, 2026
Landed in train train-2026-10-28-86b (#19880, merge
0b473f2ed5) via #19641