What each approach does
RAG
Fetches your documents at question time
Fine-tuning
Trains the model on examples to change behavior
Prompt engineering
Rewrites the instructions only
IBM describes RAG and fine-tuning as two ways for companies to get more value out of large language models.
RAG connects the model to your own database of documents. Fine-tuning instead optimizes the model for a specific domain task.
Prompt engineering, the third option, only designs the input: the instructions and questions you give the model. Our short entry on prompt engineering covers the basics.