Retrieval and grounding (RAG) in plain words
See how an AI tool looks up your documents before it answers. It cuts made-up answers but does not end them. Learn what an analyst specifies: sources, owners, freshness, access.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: An open-book exam. Finding a page is different from checking that it answers the question. The book may be old, the page incomplete or the answer misread. An open book helps only when its content is suitable and used correctly.
A (LLM) can generate language using its learned patterns and supplied context. An application may also provide documents or tools. Do not assume every chat is a closed-book system or that company information is absent until someone pastes it.
(RAG) combines retrieved material with generation. Grounding concerns the support for an answer in relevant evidence. A is a selected part of a document used for retrieval or context. Naming a passage does not prove an answer is supported, true or complete.
Daily List is a fictional training app (SYNTHETIC / TRAINING ONLY). Its help bot used an old plan page, and Lily followed the outdated rule. Sam must check source authority and how the application finds and uses information, not merely add a citation request.
The picture has a limit. A model is not a student. It may answer, refuse or ask for more context; the presence of retrieved material does not guarantee faithful use.
PLAIN WORDS · 2 in this section
- misread
- read or understand wrongly
- retrieval
- fetching stored information back again
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB The open-book picture separates finding evidence, using it to support an answer and checking its source and authority.
- Cut documents into chunks
- Retrieve relevant authorised material
- Paste them into the prompt
- Check whether evidence supports the answer
- Name the source or say not found
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| The closed-book exam | An artificial intelligence (AI) tool answering from memory |
| The open book | The company documents |
| Finding the right page | The search step |
| Writing the answer from that page | Generating the answer from the passages |
| Writing down which page you used | Naming the source |
WHERE THIS PICTURE STOPS
- A student or tool may answer despite missing or misunderstood evidence.
- A book and an index can both contain stale material; verify the relevant version and status.
- Retrieval may return chunks or other artefacts; check actual coverage rather than assuming the whole document was considered.
HOOK
Look up, answer from the page, say which page.
REMEMBER IT THIS WAY
A chunk: a long list grouped so it is easier to hold.
Retrieve, augment, generate: find the page, add it to the prompt, write the answer.
| In the trick | What it stands for |
|---|---|
| R | retrieve |
| A | augment |
| G | generate |
The saying lists the steps but not whether the page found is current or allowed, so the checks on sources and access are still needed.
TELL A FRIEND
supplies retrieved material to generation. Check retrieval quality, permissions, versions and actual claim support; a citation alone does not establish grounding or truth.
OFTEN MIXED UP WITH Requirements for AI features. That topic covers what to write for an (AI) feature in general. This one explains one design, the lookup before answering, and what to specify for it.
Sources & standards — 3 sources
- Market practice
RAFT: Adapting Language Model to Domain Specific RAG ↗ — RAFT authors · RAFT arXiv 2403.10131v2, 5 June 2024: complete abstract and author/version metadata read. Retrieved documents and training in an open-book setting; full methods, figures and general error-reduction claims not reviewed.
arXiv2403.10131v2,5June2024; original15March2024. Actual read scope: Complete abstract16–18 and author/version metadata8–27. Full methodology and figures not read. Limits: Not a universal hallucination-reduction rate, own-documents-only definition or authorisation design. Figure rights and pixels unreviewed. No figure copied or integrated.
- Regulatory guidance
NIST AI 600-1, Generative Artificial Intelligence Profile ↗ — National Institute of Standards and Technology · NIST AI 600-1, July 2024, selected complete risk sections 2.2/2.4/2.6/2.7/2.8 read; residual error, privacy and human risks, not certification of the fictional system.
July 2024. Actual read scope: Cover/intro; complete sections 2.2, 2.4, 2.6, 2.7, 2.8; selected action snippets only, not full section 3. Limits: No whole-document review or figure reuse claimed. No figure copied or integrated.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · Open-book analogy, Daily List, Lily and the conflicting free-plan pages are fictional. No approved numeric plan limit, actual retrieval log, tested fallback or measured error rate is supplied.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
PRACTISE AND KEEP
Sources for this topic — 7 sources
- Market practice
RAFT: Adapting Language Model to Domain Specific RAG ↗ — RAFT authors · RAFT arXiv 2403.10131v2, 5 June 2024: complete abstract and author/version metadata read. Retrieved documents and training in an open-book setting; full methods, figures and general error-reduction claims not reviewed.
arXiv2403.10131v2,5June2024; original15March2024. Actual read scope: Complete abstract16–18 and author/version metadata8–27. Full methodology and figures not read. Limits: Not a universal hallucination-reduction rate, own-documents-only definition or authorisation design. Figure rights and pixels unreviewed. No figure copied or integrated.
- Implementation-specific
Building effective agents ↗ — Anthropic · Building effective agents, 19 December 2024: complete selected main article and Appendix 1 read, not full Appendix 2. Workflow/agent distinction, retrieval/tools and stopping are vendor engineering guidance; source warns tooling changed.
19 December 2024; current page includes explicit notice tooling has changed since publication. Actual read scope: Complete main article sections from What are agents through Summary lines51–185; examples and captions read, figure pixels not inspected. Appendix1 lines188–205 also read; Appendix2 start207 only. Limits: Not a universal agent definition or current product reference; source itself warns tooling changed. No mandatory universal human-approval rule. Multiple official architecture figure candidates exist but exact pixels, rights and main-site preview remain unverified. No figure copied or integrated.
- Regulatory guidance
NIST AI 600-1, Generative Artificial Intelligence Profile ↗ — National Institute of Standards and Technology · NIST AI 600-1, July 2024, selected complete risk sections 2.2/2.4/2.6/2.7/2.8 read; residual error, privacy and human risks, not certification of the fictional system.
July 2024. Actual read scope: Cover/intro; complete sections 2.2, 2.4, 2.6, 2.7, 2.8; selected action snippets only, not full section 3. Limits: No whole-document review or figure reuse claimed. No figure copied or integrated.
- Regulatory guidance
Artificial Intelligence Risk Management Framework (AI RMF1.0) ↗ — National Institute of Standards and Technology · NIST AI RMF 1.0, January 2023: selected GOVERN/MAP/MEASURE scope in source notes; contextual roles, evaluation and documented uncertainty, not a universal workflow or local acceptance threshold.
NIST AI100-1, January2023. Actual read scope: Cover/version/update metadata0–24; complete Executive Summary80–159; complete GOVERN table644–758; selected MAP2.1–2.3, MEASURE2.1–2.4 and MANAGE2.1–2.4 excerpts only. GOVERN introductory prose not fully read; no whole-framework claim. Additional actual read: complete MAP table801–891; MEASURE introduction893–916 and table through MEASURE4.2 lines917–1008 (MEASURE4.3 and later pending). Additional complete Core§5 and GOVERN§5.1introductoryprose583–643 now read, resolving any-order/governance assumption; also complete §3.6privacy and §3.7fairness522–559 read. No wholeframework assertion..
Limits: Does not prescribe this course use-note fields, sole BA/PO liability or universal legal duties. No sourcefigure pixels/rights verified; Fig2 explicitly modified from OECD, so do not assume source PDF grants all element reuse. No figure copied or integrated.
- Market practice
LLM01:2025 Prompt Injection ↗ — OWASP Foundation, GenAI Security Project · LLM01:2025 Prompt Injection, complete substantive body read: direct/indirect instructions and limits of mitigations; retrieved/tool content and labels are not an enforced permission boundary.
2025 edition. Actual read scope: Complete substantive main body, lines 7–90 Limits: CC BY-SA footer observed; image-specific rights and pixels not reviewed. No figure copied or integrated.
- Market practice
LLM06:2025 Excessive Agency ↗ — OWASP Foundation, GenAI Security Project · LLM06:2025 Excessive Agency, complete substantive body read: narrow functions, permissions and autonomy, with downstream authorisation; natural-language requests do not grant permission.
2025 edition. Actual read scope: Complete substantive main body, lines 7–81; re-read 2026-11-07. Limits: Natural-language instructions do not replace runtime permissions; figures not reused. No figure copied or integrated.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal · Open-book analogy, Daily List, Lily and the conflicting free-plan pages are fictional. No approved numeric plan limit, actual retrieval log, tested fallback or measured error rate is supplied.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.