Skip to content
AgenticAIWiki
  1. Learn
  2. Part 5
  3. 29. Fine-tuning
  4. 29.7

Lesson 29.7 · 7 of 9 · 7 min read · Reviewed 24 Nov 2026

Lab: write a decision record for three use cases

By the end, you can

  • Write a decision record choosing prompting, RAG or fine-tuning for a use case.
  • Justify each choice with a baseline score, a target and the costs you take on.

The task

You will write one short decision record for each of three use cases, choosing prompting, retrieval (RAGRetrieval-augmented generation (RAG): Retrieving relevant documents at request time and adding them to the prompt so the answer is grounded in them.) or fine-tuningFine-tuning: Continuing to train a model on your own examples to change its behaviour or specialise it.. The point is not to guess the answer. It is to show the evidence that supports it, in a form someone can review in six months when a new base model ships.

The template

# DR-012: <use case>
Status: accepted            Date: <date>      Revisit: <trigger>
Problem:   what fails today, in one or two sentences
Options:   prompting / RAG / fine-tuning (what was tried, briefly)
Evidence:  eval set <name, size>; baseline <score>; target <score>
Decision:  <choice>, because <reason tied to the evidence>
Costs:     data, upkeep, hosting, re-tuning for new bases

Decision records come from software architecture practice. Keep each one under a page.

Three use cases

A. Product Q&A bot. Customers ask about plans and limits. The catalogue changes weekly. Today the bot invents limits for new plans.

B. Ticket triage. Classify 2 million tickets a month into 14 queues. A large model with a careful prompt reaches 93% accuracy, but cost and latencyLatency: The time from sending a request until you get the response, or until the first token arrives when streaming. are too high for the volume.

C. Brand voice drafts. Marketing wants product blurbs in a distinctive house style. A prompt with five examples scores 3.1 out of 5 on the style rubricRubric: A written set of criteria and score levels that a grader applies to each output.; the team wants 4.

A worked record for case A

# DR-012: Product Q&A bot
Status: accepted   Revisit: if retrieval recall@5 drops below 0.85
Problem:   answers about new plans are invented; facts change weekly
Options:   prompt "be careful" (tried); RAG over the catalogue; fine-tune weekly
Evidence:  eval "plans-qa", 180 cases; prompt only 0.58 correct;
           RAG 0.91 correct, recall@5 0.93; target 0.90
Decision:  RAG, because the gap is missing, changing facts (29.1)
Costs:     re-index on each catalogue change; retrieval evals in CI

Notice what it doesn’t do: it doesn’t fine-tune on the catalogue. Tuning would be stale by next week and can’t cite sources.

Hints for B and C

  • B is a narrow, very high-volume behaviour with a strong baseline. A small fine-tuned classifier is a natural candidate. Your evidence should compare it with the large-model baseline on the same held-out tickets, and the record should include cost and latency per ticket as ratios, not just accuracy.
  • C is a style gap left after prompting. Before choosing tuning, try more and better examples and a sharper rubric. If you do tune, state where the training examples come from, and add a check that the model still refuses unsafe requests (29.5).

When you are done

Each record should let a stranger answer three questions: what did we choose, what number convinced us, and what would make us change our mind. If a record can’t answer the second, the decision isn’t ready.

Common mistakes

  • Choosing fine-tuning for facts that change.
  • Leaving out the baseline, so “better” has nothing to be better than.
  • No revisit trigger, so the choice is never re-examined when a stronger base model or cheaper option appears.
  • Mixing several decisions in one record. One use case, one record.

Key points

  • A decision record states the problem, the options tried, the evidence, the choice and when to revisit it.
  • Decide per use case: knowledge gaps point to retrieval, behaviour gaps left after prompting point to tuning.
  • Every record names a baseline score, a target score and the eval that measured them.
  • Write down the upkeep you accept, such as re-tuning for new base models, so the choice can be reviewed later.
Hands-on labRuns in the Playground

Write decision records for three use cases

Produce a short, reviewable decision record for each of three use cases, choosing prompting, RAG or fine-tuning from the evidence.

