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

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

This interactive level needs JavaScript. Built by (cybernerdie).