Match the Bedrock Model to the Task: An 8-Model Benchmark
Same RAG pipeline, eight Bedrock models, one runbook retrieval question. The cheapest Claude model won. The lesson: match the model to the cognitive task.
Most teams pick one Bedrock model and tune the prompt to make it fit everything. That is backwards. The right pattern is to match the model to the cognitive task the query actually demands, then keep the prompt simple.
To show why, I ran eight models through one RAG pipeline on Amazon Bedrock. Same context, same question, same audit table. Five providers. The result broke an assumption I did not know I was holding: the cheapest Claude model produced the most complete answer.
The Setup
One pipeline, held constant across every run. Thirteen architecture decision records, two vector stores, a set of compliance documents, and roughly two dozen indexed engineering posts. Retrieval assembled the same context window for every model.
Everything went through the Bedrock Converse API. Because Converse is model-agnostic, swapping models is a single configuration change: no code edits, no prompt tuning. Every model received the exact same system prompt, the exact same retrieved context, and the exact same question.
The task was runbook retrieval. A realistic operations question where the answer already lives in the knowledge base:
"A service is failing its health checks after a deploy. Walk me through how we diagnose and roll back, based on our runbooks and ADRs."
The relevant material was all present in context: the rollback procedure in an ADR, the health-check thresholds in a compliance doc, the deploy sequence in the runbooks. The model's job was extraction and assembly, not invention. A complete answer names the rollback steps in order, cites the health-check thresholds, flags the escalation path, and does not hallucinate a procedure that is not in the source.
Every response was logged with a full audit trail: model ID, input tokens, output tokens, and duration.
The Results
Model | Provider | Input Tokens | Output Tokens | Duration |
|---|---|---|---|---|
Haiku 4.5 | Anthropic | 59,221 | 1,122 | 13.8s |
Sonnet 4.6 | Anthropic | 59,222 | 655 | 16.7s |
GPT OSS 120B | OpenAI | 51,027 | 539 | 5.7s |
DeepSeek R1 | DeepSeek | 52,438 | 481 | 12.2s |
DeepSeek V3.2 | DeepSeek | 52,437 | 400 | 18.9s |
Qwen3 235B | Alibaba | 52,282 | 377 | 10.1s |
Llama 4 Maverick | Meta | 50,269 | 344 | 4.7s |
Nova 2 Lite | Amazon | 49,547 | 294 | 5.3s |
Same context. Eight models. Every response scored on one question: could an on-call engineer act on this answer without opening a second tab?
Haiku Beat Sonnet
Read that again. The cheapest Claude model outperformed the mid-tier Claude model on the same context.
Haiku produced a complete runbook: the ordered rollback steps, the specific health-check thresholds pulled from the compliance doc, the escalation path, and a "do not do this" guardrail against a rollback shortcut the ADRs explicitly warn against. Sonnet produced a well-structured answer with the core rollback steps and correct sequence, but fewer of the threshold specifics and no escalation path. Good, but less complete, at several times the cost per output token.
The more expensive model gave less. That is not a fluke. It reveals how different models handle different cognitive tasks.
Retrieval Is Not Reasoning
Retrieval and formatting. The answer already exists in the context. The model has to find it, structure it, and present it faithfully. Runbook retrieval is this task. The rollback steps are in the ADRs; the thresholds are in the compliance docs. The model extracts and assembles. Haiku excels here: fast, inexpensive, thorough.
Reasoning and synthesis. The answer does not exist anywhere in the knowledge base. The model has to construct it, connecting facts across sources and inferring relationships that are never stated. "Explain how these three services fail together under load, using only their code summaries and ADRs" is this task. Sonnet earns its cost here. It thinks rather than formats.
Asking Sonnet to do a retrieval task is like asking a senior architect to fill out a form. Overqualified, slower, and no better at the actual work. The mistake enterprises make is choosing one model for everything and tuning the prompt to compensate. Tune the model selection to the task type instead, and keep the prompts simple.
What the Open-Weight Models Told Us
On a retrieval task with well-engineered context, the open-weight models were fine. Not exceptional. Fine. GPT OSS 120B, DeepSeek R1 and V3.2, Qwen3 235B all produced a usable answer to the first question. None anticipated the follow-up. None surfaced the escalation path or the guardrail unless explicitly asked. The context contained all of it; they returned the minimum viable answer while Haiku returned the maximum useful one.
Two footnotes worth keeping:
DeepSeek R1 is a reasoning model, and on a retrieval task the chain-of-thought overhead did not help. It is a chess engine asked to look up a phone number. Brilliant at chess, not better at phone books. R1 would likely shine on the synthesis task; on retrieval it landed mid-pack, and V3.2 was the slowest model in the test at 18.9s.
Llama 4 Maverick was the disappointment. Fastest response at 4.7s and the weakest extraction of the eight. It received more than 50,000 tokens of runbooks, ADRs, and compliance docs and produced a generic answer that barely referenced any of it. Speed without extraction is just fast nothing.
A Selection Framework
Stop picking models by benchmark score or price tier. Pick by the cognitive task the query demands.
Task Type | Description | Model Class |
|---|---|---|
Retrieval + formatting | Answer exists in context. Find it, structure it, present it faithfully. | Haiku-class |
Reasoning + synthesis | Answer must be constructed. Connect sources, infer relationships. | Sonnet-class |
Complex architecture | Novel design decisions. Multi-system tradeoffs. Ambiguous requirements. | Opus-class |
Because Converse is model-agnostic, this framework is enforceable in production. Parameterize the model ID as configuration rather than hardcoding it, and route per workload: a retrieval-heavy runbook assistant defaults to a Haiku-class model, a cross-service synthesis query escalates to Sonnet-class, a genuine architecture decision goes to Opus-class. One integration, one IAM role, one KMS key. The model choice becomes a variable, not a rewrite.
The Takeaway
Three things this data settles:
Context engineering is the foundation. Every model got the core rollback fact right because the context contained it. Without context they hallucinate; with it they all produce something usable. The floor is real.
More expensive is not better. Haiku beat Sonnet on retrieval because Sonnet's extra reasoning capability translated into caution and brevity, not completeness. It was overqualified.
Match the model to the cognitive task. Retrieval needs extraction, not reasoning. Synthesis needs reasoning, not speed. The right model is the one whose strengths match what you are asking it to do.
Eight models. One pipeline. One runbook question. The cheapest Claude model won, not because it is the best model, but because it was the right model for the task.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article