You will have: Three printed decision records in the lesson's template, each with a baseline, a target, a decision, its costs and a revisit trigger.

Steps

  1. Fill in the evidence for each use case: eval name, size, baseline score and target.
  2. Write a decide function that maps the evidence to a choice and a reason.
  3. Write a render function that prints the record in the template from the lesson.
  4. Generate records DR-012 to DR-014 for the product Q&A bot, ticket triage and brand voice.
  5. Read each record and check that a stranger could see what was chosen, what number convinced you and what would change your mind.

Done when

  • Three records print, numbered DR-012 to DR-014.
  • The product Q&A record chooses RAG; ticket triage chooses a small tuned model.
  • Every record has Evidence and Revisit lines.

Open in the Playground No API key needed.

Starter code (Python)
USE_CASES = [
    {"name": "Product Q&A bot", "gap": "changing facts", "eval": "plans-qa, 180 cases", "baseline": 0.58, "best_other": ("RAG", 0.91), "target": 0.90},
    {"name": "Ticket triage", "gap": "cost at volume", "eval": "triage-holdout, 2,000 tickets", "baseline": 0.93, "best_other": ("small tuned model", 0.94), "target": 0.92},
    {"name": "Brand voice drafts", "gap": "style after prompting", "eval": "voice-rubric, 120 briefs", "baseline": 3.1, "best_other": ("ten curated examples", 3.6), "target": 4.0},
]

def decide(uc):
    # TODO: return (decision, reason, costs, revisit)
    return "TODO", "", "", ""

def render(n, uc):
    decision, reason, costs, revisit = decide(uc)
    # TODO: print the full template: Status, Problem, Evidence, Decision, Costs, Revisit
    print(f"# DR-{n:03d}: {uc['name']}")

for i, uc in enumerate(USE_CASES):
    render(12 + i, uc)
Show a solution
USE_CASES = [
    {"name": "Product Q&A bot", "gap": "changing facts", "eval": "plans-qa, 180 cases", "baseline": 0.58, "best_other": ("RAG", 0.91), "target": 0.90},
    {"name": "Ticket triage", "gap": "cost at volume", "eval": "triage-holdout, 2,000 tickets", "baseline": 0.93, "best_other": ("small tuned model", 0.94), "target": 0.92},
    {"name": "Brand voice drafts", "gap": "style after prompting", "eval": "voice-rubric, 120 briefs", "baseline": 3.1, "best_other": ("ten curated examples", 3.6), "target": 4.0},
]

def decide(uc):
    option, score = uc["best_other"]
    if uc["gap"] == "changing facts":
        return "RAG", f"facts change weekly; RAG reached {score} vs target {uc['target']}", "re-index on each change; retrieval evals in CI", "recall@5 drops below 0.85"
    if uc["gap"] == "cost at volume":
        return "Fine-tune a small model", f"matches quality ({score} vs {uc['baseline']}) at a fraction of the cost per ticket", "training data upkeep; re-tune for new bases", "a new base model or a 2-point accuracy drop"
    if score >= uc["target"]:
        return option, f"reached {score} without tuning", "keep examples current", "rubric scores fall"
    return "Try tuning after one more prompt round", f"best so far {score} vs target {uc['target']}; tune only if the next round fails", "a style dataset of 500+ approved blurbs; safety checks", "after the next prompt round"

def render(n, uc):
    decision, reason, costs, revisit = decide(uc)
    print(f"# DR-{n:03d}: {uc['name']}")
    print("Status:   proposed")
    print(f"Problem:  {uc['gap']}")
    print(f"Evidence: eval {uc['eval']}; baseline {uc['baseline']}; best other {uc['best_other'][0]} {uc['best_other'][1]}; target {uc['target']}")
    print(f"Decision: {decision}, because {reason}")
    print(f"Costs:    {costs}")
    print(f"Revisit:  {revisit}")
    print()

for i, uc in enumerate(USE_CASES):
    render(12 + i, uc)
Quick checkA decision record says "Fine-tune, because it will be better." What is the most important thing missing?
How sure are you?
Pick an answer and how sure you are