Start with the failure you can observe
When a team asks to train a model on company data, find a question that the assistant gets wrong. It may miss an instruction, lack the current policy, or return inconsistent results even with the right information. The failure helps you decide which part to change.
Prompting changes the instructions or examples the model receives. The prompt can specify the reader, response format, and conditions for declining a request or referring it to a person. A few examples show what counts as a good answer. Test the revised prompt with the same model before releasing it.
Retrieval-augmented generation (RAG) supplies information at answer time. The system searches an index of approved documents and sends relevant passages with the question. Lewis et al. described RAG in 2020 as a combination of what a model learned in its parameters and documents available through an index. They identified the provenance and updating of model knowledge as research problems. In a company assistant, retrieval gives you a way to refresh the source material and show where an answer came from.
Fine-tuning adjusts the model's parameters or trains an adapter used with the base model. In supervised fine-tuning you train on examples of the inputs and outputs you want. It can help with a strict format, a classification scheme, a house style, or a narrow task that otherwise needs lengthy instructions. The resulting model cannot identify the current authoritative policy just from its training. Editing a policy document leaves the training result unchanged.
| Approach | What changes | Failures to investigate | How a change reaches users |
|---|---|---|---|
| Prompting | Instructions and examples | Format, tone, skipped steps, refusals | Update the prompt and run the evaluation |
| RAG | Information supplied for the question | Missing or outdated facts, missing sources | Refresh the index and verify that the right version is retrieved |
| Fine-tuning | Parameters or an adapter | Inconsistent behavior on a narrow, repeated task | Train or select a version and evaluate it before deployment |
Use retrieval for current, checkable source information
Price lists, personnel policies, product manuals, contract templates, and procedures all change. Set a target for how quickly a new version needs to reach the assistant. After updating an index, make sure obsolete copies no longer appear and test whether the assistant finds the current version.
A finance or personnel team may need to check the answer before acting. Capture the passages that the system sends to the model and let users follow a reference such as “Leave Policy v4, section 3.2” to the relevant document. Test whether the cited passage supports the answer. A plausible reference alone proves little. Microsoft's guide to customizing language models discusses retrieval for private data and information that the model did not encounter during training.
Prepare the source library before judging retrieval. A folder may contain three copies of the same policy. A scanned file may lack a text layer, and a table pasted as an image may require extraction. Assign document owners, retire old versions, and check what the index reads. The guide to knowledge assistants with citations covers passage boundaries, access control, and displaying the source.
Check which data each approach uses
Prompting starts with clear instructions and a few examples of good and bad results. Apply the production data rules to prompt drafts and test inputs. It is easy to paste sensitive information into a test without checking which service receives it.
Retrieval needs an index of the approved material. When a hosted model generates the answer, send the question and only the passages needed for the task that the user is allowed to see. Check permissions during retrieval, before sending passages to the model. Verify how access changes propagate to the index and any caches, including when an account loses access or a document is removed. Microsoft's document-level access guidance describes why a permission check depends on the permission data being current.
Supervised fine-tuning needs examples of inputs and desired outputs checked by people who know the task. Google Cloud's tuning guide suggests starting with a prompt and gives about 100 labeled examples or more as a planning example. It lists hundreds to thousands as typical for supervised fine-tuning. These figures are guidance. The quality and coverage of examples matter, and different tuning methods need different data.
For hosted training, check where data is processed, how long it is kept, and what the provider can delete. Removing an example from the dataset does not remove what the trained model learned from it. If restricted information was used in error, stop using the affected version and assess deletion and retraining with the data owner and provider. Poor training data can also lower quality, which is one reason to test against a baseline.
Apply the privacy, sector, and contractual requirements that govern the actual data. The company AI use policy guide explains how to define what each tool may receive.
Compare cost and latency on the same workload
A long prompt can increase billed input and response time. For example, compare a one-page prompt with a ten-page version on the same requests. Check whether the provider caches repeated input and whether the larger version improves results enough to justify the measured cost.
Retrieval adds work to build and refresh the index, search it for each question, and send passages to the model. Indexing may include converting text to embeddings. Time the search and count the input tokens separately. Test whether sending fewer or shorter passages affects the answers or citations before reducing what the model receives.
Fine-tuning costs money for training. Some platforms also charge for hosting a custom model. OpenAI's model optimization guide describes how a shorter prompt or a smaller tuned model can reduce cost and latency. Compare the savings on a stable, repeated task with the cost of training, hosting, and retesting. Run the evaluation after any change to the model or its version, including a provider update. Confirm how long the provider will support the underlying model.
Confirm fine-tuning availability for the intended deployment
OpenAI's notice on self-serve fine-tuning lists three milestones. From May 7, 2026, organizations with no previous tuning jobs could no longer create one. From July 2, 2026, organizations that had not run inference on a tuned model in the previous 60 days lost access to new training jobs. December 15, 2026 is the cutoff for all new self-serve jobs. Existing tuned models can run inference until OpenAI retires their base model.
Google Cloud documents supervised fine-tuning, preference tuning, and reinforcement learning fine-tuning for supported Gemini models. Amazon Bedrock's fine-tuning table lists eligible models from families including Amazon Nova, Meta Llama, and Claude 3 Haiku. Check where the selected model can be tuned and run. Verify training, inference, and storage separately against your data location requirements.
If a design depends on a specific hosted model, record the fallback if tuning or inference support ends. With prompts and retrieval, moving to another model still takes work. Test that the new model follows instructions, uses the context, and meets the cost and latency targets before switching.
Evaluate each change with the same questions
Anthropic's prompting guidance starts with a definition of success, a way to measure it, and a first prompt. Apply that sequence before changing instructions, an index, or a model.
For an initial evaluation, assemble 50 to 200 representative questions from tickets, email, or interviews that you have permission to use. Remove unnecessary personal information. Record the expected answer and source, including questions that should be declined or referred to a person and ones whose answers recently changed. Keep a test set separate from examples used to train the model or improve the prompt.
- Prompting. Score format, tone, refusal and referral behavior. Run the set again after a change. A prompt that fixes one case can change another.
- Retrieval. Score search and answer generation separately. First verify that the authorized passage is in the retrieved set. Then check whether the answer follows the text and the reference leads to the right place.
- Fine-tuning. Compare the tuned model against the best prompted base model on examples reserved for testing. Check the task's target measure and related cases that worked before tuning.
Keep the test inputs, expected results, and model versions with the project. Update the expected answer when a source changes, and retain tests for stale versions that should no longer be returned.
What to keep in an evaluation set
- Representative questionsUse examples from authorized tickets, email and interviews.
- Expected answer and sourceWrite the correct result and the section that supports it.
- Out-of-scope questionsInclude cases to decline or pass to a person.
- Recently changed factsCheck that the assistant uses the current version.
- Separate scoresMeasure retrieval, answer fidelity, citation accuracy, and format separately.
Combine approaches when they serve different steps
An internal policy assistant can use a prompt to set the role, format, and referral rule, then retrieve the sections the employee may read. It answers from those sections and cites them. If the material is insufficient, the assistant can say what it could verify and offer to pass the question to the personnel team.
A service team might tune a small model to route incoming messages into 20 categories. The response itself can still use retrieved material. A finance team might tune a model to extract a fixed JSON structure from a free-text expense description. A separate check can validate the structure against the schema. Policy and transaction facts still come from documents or the source system.
Which approach should you try first?
What goes wrong when the assistant answers?
- Facts are missing, outdated or uncitedStart with retrieval from an approved, maintained set of documents.
- Format, tone or refusals are wrongImprove the prompt and examples, then run the evaluation again.
- A narrow repeated task remains slow, costly or inconsistentConsider fine-tuning with a separate test set, if the provider supports it.
- The task is a fixed rule or a record lookupUse a rule, an authorized database query or search.
Choose a starting point for each task
| Task | Start with | Add later if needed | Why |
|---|---|---|---|
| Employee questions about policies | Retrieval and clear instructions | A documented referral when evidence is missing | Policies change and answers need sources |
| Product support from manuals | Retrieval | A tuned classifier for routing | The right passage depends on the product and release |
| Drafting replies in house style | A prompt with examples | Fine-tuning if volume is high and the style is stable | Style can be evaluated from examples of the response |
| Turning free text into structured fields | A prompt with a schema and validation | A smaller tuned model if it reduces total cost | Each field provides a result you can check |
| Customer asks about their order | An authorized call to the order system | A prompt to phrase the response | The current order record provides the answer |
| Comparing contract clauses | Retrieval from the clause library with qualified review | A structured comparison template | Readers need the quoted wording and relevant version |
Use an ordinary query, rule, or search where it answers the question
For “What is the status of order 10482?” check that the user can see the order, then read the status from the order system. For a rule that requires finance approval above a set amount, a rules engine can apply the threshold directly. Adding generated text to the decision adds a place where it can go wrong.
If staff mainly want to locate a document, ordinary search with filters for team, date and type may be enough. Retrieval with a model is useful when a question needs an explanation based on several passages and the reader should be able to open the sources.
Record the failure, identify the part of the system involved, and test the change. Our knowledge search and assistants service starts with the use case, approved material, evaluation, and when to refer a question to a person. The multilingual retrieval guide explains how to test across languages and dialects.
Questions buyers ask
Can fine-tuning teach a model our company policies?
Fine-tuning can teach the model how to handle a policy task, including the format and tone of an answer. Updating a policy document leaves the trained parameters unchanged. Use retrieval from the current policy library when people need the latest rule and a source they can check.
How many examples do we need for fine-tuning?
The number depends on the model, method, and task. Google Cloud uses around 100 well-labeled examples as a planning example and lists hundreds to thousands as typical for supervised fine-tuning. Keep a separate set that you use neither to train the model nor to choose among versions. Compare the tuned model with your best prompted baseline.
Is retrieval more private than fine-tuning?
Privacy depends on what you share, where it is processed, and who can access it. With retrieval you can keep the index under your control and send only authorized passages. With hosted tuning, the provider processes the training set and the trained model may retain information from it. Review the applicable rules, contract and retention terms for either approach.
Can we still fine-tune OpenAI models?
OpenAI lists December 15, 2026 as the cutoff for all new self-serve fine-tuning jobs. Earlier restrictions applied to organizations with no prior jobs or recent inference. Existing tuned models can be used until the underlying base model retires. Google Cloud and Amazon Bedrock list tuning for selected models. Check availability and processing locations before choosing.
Sources
- Lewis et al. (2020), retrieval-augmented generation
- OpenAI API, model optimization
- OpenAI API, fine-tuning wind-down
- Google Cloud, tuning Gemini models
- Amazon Bedrock, supported models and regions for fine-tuning
- Microsoft Learn, customizing language models
- Claude Platform Docs, prompting and evaluation
- Microsoft Learn, document-level access control