RAG vs Fine-tuning vs Prompting
AI Engineer path · lesson 77 of 124Score the three approaches against your requirements, see which layer of the stack each one changes, compare build/per-call/update costs, and learn how they combine in production.
Key insight
They answer different needs: prompting for general tasks, RAG for fresh/private knowledge, fine-tuning for stable niche behavior with data and tight budgets. Move the sliders — the winner flips because each optimizes a different requirement.
Which lever fixes this?
Match each symptom to the technique that actually addresses it.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
Prompting
Drop items hereRAG
Drop items hereFine-tuning
Drop items hereTest your knowledge
Which approach best handles knowledge that changes in real time?
The short version
Three tools for three jobs: prompting is rephrasing your request, RAG is handing the worker the latest manual, fine-tuning is sending them to a multi-week training course. You pick by what the job actually needs — often all three.
Interview Questions
References & Further Reading
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required