Prompt, then RAG, then fine-tune
Swipe to change step
Step 1 of 8. Your eval shows a gap. Before touching the model, try the cheap fixes in order: prompting first, then retrieval, and fine-tuning only for what is left. Quality gap (your eval says so). 1. Prompting (rules, examples), highlighted. 2. Retrieval (facts it lacks), highlighted. 3. Fine-tune (behaviour left over), highlighted. arrow from Quality gap to 1. Prompting. arrow from 1. Prompting to 2. Retrieval, labelled still short. arrow from 2. Retrieval to 3. Fine-tune, labelled still short. a problem moving along e1.
In this chapter
- 29.1Prompting vs RAG vs fine-tuning5 min read
- 29.2Supervised fine-tuning data5 min read
- 29.3LoRA and parameter-efficient tuning5 min read
- 29.4Preference tuning (DPO and RLHF-style)5 min read
- 29.5Evaluating a fine-tuned model5 min read
- 29.6Worked example: fine-tuning options on cloud platforms4 min read
- 29.7Lab: write a decision record for three use cases7 min read
- 29.8Chat templates and dataset formatting6 min read
- 29.9QLoRA training with TRL and Unsloth7 min read
Chapter check
Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.
Loading check…