InterviewBuddy
All interview questions

What is the difference between fine-tuning and RAG?

Intermediate

Answer

Fine-tuning changes model behavior through training on examples. RAG retrieves external context at request time and passes it to a model.

Explanation

Use RAG for changing knowledge that can be retrieved and cited; use fine-tuning for repeatable behavior or format when prompts alone are insufficient. They can be combined.

Example

RAG updates documents; fine-tuning updates model weights.