5 concepts · 10 practice questions
Try the cheap levers first. Better instructions and examples fix most problems of behaviour and format, in minutes. RAG adds knowledge, especially knowledge that changes or must be cited. Fine-tuning changes behaviour: a consistent style or format, a narrow task done reliably by a smaller and cheaper model, or a skill a few examples cannot teach. It is a poor way to add facts: they are slow to update, cannot be cited, and the model can still mix them up. Fine-tune only when an eval shows prompting has hit its ceiling.
def choose_lever(problem):
if problem.needs_fresh_or_private_facts:
return "RAG" # update the index, cite the source
if problem.fixable_with_instructions_or_examples:
return "prompting" # minutes to iterate, no training run
if problem.needs_consistent_behaviour_at_scale:
return "fine-tuning" # style, format, a narrow task on a smaller model
return "build the eval first, then decide"
Sign in to read the rest and take the 10-question test.
Sign in to continue