An assistant answers questions about company policies that change often, and it sometimes invents details. What helps most?
- Exam domain
- Generative AI and large language models
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why A is the answer
Retrieve relevant passages and add them to the prompt (RAG)
Retrieval-augmented generation finds current passages and puts them in the prompt, so the model answers from real text. When a policy changes, you update the documents, not the model.
Remember: Changing facts: retrieve them (RAG).
In detail
- RAG grounds answers in current documents.
- Update the index, not the model, when facts change.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Retrieve relevant passages and add them to the prompt (RAG)Right
Changing facts: retrieve them (RAG).
B. Shorten the prompt so the model has fewer tokens to readWrong
Less context gives the model less to ground its answer in.
C. Raise the temperature so the model explores more possible answersWrong
A higher temperature adds randomness and makes invention more likely.
D. Fine-tune the model every week on the full set of documentsWrong
Weekly fine-tuning is slow and costly, and it still does not cite sources.
Use case
An illustrative scenario, not a real incident.
Illustrative: an HR assistant quotes the current leave policy, with a link to the page it came from.
See it in different ways
flowchart LR S0["Embed the question"] --> S1["Search the vector store"] --> S2["Add passages to the prompt"] --> S3["Generate the answer"]
How to read this chart
- Read it in order: Embed the question, then Search the vector store, then Add passages to the prompt, then Generate the answer.
flowchart TD
Q{"What needs to change?"}
Q -->|"Instructions or format"| A0["Prompt engineering"]
Q -->|"Facts that change"| A1["Retrieval RAG"]
Q -->|"Consistent style or task behaviour"| A2["Fine-tuning"]How to read this chart
- At "What needs to change?": if "Instructions or format", go to "Prompt engineering"; if "Facts that change", go to "Retrieval RAG"; if "Consistent style or task behaviour", go to "Fine-tuning".