How does retrieval-augmented generation (RAG) help an AI solution answer from company documents?
- Exam domain
- Identify the business value of generative AI solutions35–40% of the exam
- Difficulty
- Medium
- In this mock
- 19 questions on this domainPractise this domain
Why the exam asks this
Identify benefits and capabilities of generative AI solutions
Objective in the exam guide: Understand how retrieval-augmented generation (RAG) is used for AI solutions
RAG is the most common pattern behind business AI assistants.
Why C is the answer
It retrieves relevant passages and adds them to the prompt before the model answers
RAG retrieves the most relevant content for a question from an index, adds it to the prompt as grounding data, and the model generates an answer from it, often with citations.
Remember: RAG: retrieve, add to the prompt, generate.
How it works
RAG retrieves relevant content, adds it to the prompt and then generates a grounded answer. Azure AI Search is a common retrieval store.
In detail
- Retrieve, augment, generate.
- No retraining is needed when documents change.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. It retrains the model on every document each nightWrong
RAG does not retrain the model.
B. It copies every document in the company into every prompt, whatever the question happens to beWrongMost tempting
Sending everything wastes tokens and hurts quality.
Why it tempts: More context sounds better, but it costs tokens and lowers quality.
C. It retrieves relevant passages and adds them to the prompt before the model answersRight
RAG: retrieve, add to the prompt, generate.
D. It replaces the model with a keyword search engineWrong
The model still writes the answer.
Use case
An illustrative scenario, not a real incident.
Illustrative: an HR assistant retrieves the two relevant policy sections and answers a leave question with links to both.
See it in different ways
flowchart LR S0["User question"] --> S1["Retrieve relevant content"] --> S2["Add it to the prompt"] --> S3["Model answers with citations"]
How to read this chart
- Read it in order: User question, then Retrieve relevant content, then Add it to the prompt, then Model answers with citations.
sequenceDiagram participant P0 as User participant P1 as App participant P2 as Search index participant P3 as Model P0->>P1: question P1->>P2: find relevant passages P2-->>P1: top passages P1->>P3: question plus passages P3-->>P1: grounded answer P1-->>P0: answer with citations
How to read this chart
- 1. User sends "question" to App.
- 2. App sends "find relevant passages" to Search index.
- 3. App gets a reply from Search index: "top passages".
- 4. App sends "question plus passages" to Model.
- 5. App gets a reply from Model: "grounded answer".
- 6. User gets a reply from App: "answer with citations".
Related questions
Learn more
- Our lesson: Where generative AI creates value, and what it costs
- Practise Identify the business value of generative AI solutions questions in the mock exam
- Source: Retrieval augmented generation and indexes
- Source: RAG in Foundry IQ (Azure AI Search)
- Billing concepts for Microsoft Foundry
- AI adoption (Cloud Adoption Framework)