AnderCorp Academy
Back to AI Lessons
Generative AI advanced 10 min read

Fine-Tuning vs. RAG

Two ways to customize an LLM for your data — and how to choose.

Inspired by learning material from Microsoft

When you want an LLM to work with your knowledge, you usually choose between fine-tuning and retrieval-augmented generation (RAG).

Fine-tuning

You continue training the model on your own examples so it internalizes a style or task.

RAG (Retrieval-Augmented Generation)

You keep the model as-is but retrieve relevant documents at query time and include them in the prompt.

How to choose

Key takeaways