If an AI assistant gives the wrong answer, the fix depends on why it failed. It may not have received a clear instruction. It may not have the document containing the answer. Or it may repeatedly mishandle a task despite having the right information.
Prompting, retrieval-augmented generation (RAG) and fine-tuning address different parts of that problem. Choosing between them is easier after you inspect a few failed answers.
In this guide

What each approach changes
| Approach | What changes | Useful starting situation | What it does not guarantee |
|---|---|---|---|
| Prompting | Instructions and examples supplied with a request | The task or output format is unclear | Factual accuracy or perfect instruction following |
| RAG | Information retrieved and supplied at answer time | Answers depend on documents or changing records | That the right passage was found or used correctly |
| Fine-tuning | Model parameters, using training examples | A repeated behaviour or task needs improvement | Current knowledge, source citations or error-free output |
Microsoft's RAG documentation describes retrieving relevant material and passing it to a model as context. It distinguishes this from fine-tuning for behaviour, style or task performance. The evaluation sequence below is our practical application of that distinction.
Example: an assistant answering travel-policy questions
Imagine a fictional company with a travel policy that changes several times a year. Staff ask which expenses are allowed and who needs to approve them. The assistant should answer from the current policy and identify the relevant section.
Start with one short policy supplied directly in the request. Tell the assistant to use only that material, quote the relevant section reference and say when the policy does not answer the question. Test a question the policy does answer, one it does not answer and one where an exception matters.
If that works, you have evidence that clearer instructions and relevant context help. You have not yet proved that an assistant can reliably search hundreds of policies.
When retrieval becomes useful
Add retrieval when manually selecting the right material becomes the problem. In the example, staff may need different policies by country, employment type or effective date. The system must retrieve the correct version before writing an answer.
A useful test is a question about a limit that changed. Put both the old and new policies into the test environment with clear dates. Ask about a trip taking place after the new policy starts. Record which passages the system retrieved and which it cited.
If it retrieves the wrong version, changing the writing prompt alone may not fix the underlying selection problem. Check metadata, filters, document boundaries and how superseded content is handled. Retrieval should also respect the user's permission to see a document before returning its contents.
When fine-tuning may be worth investigating
Suppose the assistant consistently has the correct material but struggles to classify a request into your organisation's approved categories. You have a collection of reviewed examples, stable category definitions and a way to measure errors. Fine-tuning could be a candidate to compare with improved instructions and examples.
That is different from training the model on this month's policy and hoping it remembers every detail. If the answer must point to a current clause, retrieval remains useful even when the model has been fine-tuned.
You also need a maintenance plan. Who labels new examples? What happens when a category changes? Which failures justify another training run? Training is one part of a workflow that includes data preparation, evaluation and operating costs.
Classify failures before spending money
| Observed failure | First investigation |
|---|---|
| Correct fact, wrong layout | Clarify the output contract; consider structured validation |
| Answer based on last year's policy | Inspect version selection and retrieved passages |
| Correct passage supplied, exception ignored | Improve the task instructions and test exception cases |
| Answer invented when nothing supports it | Test missing-evidence handling and refusal behaviour |
| Restricted information appears | Fix access enforcement in the retrieval and application layer |
| Stable category errors across many reviewed cases | Compare stronger examples, another model and fine-tuning |
These are diagnostic starting points. More than one failure can occur in the same answer.
Build a useful evaluation set
Write 30 questions before making large changes. Include normal requests, ambiguous requests, missing evidence, conflicting versions and permission boundaries. Have someone familiar with the policies prepare expected answers and source references.
Keep a set of questions out of your prompt-writing and training work. Use those held-out cases to check whether a change improves performance beyond the examples you already studied. Record source correctness, answer correctness, format compliance, latency and cost separately.
Do not hide a wrong permission decision inside an average score. Some failures should block release even when most answers look good. An assistant that answers quickly from the wrong person's documents is failing an essential requirement.
Can you use all three together?
Yes. A system can retrieve approved passages, use a fine-tuned model and still supply clear instructions. The components solve different problems, so they are not mutually exclusive.
Begin with the smallest design that meets your measured requirements. The agent comparison helps if the assistant also needs to act on its answers. Use the checklist below to record the observed failure, proposed change and test result before moving to a more complex design.