Skill 2.4.4
Develop intelligent model routing systems to optimize model selection (for example, by using application code to implement static routing configurations, Step Functions for dynamic content-based routing to specialized FMs, intelligent model routing based on metrics, API Gateway with request transformations for routing logic)
Key Concepts
Static routing maps request types to models in configuration: summarisation to one model, code to another. Content-based routing inspects the request, often with a small classifier model, and a Step Functions Choice state sends it to the matching specialised model or workflow.
Metric-based routing chooses models from live measurements such as latency, error rate, cost and quality scores, shifting traffic away from a degraded model. Amazon Bedrock Intelligent Prompt Routing uses a prompt router to predict which model in a family will answer each prompt well and routes to the cheaper one when quality is expected to be similar. API Gateway mapping templates and stage variables can transform requests and choose a backend.