Skip to content
AgenticAIWiki

Prompt, then RAG, then fine-tune

Full screen
still shortstill shortQuality gapyour eval says so1. Promptingrules, examples2. Retrievalfacts it lacks3. Fine-tunebehaviour left over

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

  1. 29.1Prompting vs RAG vs fine-tuning5 min read
  2. 29.2Supervised fine-tuning data5 min read
  3. 29.3LoRA and parameter-efficient tuning5 min read
  4. 29.4Preference tuning (DPO and RLHF-style)5 min read
  5. 29.5Evaluating a fine-tuned model5 min read
  6. 29.6Worked example: fine-tuning options on cloud platforms4 min read
  7. 29.7Lab: write a decision record for three use cases7 min read
  8. 29.8Chat templates and dataset formatting6 min read
  9. 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…