Fine-tuning

Fine-tuning is training an existing AI model further on your own example inputs and outputs, so it handles your task more consistently than the base model.

Checked 27/11/2026 against 3 sources. Next review 27/05/2027.

Fine-tuning takes a model that is already trained on a broad range of subjects and trains it again on examples of the inputs and outputs you expect in your own application [1]. Google describes it as retraining the base model on your own labelled dataset, which adapts the model's weights to your task [2]. It changes the large language model itself. That is the opposite of RAG and prompt engineering, which leave the model alone and change what you hand it at question time.

Should I try fine-tuning before prompting?

No. Google's advice is to start with prompting to find the best prompt, then move to fine-tuning only if you still need better results or have recurring errors to fix [2]. OpenAI's guide says the same in its own way: the prompt engineering process may be all you need [1].

Prompting is the better fit when you have little labelled data or cannot afford a lengthy training process, and when you want to test an idea quickly [2]. A chatbot that has to quote your fees or opening hours usually needs fresh facts in the prompt, not a retrained model. OpenAI lists private databases and current, up-to-the-minute information as things you put in the prompt because they sit outside the model's training data [1].

What does fine-tuning fix that a good prompt cannot?

OpenAI says fine-tuning can make a model format its responses the same way every time or handle new kinds of input, although it can be time-consuming [1]. Google lists custom syntax, your own instructions and domain rules, and more consistent results [2].

  • You can supply more example inputs and outputs than fit in the context window of one request [1].
  • You can use shorter prompts with fewer examples, which saves on token costs at scale and can lower latency [1][2].
  • You can train on proprietary or sensitive data without putting it in every request [1].
  • You can train a smaller, cheaper, faster model to do one task well when a larger model is not cost-effective [1].

Google also separates full fine-tuning, which updates all of the model's parameters, from parameter-efficient tuning, which it says needs significantly less computing and is more cost effective [2].

What do I need to prepare before fine-tuning?

Labelled examples. Google says fine-tuning works best when you have a sizable dataset, around 100 examples or more [2]. It also says high-quality, well-labelled data beats a large pile of mediocre data, and that your training data should look like what the model will see in production: the same prompts, format and context [2].

Before adding more examples, check where the model actually goes wrong [2]. If it is wrong because it never saw your latest price list, that is private or current information, which OpenAI says belongs in the prompt [1]. A retrieval step supplies it; more examples do not.

Check the provider's current rules too. OpenAI's page says it is winding down its fine-tuning platform: new users cannot access it, and fine-tuned models stay available until their base models are deprecated [1].

Would fine-tuning or RAG suit a Singapore clinic's booking assistant?

An example, with made-up numbers

Say a clinic wants its assistant to answer in a fixed three-line format and to use the clinic's own wording for 40 common questions. It also has a fee list that changes every quarter. The format and wording are a fine-tuning job: collect a few hundred question and reply pairs. The fee list is not. Put the fee list in a document and let RAG fetch it, so a price change is an edit to one file and not a new training run.

ProblemUsual first fix
The model ignores a rule you wroteClearer instructions and examples in the prompt [1][2]
It does not know your private or current factsPut the text in the prompt [1]. Fetching it automatically is what RAG does
It still misses the same format or style after good promptingFine-tune on examples of the right output [1][2]

Questions people ask

Is fine-tuning the same as training a model from scratch?

No. Fine-tuning starts from a model that is already trained across many subjects and adapts it with your examples [1]. Google describes retraining the base model on your labelled dataset to adapt its weights to your task [2].

How many examples do I need to fine-tune a model?

Google's tuning guide suggests thinking of 100 examples or more, and says quality matters more than quantity [2]. Match the examples to the prompts the model will get. Check where it fails before adding more data [2].

Does fine-tuning stop an AI from making things up?

The fine-tuning pages from OpenAI and Google give consistent format, custom rules and shorter prompts as reasons to tune [1][2]. Anthropic's guide to reducing false answers lists prompting techniques such as allowing uncertainty and citing quotes, and says even those do not eliminate the problem [3]. See hallucination.

See also

  • RAG RAG is a method where an AI looks up your own documents first, then writes its answer from what it found, not only from what it learned in training.
  • Prompt engineering Prompt engineering is the practice of writing clear instructions and examples for an AI model so it reliably produces the output you need.
  • Large language model A large language model (LLM) is an AI system trained on huge amounts of text to predict the next piece of text, which lets it write, summarise and answer questions.
  • Hallucination A hallucination is when an AI model states something false as if it were true, such as an invented fact, quote or source.
  • Token A token is the small piece of text, such as a word, part of a word or a punctuation mark, that an AI language model reads and writes.
  • Chatbot A chatbot is a program you talk to by text or voice, which answers questions or helps you finish a task.

References

  1. Optimizing LLM accuracy and fine-tuning (OpenAI API docs), OpenAI. Read 27/11/2026.Fine-tuning can be a time-consuming process, but it can also enable a model to consistently format responses in a certain way or handle novel inputs.
  2. Introduction to tuning (Gemini Enterprise Agent Platform), Google Cloud. Read 27/11/2026.A sizable dataset to train on (think 100 examples or more), which allows the model to deeply learn your task's specifics.
  3. Reduce hallucinations, Anthropic. Read 27/11/2026.Remember, although these techniques significantly reduce hallucinations, they don’t eliminate them entirely.