AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Rasa Configuring Model Groups

skill-rasahq-rasa-agent-skills-rasa-configuring-model-groups · by RasaHQ

>

No reviews yet
0 installs
24 views
0.0% view→install

Install

$ agentstack add skill-rasahq-rasa-agent-skills-rasa-configuring-model-groups

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-rasahq-rasa-agent-skills-rasa-configuring-model-groups)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
3mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Rasa Configuring Model Groups? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Configuring Model Groups

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.

Workflow

  1. Open endpoints.yml (create if it doesn't exist).
  2. Add a model group for the LLM used by the pipeline's command generator.
  3. Add a model group for embeddings if flow retrieval is enabled.
  4. If multiple deployments are needed, add them to the same group and configure a

routing strategy (see "Multi-deployment routing").

  1. Reference the group id from config.yml pipeline components

(see rasa-configuring-assistant skill).

Providers

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.

Configuring single provider

The simplest setup — one deployment per group:

model_groups:
  - id: my_llm
    models:
      - provider: openai                  # or azure, self-hosted, etc.
        model: 

  - id: my_embeddings
    models:
      - provider: openai                  # or azure, huggingface_local, etc.
        model: 

To switch providers, change provider and add any required provider-specific settings:

model_groups:
  - id: my_llm
    models:
      - provider: azure
        deployment: 
        api_base: https://my-azure-instance/
        api_version: "2024-02-15-preview"
        api_key: ${AZURE_API_KEY}

Configuring multi-deployment routing

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

Routing strategies

| 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) |

Router customization

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.

Redis for cost/usage routing

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"

Caching

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

Embeddings routing

The same routing configuration (strategies, Redis, caching) works for embedding model groups — just use an embeddings provider in the models list.

Self-hosted models

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"

LiteLLM proxy

Route through a LiteLLM proxy server using provider: litellm_proxy:

model_groups:
  - id: litellm_proxy_llm
    models:
      - provider: litellm_proxy
        model: 
        api_base: "http://localhost:4000"
      - provider: litellm_proxy
        model: 
        api_base: "http://localhost:4000"
    router:
      routing_strategy: least-busy

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.