﻿# AnythingLLM Model Router selects providers by rules, not by workspace evidence

Understand AnythingLLM Model Router rules, fallback classification and sticky choices before assuming that a changed prompt immediately selects another provider.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-anythingllm-model-router-rules/
Language: en

## Specify the decision being automated

A workspace can route short translation requests to a multilingual model and longer analytical questions elsewhere. The purpose is to apply an explicit selection policy, not to discover a universally best model. Record which targets may receive the workspace's material and why each is eligible. A local application can still route a request to a remote provider when its rules say so.

## Distinguish the router from a model provider

The [router overview](https://docs.anythingllm.com/model-router/overview) describes a feature that appears in the provider picker but delegates execution to configured provider/model targets. The [LLM configuration](https://docs.anythingllm.com/setup/llm-configuration/overview) separately defines system, workspace, and agent models. Confirm that the tested workspace actually selects the intended router; editing unused rules will not change a request handled through another configuration.

## Choose calculated or classified conditions

Calculated rules inspect properties such as prompt contents or attached images without asking another model to classify the topic. Classified rules use a description evaluated by the fallback model. The fallback therefore has a dual role: it can answer unmatched requests and help decide routing. Account for that classification step when deciding what content may leave the current environment.

## Read matching and caching together

The [setup guide](https://docs.anythingllm.com/model-router/setup) describes rule priority as well as a more detailed evaluation flow: calculated rules are re-evaluated, classified decisions can be cached, and an earlier route can remain sticky when no new rule matches. A follow-up without the original keyword can therefore stay on the earlier model. Do not infer a fresh classification merely from a newly submitted message.

## Inspect the response badge

The interface reports the model and rule used above a response. Compare that observation with the expected route, especially after changing conditions or testing a new topic in an existing conversation. A fresh thread and a continuing thread exercise different cache situations. Keep a note of the configured cooldown rather than declaring inconsistent routing from a single follow-up.

## Keep document state outside the routing claim

A different answer model still needs appropriate evidence. Routing does not itself re-embed an updated document or restore a missing passage. The [tool-observation principle](/journal/learn-codex-tool-observation/) separates observed execution from inferred success, while [task contracts](/journal/learn-codex-task-contract/) can state the expected routing and evidence conditions together. Test both before accepting the workflow for real workspace questions.
