Retrieval finds the right chunks, yet the model still answers from general knowledge and ignores them. What should the team change first?
- Exam domain
- RAG with embeddings, rerank and vector search
- Difficulty
- Medium
- In this mock
- 6 questions on this domainPractise this domain
Why A is the answer
Instruct the model to answer only from the provided context and to say when it is missing
When the context is right but unused, the prompt is the problem. Telling the model to answer only from the supplied passages, and to admit when they lack the answer, keeps it grounded.
Remember: Tell the model to use the context.
In detail
- Retrieval found it; the prompt must use it.
- Allow "not in the sources".
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Instruct the model to answer only from the provided context and to say when it is missingRight
Tell the model to use the context.
B. Turn off the rerank stepWrong
Rerank affects order, and the chunks are already right.
C. Switch to a larger embedding model so the retrieved chunks get more weight in the promptWrong
Embedding size does not change how the chat model weighs context.
D. Lower the number of chunks to zeroWrong
No chunks means no grounding at all.
Use case
An illustrative scenario, not a real incident.
Illustrative: a policy bot starts saying "the handbook does not cover this" instead of guessing.
See it in different ways
sequenceDiagram participant P0 as App participant P1 as Model P0->>P1: Answer only from these passages say if missing P1-->>P0: answer with citations
How to read this chart
- 1. App sends "Answer only from these passages say if missing" to Model.
- 2. App gets a reply from Model: "answer with citations".
flowchart TD
Q{"Are the right chunks retrieved?"}
Q -->|"No"| A0["Fix retrieval"]
Q -->|"Yes, but ignored"| A1["Fix the prompt"]How to read this chart
- At "Are the right chunks retrieved?": if "No", go to "Fix retrieval"; if "Yes, but ignored", go to "Fix the prompt".