RAG, fine-tuning and prompting solve different parts of an AI application's problem. If the approved policy never reaches the model, changing its tone will not supply the missing evidence. If the correct passage is present but the answer ignores the required format, a larger document index may leave the failure unchanged.
Start with a failed task and the evidence behind it. This guide compares the approaches without treating any of them as a universal upgrade. The decision is what to test next, not which technique sounds most advanced.
What each approach changes
| Approach | What changes | A useful question |
|---|---|---|
| Prompting | Instructions, supplied context, examples and the requested output | Does a clearer task and a representative example improve the same reviewed cases? |
| Retrieval-augmented generation, or RAG | The application retrieves selected sources and supplies them during a request | Can it retrieve the correct current evidence within this user's access boundary? |
| Fine-tuning | A supported model is trained further on selected examples or data | Does training improve a repeated behaviour on held-out cases beyond the simpler baseline? |
AWS's comparison of RAG and fine-tuning discusses their different tradeoffs and how they can be combined. Treat that as architectural guidance, not a promise that a selected service will satisfy your task. Support, processing terms and model-specific training options need verification during scoping.
Diagnose the failure before selecting the technique
Save an authorised example with its request, available sources, retrieved passages, relevant instructions, output and expected result. Separate an unavailable fact from a retrieval failure, an interpretation failure and an unauthorised action. Those require different investigations.
| Observed problem | First investigation | Evidence that would support the next step |
|---|---|---|
| The current policy is absent | Source ownership and ingestion | The approved version exists and reaches the permitted source set |
| The policy is indexed but the relevant passage is missing | Retrieval, document structure and ranking | Representative questions retrieve the required passage |
| The correct passage is present but the answer misreads it | Instructions, context composition, examples and model baseline | Reviewed answers improve without hiding difficult cases |
| A stable output behaviour remains inconsistent | Prompt baseline, validation and training-data suitability | A supported training experiment improves held-out cases |
| The system reads another customer's record | Application authorisation and data isolation | Enforced access tests pass; a new prompt is not the access control |
When to start with prompting
For a bounded task with sufficient permitted context, establish a clear instruction and example baseline. State the output contract, expected handling of missing evidence and actions outside scope. Check whether the application should validate a structured field instead of relying on the model to produce it correctly every time.
Keep the test inputs constant while comparing changes. If you change the prompt, the model and the source collection at once, you will struggle to attribute an improvement. Retain the failed examples rather than removing them after a successful demonstration.
When RAG is the relevant experiment
Consider retrieval when the answer depends on an owned collection of documents that may change, or when the application needs inspectable source support. The work includes ingestion, versions, removal, access filtering, retrieval and answer review. A vector index alone is not the complete knowledge system.
Supplying a passage does not guarantee that the answer follows it. Supplying an outdated passage does not make it current. A citation is useful evidence to inspect, not proof that the system respected permissions or interpreted the material correctly. The internal knowledge assistant guide covers continuing source ownership, access and operation.
When a fine-tuning experiment is justified
Investigate fine-tuning when a repeated, measurable behaviour remains unsuitable after a reasonable simpler baseline, and authorised representative training examples are available. The experiment needs a supported model, a reviewed dataset and an evaluation set kept separate from training.
Examples might concern a stable classification convention or a specialised response structure. Training is not a reliable substitute for supplying the latest policy, revoking an employee's document access or checking a consequential action. It also creates a model-version and data-maintenance responsibility. Record who can investigate regressions and return to the baseline.
Worked investigation: an outdated cancellation answer
Fictional case. An employee asks about cancellation terms. The assistant quotes a previous policy, although a new version has been approved. The first proposed fix is fine-tuning, but the retained trace shows that only the old document entered the index.
- The source owner verifies which policy is current and what should happen to the old version.
- The application team corrects ingestion and tests removal or replacement in the permitted source set.
- The same question is rerun and the retrieved passage is inspected before grading the answer.
- Related cases check an outdated cached answer, restricted access and a question the policy does not answer.
- If a correct passage is retrieved but still misread, investigate the instruction and generation step separately.
This is a completed reasoning example, not a claimed model benchmark. Its conclusion is to fix the missing source update first. No training experiment is supported by the observed fixture until that upstream defect is resolved.
Compare the complete cost of the alternatives
Compare reviewed task outcomes, not model call prices alone. Retrieval adds source and index operation; fine-tuning adds data preparation, training and model-version maintenance; all approaches can require employee review and exception handling. The ROI calculator separates released capacity from reduced cash spending.
Use the evaluation worksheet to record versions, held-out cases and unresolved conditions. Bring the failing examples and the decisions they block. Discuss an AI architecture decision.