/rasa-agent-skills:rasa-configuring-model-groupsfrom rasa-agent-skills
Configures model_groups in endpoints.yml for LLM and embedding providers. Covers single and multi-deployment setups, routing strategies, failover, self-hosted models, and caching.
Ships in rasa-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Model groups are defined in endpoints.yml under the model_groups key. Pipeline
components, the rephraser, and other features reference groups by their id. Each
group contains one or more model deployments and an optional router for
multi-deployment routing.
endpoints.yml (create if it doesn't exist).id from config.yml pipeline components
(see rasa-configuring-assistant skill).Rasa provides dedicated client wrappers only for certain providers. The supported sets differ for LLM and embeddings.
LLM (Rasa wrappers):
openai,azure,self-hosted,rasa.Embeddings (Rasa wrappers):
openai,azure,huggingface_local.For any other provider (e.g. Anthropic, Cohere, Google), use the provider keys and options from LiteLLM's provider list, since Rasa's generic clients are built on LiteLLM.
The simplest setup — one deployment per group:
model_groups:
- id: my_llm
models:
- provider: openai # or azure, self-hosted, etc.
model: <your-llm-model>
- id: my_embeddings
models:
- provider: openai # or azure, huggingface_local, etc.
model: <your-embedding-model>
To switch providers, change provider and add any required provider-specific settings:
model_groups:
- id: my_llm
models:
- provider: azure
deployment: <your-deployment-name>
api_base: https://my-azure-instance/
api_version: "2024-02-15-preview"
api_key: ${AZURE_API_KEY}
Place multiple deployments in the same group for load balancing, failover, or latency
optimization. Add a router block to control distribution.
Keep deployments in a group on the same underlying model — mixing fundamentally different models (e.g. a small model vs a large model) leads to unpredictable behavior. Router settings are per-group and independent — each group can use a different strategy.
model_groups:
- id: azure_llm
models:
- provider: azure
deployment: my-deployment-france
api_base: https://azure-france/
api_version: "2024-02-15-preview"
api_key: ${AZURE_KEY_FRANCE}
- provider: azure
deployment: my-deployment-canada
api_base: https://azure-canada/
api_version: "2024-02-15-preview"
api_key: ${AZURE_KEY_CANADA}
router:
routing_strategy: least-busy
| Strategy | Description |
|---|---|
simple-shuffle | Distributes based on RPM (requests per minute) or weight |
least-busy | Routes to deployment with fewest ongoing requests |
latency-based-routing | Routes to lowest-latency deployment |
cost-based-routing | Routes to lowest-cost deployment (requires Redis) |
usage-based-routing | Routes to lowest-usage deployment (requires Redis) |
Fine-tune failover behavior with these optional parameters:
router:
routing_strategy: least-busy
cooldown_time: 10 # seconds before retrying a failed deployment
allowed_fails: 2 # failures before marking deployment unavailable
num_retries: 3 # retries per failed request
Refer to the LiteLLM's routing configuration documentation for more information on the configuration parameters.
Cost- and usage-based strategies track token usage over time and require a Redis backend:
router:
routing_strategy: cost-based-routing
redis_host: localhost
redis_port: 6379
redis_password: ${REDIS_PASSWORD}
Or via URL:
router:
routing_strategy: usage-based-routing
redis_url: "redis://:${REDIS_PASSWORD}@host:6379"
Enable response caching to reduce load and cost. For production, back it with Redis (in-memory caching does not persist across restarts):
router:
routing_strategy: simple-shuffle
cache_responses: true
The same routing configuration (strategies, Redis, caching) works for embedding model
groups — just use an embeddings provider in the models list.
Use provider: self-hosted for vLLM and Llama.cpp, or provider: ollama for Ollama.
Multiple instances can be routed just like cloud deployments.
When routing is enabled for self-hosted models, use_chat_completions_endpoint must be
set at the router level, not on individual models.
# vLLM
model_groups:
- id: vllm_llm
models:
- provider: self-hosted
model: meta-llama/Meta-Llama-3-8B
api_base: "http://localhost:8000/v1"
- provider: self-hosted
model: meta-llama/Meta-Llama-3-8B
api_base: "http://localhost:8001/v1"
router:
routing_strategy: least-busy
use_chat_completions_endpoint: false # router level, not model level
# Ollama
model_groups:
- id: ollama_llm
models:
- provider: ollama
model: llama3.1
api_base: "http://localhost:11434"
Route through a LiteLLM proxy server using provider: litellm_proxy:
model_groups:
- id: litellm_proxy_llm
models:
- provider: litellm_proxy
model: <your-model-instance-1>
api_base: "http://localhost:4000"
- provider: litellm_proxy
model: <your-model-instance-2>
api_base: "http://localhost:4000"
router:
routing_strategy: least-busy
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub rasahq/rasa-agent-skills --plugin rasa-agent-skills18 skills in this plugin
/rasa-building-flowsBuilds conversation flows for Rasa CALM assistants using YAML. Use when creating or editing flows, designing flow architecture, adding branching logic, writing flow and collect step descriptions, or connecting flows with call and link steps.
/rasa-building-skillsBuilds skills (capabilities) for a Rasa CALM assistant. Use when the user asks to create, add, or build a skill, capability, or feature for their Rasa assistant.
/rasa-calling-mcp-tools-from-flowsCalls MCP tools directly from Rasa flow steps. Use when invoking an MCP tool via a call step, mapping slot values to tool parameters, or extracting tool results into slots. This replaces custom action code for simple API integrations.
/rasa-configuring-assistantConfigures config.yml and endpoints.yml for Rasa CALM assistants. Covers pipeline (command generators, flow retrieval), policies (FlowPolicy), action endpoint, and language settings. Use when setting up a new project or modifying pipeline components.
/rasa-configuring-mcp-serverConfigures MCP (Model Context Protocol) servers in a Rasa CALM assistant. Use when defining MCP servers in endpoints.yml, setting up authentication (API key, OAuth 2.0, pre-issued token), or connecting to multiple external services.
/rasa-integrating-asrIntegrates a custom automatic speech recognition (ASR/STT) provider with Rasa voice channels from provider documentation. Use when implementing an ASREngine, mapping streaming transcripts and turn detection to Rasa events, or configuring custom ASR credentials.