10.4 Intelligent Prompt Routing & Application Eligibility
Key Takeaways
- Configured routers use exactly two supported same-family models, a fallback, and quality-difference criteria.
- Prompt routing does not automatically incorporate private application metrics or policy constraints.
- Enforce tenant, modality, residency, and tool eligibility before a managed routing decision.
10.4 Intelligent Prompt Routing & Application Eligibility
Intelligent prompt routing
An Amazon Bedrock prompt router exposes a single inference target and predicts which configured model should handle an incoming prompt. Current documentation describes default and configured routers, a fallback model, and routing criteria based on predicted response-quality difference. Configured routers select exactly two supported models within the same model family.
The router can reduce cost when a lower-cost model can answer many prompts while the stronger model handles prompts whose predicted quality difference warrants escalation. The response identifies the selected model, enabling cost and quality analysis. It does not use the application's private acceptance metrics automatically, and AWS notes limitations such as language and use-case sensitivity.
Use a prompt router only after evaluation. Build a dataset containing easy, hard, domain-specific, unsafe, tool-using, and long-context requests. Compare the router with always-small and always-large baselines. Measure task success, safety, latency, and cost. Tune the fallback and quality-difference criterion, then canary the router target like any other model change.
When to route in application code
Application routing remains appropriate when the rule depends on information the managed router does not know: tenant entitlement, data residency, modality, required tool, legal risk, or a model feature. A deterministic image-versus-text branch should not be delegated to a quality predictor. Likewise, a request that must remain in one Region needs a policy check before model selection.
Static rules can be combined with a router: first enforce authorization, modality, and residency, then use a router among eligible models. Keep a circuit breaker and fallback plan for router or model errors. Do not retry a failed prompt blindly against a less capable model if the result could violate the business contract.
Common exam distinctions
- Choose batch inference when latency is not interactive and the workload is large and file-oriented.
- Choose intelligent routing when two eligible models in a supported family offer a quality-versus-cost tradeoff per prompt.
- Choose explicit application routing when policy, modality, tools, or custom measurements determine eligibility.
- Choose Provisioned Throughput when measured sustained demand and supported model economics justify reserved model units.
- Choose cross-Region inference when supported on-demand traffic may use the profile's listed Regions.
The strongest design may combine them: a router serves interactive requests, a batch job processes offline backlogs, and an evaluation pipeline compares selected-model outcomes over time. Keep their IAM roles, metrics, budgets, and failure handling separately observable.
Router evaluation scenario
Build a dataset with routine FAQs, extraction, long-context analysis, coding, ambiguous questions, unsafe requests, and domain-specific edge cases. Compare three strategies: always use the lower-cost model, always use the fallback model, and use the router. Record which model was selected, response quality, policy compliance, latency, and cost for every slice.
Tune the response-quality-difference criterion only on a development set, then evaluate on a holdout. If the router sends specialized domain prompts to the cheaper model and quality falls, application-side classification or a separate router may be necessary. Current documentation notes that managed routing cannot adapt automatically to private application performance data.
The response's selected-model information should feed dashboards and budgets. Alert on a sudden routing-distribution shift because it can indicate traffic drift, configuration change, or new model behavior. Reevaluate when router models change or AWS adds a new supported candidate.
Keep a fallback for router-target failure, but enforce eligibility again. A global fallback or cross-Region model may be disallowed for one tenant even when technically available.
Safety and routing
Apply input safety and authorization regardless of the selected model. Confirm that both candidates support the required Guardrail and output controls. If one candidate lacks a mandatory feature, it should not be in the eligible router pair.
Routing criteria express a quality tradeoff, not a hard legal policy. Put nonnegotiable controls before the router and validate outputs after it. Test adversarial prompts against both routes because an attacker can shape prompt complexity and may influence which model is selected.
Budget forecasts should include the observed routing mix and its uncertainty. A traffic shift toward difficult prompts can move most calls to the higher-cost fallback without any request-volume increase.
Record the router ARN and configuration version with each release. If a default router changes underneath an application contract, rerun acceptance tests before expanding traffic and preserve a configuration-based rollback path.
What is required when correlating batch results with inputs?
When is application-side model routing preferable to an intelligent prompt router?