C.W.K.
Stream
Lesson 01 of 07 · published

The Customization Spectrum

~22 min · decision, prompt-engineering, rag

Level 0Observer
0 XP0/43 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

Five techniques, one spectrum

Before you fine-tune anything, place the problem on the spectrum. Each technique trades effort for control, and most projects pick the wrong rung — usually one too high.

TechniqueCostEffortWhen it shines
Prompt engineeringFreeMinutes~90% of practical use cases. Always start here.
Few-shot in contextFreeMinutesConsistent output format, structured replies.
RAGLowDaysModel needs your data or documents that change.
Fine-tuningMediumDays–weeksYou need a behavior — style, format, refusal — to be reliable.
Pre-training from scratchVery highMonthsYou are building a foundation model. Almost no team should be here.

RAG vs fine-tuning, one sentence each

RAG changes what the model knows at query time by injecting fresh context. Fine-tuning changes how the model behaves by adjusting its weights. They are not substitutes — most production systems use both.

The honest decision rule

Before reaching for fine-tuning, force yourself to answer: "What did the strongest prompt I could write get me, and where exactly did it fall short?" If you cannot describe the gap precisely, you are not ready to train. Fine-tuning will not rescue an undefined goal.

Code

Baseline that has to exist before you train·python
from openai import OpenAI

client = OpenAI()
SYSTEM = """You are a JSON-only product-review classifier.
Output: {"sentiment": "positive|negative|mixed", "confidence": 0..1}.
No prose, no markdown."""

def baseline(review: str) -> str:
    r = client.chat.completions.create(
        model="gpt-4.1-mini",
        messages=[
            {"role": "system", "content": SYSTEM},
            {"role": "user", "content": review},
        ],
        response_format={"type": "json_object"},
        temperature=0,
    )
    return r.choices[0].message.content

# Run this against 200 labeled reviews FIRST.
# If it already hits 95%+ format compliance and your tolerated metric,
# do NOT fine-tune. The baseline is the gate.

External links

Exercise

Pick a real task. Write the strongest single prompt you can for it, then evaluate against 50 representative inputs. Record format compliance and task accuracy. Only after that, write a one-paragraph fine-tuning brief: target metric, current metric, the specific gap, and what kind of training data would close it.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.