RAG vs fine-tuning is a decision about how a model should use information and learn task behavior. Retrieval-augmented generation supplies selected information when a request runs. Fine-tuning changes a model through additional training. A system can use both, depending on the problem you need to solve. Red Hat's technical overview describes that distinction.
Start by collecting examples of the answers or actions your application must produce. A small, well-described evaluation set can reveal whether the problem is missing context, poor task behavior, access control or an unsuitable workflow. Those problems call for different changes.
Use the AI evaluation tab in the planning workbook and the synthetic question set to define the comparison. The sample contains no model outputs or benchmark results.
Describe the failure before choosing an approach
An internal assistant may answer using an old policy because the current policy never reached its context. A document processor may have the right source text and still return an inconsistent structure. An application may answer accurately for one user but expose information that another user should not see.
Record the failure in terms you can evaluate. “The model is unreliable” is difficult to act on. “For policy questions, the answer must use the policy available to this user, identify the relevant source and decline unsupported claims” gives the team a contract.
Separate permission errors from answer-quality errors. Better wording does not repair unauthorized retrieval. A model that can quote a document accurately can still be part of an application with incorrect access rules.
Use the decision table as a starting hypothesis
| Problem to investigate | Candidate experiment | Evidence to collect |
|---|---|---|
| Answers need current, approved documents | Retrieve authorized context before generation | Which source passages were retrieved, whether they were current and whether the answer used them correctly |
| Output format or task behavior remains inconsistent | Improve instructions and examples; then consider fine-tuning if the failure persists | Held-out examples, format validity and task-specific correctness |
| The answer needs both current facts and specialized behavior | Evaluate retrieval and model adaptation together | Separate retrieval failures from failures after correct context is supplied |
| The task is a deterministic lookup or rule | Compare a direct implementation | Correctness, operating effort and the need for generation |
This table proposes experiments. It does not establish that one architecture will win for your data.
Build an evaluation set that represents the workload
Collect questions or tasks from the actual application, with permission to use them. Record the expected behavior, the source that supports it and the severity of a failure. Keep training and evaluation examples separate so the comparison measures performance on held-out cases.
The synthetic fixture uses fictional operations policies. It includes a supported question, a question without enough information, a conflicting-source case and a request for restricted information. The expected behavior is written down before any model runs.
Replace these examples with representative tasks before making an architecture decision. Four synthetic cases can demonstrate the format of an evaluation set; they cannot establish production reliability.
Include ordinary cases and the exceptions that matter to your business. If your product handles document extraction, evaluate missing fields and ambiguous values. If it answers staff questions, evaluate policy changes, access boundaries and questions the source material cannot answer.
Keep retrieval and answer quality separate
For a retrieval-based system, inspect the passages that reached the model. If the relevant source never arrived, changing the generation prompt may leave the underlying failure untouched.
Then evaluate whether the answer is supported by that context and whether it addresses the task. Microsoft's RAG evaluation reference distinguishes retrieval quality, groundedness, relevance and completeness. That separation helps locate the failure rather than compressing every problem into one score.
The worksheet records a reviewer decision and an explanation for each case. Keep disputed cases open until a reviewer resolves them. An average can hide a small number of severe failures, so report those cases individually.
Run a comparison you can reproduce
Keep the input cases stable across candidate runs. Record the model identifier, configuration, prompt version, retrieval configuration, corpus version and run date. Save the retrieved context and output for each case, with appropriate handling of sensitive data.
Compare a reasonable baseline with the candidate change. For example, you might compare an instruction-only baseline with a retrieval-based candidate using the same evaluation cases. A fine-tuning experiment also needs a separate training dataset and a record of the training setup.
Use the same review criteria for all candidates. Do not change the expected answer after seeing a preferred model's output. When a case reveals a mistake in the evaluation set, correct the case and rerun the affected comparison.
The example leaves results empty. No model call, training run, latency measurement or cost benchmark has been performed for these fixtures.
Compare the operating cost of the complete system
Model usage is one part of the operating budget. A retrieval system also needs data preparation, updates, access enforcement, storage and monitoring. A fine-tuned system needs training data maintenance, evaluation and a process for deciding when to train again.
Record cost per completed task using a consistent workload and the current provider's rates. Record latency across individual requests, including retrieval and other application steps. A single average can conceal long waits or expensive exception handling.
Include the human review burden. A system that produces more outputs may still create additional work if reviewers have to inspect every response closely. Decide which tasks can proceed automatically and which require approval.
Turn the result into an implementation decision
Write a short decision record that names the task, the candidates, the observed failures and the reason for the selected approach. Include what would cause the team to revisit it, such as a source-data change or a new class of errors.
Octonyx's AI development service covers data, model and evaluation work. If the application also needs connected business workflows, the AI automation service covers that integration layer. You can find related material in resources.
Scope an AI evaluation with Octonyx. Bring representative tasks, examples of unacceptable behavior and the data sources the application is permitted to use. Those inputs make the architecture discussion concrete.


