RAG, or retrieval-augmented generation, makes a language model answer from your own documents and data: the system first finds the relevant passages, then asks the model to answer from them and cite them. You need RAG when answers must come from private or frequently changing information. You probably do not need it for a small, stable set of facts or for general writing tasks.
Key takeaways
- RAG connects a language model to a source of truth you control. The model writes the answer, but the retrieval step decides whether the answer is based on the right material.
- Use RAG when answers must reflect private, changing or permission-restricted information, and when users need to see where an answer came from.
- Most RAG failures come from retrieval, not from the model: wrong passages, outdated files or missing access rules. Measure retrieval and answers separately.
- Ask for an evaluation set of real questions before you build. Without one, nobody can say whether a change made answers better or worse.
- RAG reduces unsupported answers but does not remove them. Ask what the system does when it cannot find an answer.
What is RAG?
Retrieval-augmented generation is a pattern for language model applications. AWS describes it as optimizing the output of a large language model so that it “references an authoritative knowledge base outside of its training data” before answering. The term comes from a 2020 research paper by Patrick Lewis and colleagues, which describes models that “combine pre-trained parametric and non-parametric memory for language generation”. In plain terms, the model’s built-in knowledge is joined to a searchable store of documents.
A working RAG system follows four steps. The table lists what happens in each and where problems usually start. This is our plain-language summary of the pattern, not a quotation from either source.
| Step | What happens | What can go wrong |
|---|---|---|
| 1. Prepare the data | Documents and records are collected, cleaned, split into passages and indexed so they can be searched. | Outdated files, duplicates, scanned pages that cannot be read. |
| 2. Retrieve | The system searches the index for the passages most relevant to the question. | The right passage is not found, or the wrong one ranks first. |
| 3. Augment | The best passages are added to the prompt along with the question. | Too much or irrelevant text distracts the model. |
| 4. Generate | The model writes an answer from those passages and can point to its sources. | An answer that goes beyond the sources, or no answer when one exists. |
What problem does RAG solve?
A model on its own answers from what it learned during training, and that has limits. AWS notes that “LLM training data is static and introduces a cut-off date on the knowledge it has.” Google Cloud makes the same point: LLMs “are limited to their pre-trained data,” which “leads to outdated and potentially inaccurate responses”. A model has also never seen your internal contracts, support articles or product data.
RAG addresses this by supplying current, private material at the moment of the question. AWS says it allows the model “to present accurate information with source attribution,” and the original paper lists providing provenance and updating knowledge among the open problems of models used alone. RAG is not magic, though. Google warns that “if your retrieved information is irrelevant, your generation could be grounded but off-topic or incorrect.” The quality of retrieval is the quality of the product.
When do you need RAG?
You need RAG when the answer lives in information the model was not trained on and that changes or is restricted. The table sets common situations against the fit. These are our guidance, based on how the pattern works, not a published rule.
| Situation | RAG fit | Why |
|---|---|---|
| Questions over internal documents, such as policies, contracts or support articles | Strong | The answer exists in your files, and users want to see which file. |
| Knowledge that changes every week | Strong | Re-indexing updates answers without retraining a model. |
| Different users may see different information | Strong, if access rules are built into retrieval | Retrieval can respect who is allowed to see what. |
| A short, stable set of facts | Weak | The facts may fit directly in the prompt, so retrieval adds complexity. |
| Numbers, totals or filters over structured data | Often the wrong tool | A database query is more reliable than text search for exact figures. |
| Taking actions across tools | Different problem | This is agent development. Outstep’s AI page separates it from apps that answer and analyze. |
| Changing tone or output format only | Not the main fix | Clear instructions or fine-tuning address style better than retrieval. |
What do RAG development services include?
RAG development services cover the work between “we have documents” and “people trust the answers.” The list below is a neutral checklist of what a proposal should cover, whichever company you choose.
| Component | What it covers | Question to ask a vendor |
|---|---|---|
| Data audit | Where the content lives, its format, how fresh it is and who may see it. | Which of our sources are in scope, and which are not? |
| Ingestion and indexing | Cleaning, splitting and indexing content, and keeping it up to date. | How do updates reach the index, and how quickly? |
| Retrieval and generation | Finding the right passages and writing answers that cite them. | What happens when no good source is found? |
| Access control | Making sure people only see content they are allowed to see. | Is access enforced in retrieval, not only in the interface? |
| Evaluation | A fixed test set of real questions scored on every release. | Who writes the test set and what score is the bar? |
| Monitoring and cost | Logging answers, quality, latency and usage, with limits. | What will running it cost each month? |
What does Outstep publish about RAG, cost and timing?
This section reports what Outstep states on its AI development page. We describe connecting AI “to your documents, databases and business systems so answers are grounded in your sources and cite them,” with access rules carried over so each person sees only what they are allowed to. The page also describes guardrails that block off-topic requests, leaked personal data and answers not backed by a source, and a fixed test set that scores each release.
On cost and timing, the page states that a focused AI proof of concept typically costs $3,000 to $6,000 with Outstep and takes two to six weeks, with a fixed scope and price after a free consultation. Production systems cost more, and the page gives no figure for them. The contact form’s budget bands are form options, not prices. These are self-reported typical figures, not guarantees, and the page gives no currency code.
For an example, our Altruva case study describes an AI finance assistant for nonprofit teams built on Azure AI Foundry with GPT-4.1. It states connections to accounting and CRM tools, and that the team “achieved 100% accuracy on all initial client test questions.” That is a self-reported result with no stated test-set size or method, so please do not read it as a benchmark. The case study also does not describe how sources are cited or give a project cost.
The RAG Readiness Checklist: six steps before you hire anyone
Use these six steps to turn “we want AI on our documents” into a request any vendor can quote against. The first step matters most, because Google Cloud notes that running evaluations “gives you a baseline measurement and you can optimize for RAG quality.”
- Collect real questions. Write 20 to 50 questions people actually ask, with the correct answer and the document it comes from. This is our suggested starting size, not a standard.
- List the sources. Note where each lives, its format, how often it changes and who owns it.
- Decide who can see what. Write the access rules, such as which teams may see which folders.
- Decide what a good answer looks like. Do you need a citation every time, a short answer, or a handover to a person when the system is unsure?
- Set the quality bar. Agree a target score on your question set, and measure retrieval (did it find the right passage) separately from the answer.
- Plan updates and costs. Decide how new documents are added and who watches monthly usage and cost.
Why do RAG projects fail?
RAG projects rarely fail because the model is weak. They fail because of what surrounds it. The table lists the common causes and a quick check for each. These are general failure patterns, not measured rates.
| Cause | What you see | Quick check |
|---|---|---|
| Poor source data | Confident answers from an old policy. | Add dates and owners to sources; remove what is outdated. |
| Weak retrieval | The right document exists but is not used. | Test whether the correct passage appears in the top results. |
| No evaluation set | Nobody knows if a change helped. | Score every release on the same question set. |
| Access rules added late | Users see content they should not. | Test with accounts that have different permissions. |
| No fallback | Invented answers when nothing is found. | Check the behaviour on questions the documents cannot answer. |
How do you compare two RAG proposals?
Compare proposals on how they handle data, evaluation and failure, not on the model name. Outstep’s AI page states that it uses model APIs that do not train on your data, can deploy in your own cloud account, and self-hosts an open-source model when data cannot leave your servers. Ask every vendor for the same detail in writing.
| Check | What a good proposal shows | Warning sign |
|---|---|---|
| Evaluation | A test set of your real questions and a score for each release. | “We will test it internally” with no numbers. |
| Data handling | Where data is stored, whether it trains models and how access is enforced. | No mention of privacy or permissions. |
| Citations and fallback | Answers cite sources and the system says when it does not know. | Answers with no sources and no uncertainty. |
| Cost | A fixed proof-of-concept price and a monthly running estimate. | One lump sum with no running costs. |
| Handover | Documentation, repository access and a support plan. | Ownership unclear after launch. |
Frequently asked questions
What is the difference between RAG and fine-tuning?
RAG gives a model access to your current documents at the moment of each question. Fine-tuning changes the model itself using training examples. AWS describes RAG as “a more cost-effective approach to introducing new data to the LLM.” Fine-tuning suits changes in style or behaviour, while RAG suits facts that change or must be cited.
Does RAG stop hallucinations?
No, it reduces them. Google Cloud says providing facts in the prompt can mitigate hallucinations, not eliminate them. A system can still retrieve the wrong passage or go beyond it. Outstep states that its guardrails block answers not backed by a source. Ask any vendor what happens when the documents contain no answer.
How much does RAG development cost?
It depends on the data, the number of sources and the access rules. Outstep states that a focused AI proof of concept typically costs $3,000 to $6,000 and takes two to six weeks, with a fixed scope and price after a free consultation. Production systems cost more. Ask for a monthly running estimate as well.
Is our data safe in a RAG system?
It depends on how the system is built. Outstep states that it uses model APIs that do not train on your data, can deploy in your own cloud account, and applies role-based access in retrieval. Whoever you choose, confirm data storage, access rules and model terms in writing before you share documents.
The decision in one paragraph
Collect real questions, list your sources, write the access rules and set a quality bar before you pick a vendor. Then ask for a fixed-scope proof of concept scored on your own questions. If you want help scoping one, you can book a free call and we will work through your documents with you.

