RAG vs fine-tuning: how to add knowledge to an LLM

RAG gives a model knowledge at query time; fine-tuning bakes behavior in during training. They solve different problems — here's how to tell which you need.