AIWIRE.Latest news
Original explainer

Prompting, RAG or fine-tuning: diagnose the failure first

3 October 2026 · 5 min read · AI Wire · AI-assisted

A practical decision guide for missing instructions, missing evidence and inconsistent learned behaviour.

Scope and sources: Research-informed editorial guidance with hypothetical examples. The decision table is not a benchmark or a guarantee of improvement.

AI-generated conceptual illustration of a luminous model chip
AI-generated conceptual illustration.

Name the failure in a real example

Before changing an AI system, keep several examples of what went wrong. Did the model overlook an instruction, lack the required evidence or produce the wrong classification despite seeing the relevant input? Those failures can look similar in a chat window but call for different experiments. Our recommendation is to record the input, expected output and reason the observed answer failed. Avoid a vague improvement target such as “make it smarter.” A measurable failure gives you something to compare after the change.

Try clearer instructions for an instruction problem

Consider a hypothetical ticket classifier that gives a paragraph when the application needs a category and a reason. First make the requested format explicit and test it on a held-out set. Include ambiguous tickets and inputs where no category is justified. A format improvement is not the same as a classification improvement: check both. Keep the prompt and generation settings with the results. If a prompt change solves the actual problem reliably, you have useful evidence without assuming a training project is required.

Use retrieval when the answer needs external evidence

RAG combines retrieval with generation so retrieved material can inform an answer. That makes it a relevant experiment for questions about a versioned policy or document collection. It does not remove the need to test whether the correct passage was retrieved and represented accurately. For the hypothetical leave-policy assistant, keep a question about an exception and another that the documents cannot answer. Check the citation itself. Adding documents to a system is useful only when the appropriate evidence reaches the answer and supports its claims.

Sources: Lewis et al. — Retrieval-Augmented Generation

Consider adaptation for repeatable behaviour

Fine-tuning changes model behaviour through training examples. LoRA is an adaptation method that learns low-rank updates while keeping the pretrained weights fixed. A plausible experiment is learning a consistent task-specific classification pattern from representative labelled examples. Our recommendation is to first check label quality and the evaluation split. Closely related examples appearing in both training and testing can make the result misleading. Compare the adapted model and the base model with the same prompt and settings; a changed prompt should be reported as a separate experimental factor.

Sources: Hu et al. — LoRA

A decision table for the next experiment

The table below is our diagnostic starting point. It describes what to test, not which approach will necessarily win. A real application may combine these approaches: retrieval supplies evidence while a prompt defines the output, and adaptation may later address a repeated behavioural failure. Change one major factor at a time when you want to understand the cause of an improvement. Keep a simpler baseline so the added complexity has a clear benefit to demonstrate.

Observed failureFirst experimentEvidence to compare
Output ignores required structureClarify instructions and examplesFormat validity and task correctness
Answer needs a current internal policyRetrieve versioned evidenceCorrect passage and supported answer
Repeated task-specific errorsReview labels, then test adaptationHeld-out errors versus the base model
Fluent answer without evidenceAdd evidence checks and missing-answer casesUnsupported-claim and fallback behaviour

Accept a negative result

If the adapted model performs worse, record that outcome rather than treating training as proof of progress. If retrieval finds the correct document but the answer remains wrong, investigate generation instead of adding more documents automatically. A good experiment reduces uncertainty even when the proposed change fails. The product decision should follow the workload, the observed mistakes and the maintenance cost. Prompting, RAG and fine-tuning are tools for different parts of the problem; none is a universal upgrade button.

Sources and further reading

  1. Lewis et al. — Retrieval-Augmented Generation
  2. Hu et al. — LoRA

Sources checked 3 October 2026. Editorial recommendations and hypothetical examples are distinguished from documented facts. Source pages may change.

Suggest a correction · All guides and analysis

Keep exploring