RAG retrieval quality matters more than a bigger AI model
When a document assistant gives poor answers, a bigger model rarely helps. Why retrieval sets the ceiling, and how to measure and improve it before upgrading.
Westerwick4 min read

On this page
When a company's AI document assistant gives a vague or wrong answer, the first instinct is often to switch to a bigger, newer model. Usually, that's the wrong fix. In retrieval-augmented generation (RAG), where the AI answers from passages it looks up in your documents, RAG retrieval quality sets the ceiling. If the right passage isn't found, no model can use it.
The model can only answer from what it's given
A RAG system works in two steps. First it searches your documents for passages relevant to the question. Then a language model writes an answer from those passages. If step one misses, step two is working blind.
Anthropic, which makes the Claude models, describes the common failure plainly: traditional RAG setups often end up "failing to retrieve the relevant information from the knowledge base"1. Its own experiments focused on improving the search step, not the model. Combining better search techniques with a reranking step cut the rate of failed retrievals by 67%1. We looked at those search techniques in when a vector database is overkill.
A bigger context window isn't a shortcut
A tempting alternative is to skip careful retrieval and give a large model lots of text at once. Research suggests that doesn't work as well as it sounds.
In the widely cited "Lost in the Middle" study, researchers found that model performance "is often highest when relevant information occurs at the beginning or end of the input context, and significantly degrades when models must access relevant information in the middle of long contexts, even for explicitly long-context models"2.
In plain terms: bury the right passage among many others and even a capable model may overlook it. Anthropic found the same limit from the other side. More retrieved passages raise the chance of including the right one, "however, more information can be distracting for models so there's a limit to this"1. In its tests, 20 passages worked better than 5 or 10, but it advises experimenting on your own case1.
Upgrading the model is the most expensive fix and often the least effective. Check what it was given first.
Four levers that improve retrieval
How documents are split. Documents are broken into chunks before they're searched. "The choice of chunk size, chunk boundary, and chunk overlap can affect retrieval performance"1. A policy split mid-sentence, or a table split from its heading, is hard to find and easy to misread.
Reranking. A reranker is a second, specialised model that re-sorts search results by relevance. In Amazon Bedrock, a reranker "calculates the relevance of chunks to a query and reorders the results", so "you can retrieve fewer, but more relevant, results", which "can also decrease cost and latency"3. Better retrieval can make the whole system cheaper, not just more accurate.
Filtering by metadata. If you tag documents with details such as department, product, region or effective date, the search can be narrowed before it runs. AWS describes this as retrieving "a well-defined subset of those relevant chunks based on applied metadata filters", with "improvement in accuracy" and lower querying cost6. It's often the simplest fix for "it gave me last year's policy" or "it answered for the wrong branch".
Search that handles exact terms. Product codes, invoice numbers and clause references need keyword matching as well as meaning-based search. Combining both usually beats either alone1.
Measure retrieval separately from answers
The most useful habit is testing the search step on its own. If you only judge final answers, you can't tell whether a bad one came from poor retrieval or poor writing.
Amazon Bedrock's evaluation tools include retrieve-only metrics for this. "Context relevance" "measures how contextually relevant the retrieved texts are to the questions", and "context coverage" "measures how much the retrieved texts cover all the information in the ground truth texts"5. Open-source frameworks do something similar. Ragas's faithfulness score "measures how factually consistent a response is with the retrieved context"7, which helps separate retrieval problems from answers that stray beyond the sources.
All of these need a test set: real questions your staff ask, with the documents that should answer them. In our experience, 30 to 50 good questions tell you more than any benchmark.
Run the same test set every time you change something: chunking, filters, the reranker or the model. Change one thing at a time. If retrieval scores rise and answer quality follows, you know where the gain came from. If answers stay poor while retrieval is strong, then it may be time to look at the model or the instructions it's given.
A note for South African deployments
Not every retrieval feature is available in every AWS Region. For example, Bedrock's reranker models are currently listed in Regions including Oregon, Frankfurt, Tokyo and Canada, but not Africa (Cape Town)4. If your data must stay in South Africa, check which features you can use in-country, and discuss any cross-border processing of personal information with your privacy adviser.
What to do next
- Collect 30 to 50 real questions and note which document should answer each one.
- Test retrieval on its own: for each question, does the right passage appear in the top results?
- Fix chunking and metadata first, especially dates, departments and document versions.
- Try reranking and compare results and cost on your test set.
- Only then compare models, using the same questions, so you know an upgrade is paying for itself. You can see retrieval with citations in action in our Ask demo.
Sources
- 1.Introducing Contextual RetrievalAnthropic · 19 September 2024
- 2.Lost in the Middle: How Language Models Use Long ContextsTransactions of the Association for Computational Linguistics (via arXiv) · 20 November 2023
- 3.Improve the relevance of query responses with a reranker model in Amazon BedrockAmazon Bedrock User Guide
- 4.Supported Regions and models for reranking in Amazon BedrockAmazon Bedrock User Guide
- 5.Use metrics to understand RAG system performanceAmazon Bedrock User Guide
- 6.Knowledge Bases for Amazon Bedrock now supports metadata filtering to improve retrieval accuracyAWS Machine Learning Blog · 8 April 2024
- 7.FaithfulnessRagas documentation


