Fine-tuning

Use fine-tuning to teach answer style, structure, and judgment from examples.

Fine-tuning is not the same thing as adding documents.

Knowledge teaches facts. Fine-tuning teaches behavior.

Training examples on project canvas
Project canvas where training examples connect to the project model.

Training examples should be reviewed examples of desired behavior. They should not be raw source dumps.

Use fine-tuning when

  • facts are mostly correct but answers feel unlike your team
  • replies need a stable format
  • the assistant should mirror strong example responses
  • similar prompts get inconsistent treatment
  • users need judgment, not only lookup

What belongs in training examples

Each example should show a real input and the answer you would want the assistant to produce.

Good examples include:

  • support questions with final approved replies
  • internal questions with clear policy-based responses
  • before-and-after examples of improved answers
  • edge cases that show when to refuse or escalate

Bad examples include:

  • copied source documents
  • vague prompts with generic answers
  • examples that contradict current policy
  • answers you would not want sent to a user

Fine-tuning does not fix bad sources

If the answer has the wrong facts, fix the knowledge base first.

If the answer has the right facts but bad structure, tone, or judgment, improve examples and fine-tune.

Training workflow

  1. Collect real prompts and approved replies.
  2. Remove examples that contradict current source material.
  3. Review generated examples before training.
  4. Start training from the project model.
  5. Wait for run to finish.
  6. Compare base behavior and project-grounded behavior in Playground.
  7. Keep best prompt set for regression tests before next run.

Run fine-tuning only after the dataset has enough examples to teach a pattern. More bad examples make the assistant worse faster.

Minimum useful dataset

Dataset stateAction
Fewer than 20 examplesKeep testing and collecting
Repeated format visibleFine-tune can help
Contradictory answersClean examples first
Facts still wrongFix knowledge base first
Strong style, weak sourcesAdd or clean source material

Next read

Playground and testing

On this page