AISim › Chapter 4: Running it for real
Fine-tune it?
Level 18. Your labels, your format, your 40 categories.
Your support triage system sorts tickets into your company's 40 internal categories, in your exact format, and also answers questions from the help centre. Off-the-shelf models keep inventing categories. The large model does a bit better and costs five times as much. Someone says "just fine-tune it". Someone else says "fine-tuning will teach it our docs too".
Goals
- accuracy at least 82%
- cost per 1,000 requests at most $4
Concepts: Fine-tuning, RAG vs fine-tuning, Cost.
Hint
Try a fine-tuned model in the LLM settings. Which size? And what happens to the help-centre questions if you remove retrieval?
What you learn
Prompting, RAG and fine-tuning solve different problems. Fine-tuning teaches behaviour: your labels, your format, your tone. A fine-tuned small model often beats a general large one on a narrow task, at a fraction of the price. But it doesn't reliably teach facts, and facts change, so knowledge still comes from retrieval. Most real systems use both.
More in this chapter
- The 20-page system prompt (Level 16)
- The nightly job ate the day (Level 17)
- Nothing changed. Everything broke. (Level 19)
- Compliance is calling (Level 20)
- Finance wants a word (Chapter 4 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).