What RAG means for AI answers, with a worked example
Follow a fictional handbook question from search to answer, then use a checklist to spot missing evidence and access problems.
In this article
A workplace assistant is asked who handles a faulty door key. The answer is buried in a handbook that the assistant's language model was never trained to know. A retrieval-augmented generation system can search the handbook, put a relevant passage alongside the question and ask the model to answer from it. That process is known as RAG.
The worked example below shows what each stage contributes and where an answer can go wrong. It is a model of the process, not a product test. The documentation was checked on 27 November 2026; product features and settings can change, so confirm them on the relevant official page.
The three jobs behind a RAG answer
Retrieval means finding material relevant to a question. Augmentation means adding the material to the information given to the model. Generation is the model composing an answer. AWS describes this as bringing information into a model's context before it answers. Context is the input the model can use for that response; it is not the same as changing the model's training. Our guide to the context window explains why the amount of input matters.
A system usually prepares its documents for search beforehand. OpenAI's retrieval documentation describes files being split into chunks, embedded and indexed in its vector stores. The term chunk means a piece of a document; an index is a structure used to find material. An embedding represents content in a numerical form used for similarity search. These are implementation choices in the documented service, not requirements that every RAG system must implement identically.
A worked handbook example
Imagine an approved fictional office handbook contains this passage: ‘For a damaged door key, contact Facilities. For a lost key, contact Security.’ A colleague asks: ‘Which team handles a faulty key?’ The question uses different words from the passage. OpenAI explains that semantic search can find related material even when it shares few or no keywords with the query. It can still retrieve the wrong material, so relevance needs inspection.
Suppose the search returns the handbook passage and its file name. The application supplies that passage and the question to a model, with an instruction to answer only from the supplied material. The following is an illustrative example written by Auratro, not a recorded answer from a tool:
Question: Which team handles a faulty key?
Retrieved passage: For a damaged door key, contact Facilities. For a lost key, contact Security.
Illustrative answer: Contact Facilities for a damaged door key. Source: office handbook.The answer is supported if ‘faulty’ means the damaged door key described in the passage. It does not establish who handles a faulty computer keyboard or a lost key. A careful answer keeps the condition ‘door key’ instead of turning a narrow rule into a rule about every key. If the question is ambiguous, asking what kind of key is safer than silently assuming.
The important distinction is between finding a passage and proving an answer. Google Cloud's grounding documentation defines full support in terms of each claim being entailed by the supplied facts. A passage can look relevant while failing to support part of a sentence. For example, adding ‘Facilities will replace it today’ would introduce a timing claim absent from the fictional handbook.
What search and citations actually show
OpenAI's retrieval guide says its search results include relevant chunks, similarity scores and the file of origin. That similarity score helps rank a match; it is not a guarantee that a passage is correct, current or sufficient for an answer. An old but relevant handbook may conflict with the current one. Inspect the source and its surrounding text, especially when a short excerpt omits an exception.
Google Cloud documents a RAG output format that can associate answer segments with retrieved chunks and source information. That makes tracing easier, but the mapping does not identify the exact part of a chunk that supports a claim. Read the passage itself. A citation is a route to evidence, not proof that the cited text says what the answer claims. See our AI hallucination checking guide for a broader verification method.
Common mistakes about RAG
Myth: the model has learned the handbook permanently. In the workflow described here, the retrieved text is supplied as context for an answer. That is different from training the model on the handbook. If the source changes, the search system needs access to the updated material; an answer based on an older indexed copy may still be out of date.
Myth: a cited answer must be true. A citation can point to the wrong passage, an obsolete document or text that only partly supports the answer. Google's grounding guidance treats partial support as insufficient for full grounding. Even a faithful summary of a source inherits errors in that source. Check the document's authority and date as well as the words quoted or summarised.
Myth: retrieval automatically respects every reader's permissions. AWS warns that a shared retrieval identity can expose documents a requesting user cannot read. It also notes that copies in indexes, caches and memory can remain accessible after source permissions change. Access control must cover retrieval and retained copies, not only the original file.
What to do with this: check an answer
Use this decision checklist when an assistant provides a document-based answer. It works as a manual review method, whether the application exposes its retrieved passages directly or provides links to the underlying documents. If it exposes neither, you cannot complete the source check from the answer alone.
- Identify the claim you need to use. Separate the main answer from extra details such as a date, exception or deadline.
- Open the cited source or retrieved passage. If there is no accessible source, treat the claim as unverified and locate the relevant document independently.
- Compare each claim with the actual text. Check that conditions, scope and exceptions are present, not merely that similar words appear.
- Check the source's authority and version. Look for a newer approved document or a conflicting passage, and resolve any conflict before relying on the answer.
- If you manage the system, check that the requesting person is allowed to retrieve the material and that outdated copies are handled.
- Ask a narrower follow-up when the question or evidence is ambiguous; if the source does not answer it, record that gap instead of filling it with a guess.
For the fictional key question, step three catches the unsupported promise of a same-day replacement. Step four catches an older handbook that assigns the task elsewhere. Step five matters if the example is replaced with a restricted staff document. These checks address different failure points, so a plausible answer alone cannot substitute for them.
Limits and what to check
RAG can only use what its retrieval system makes available for a given request. Missing passages, ambiguous questions, old copies or misleading source material can lead to an unsupported answer. AWS also warns that untrusted documents may contain instructions that affect later responses. Treat retrieved text as evidence to assess, rather than authority to change the assistant's instructions.
Implementations differ in how they prepare documents, rank results, show citations and enforce access. Features, plan availability and settings can change; consult the provider's current documentation for the product you use. For consequential decisions, follow the source's actual rules and involve the person responsible for the document when the evidence is incomplete or conflicting.
Sources & further reading
Google Cloud check grounding with RAG
Written by the Auratro desk with AI assistance and checked against the sources listed above before publication. See how we work, or report an error. Editorial policy · Contact


