AI-ENGINEERING
    intermediate

    RAG vs Fine-tuning vs Prompting

    AI Engineer path · lesson 77 of 124
    The idea
    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.
    How to use
    Drag the requirement sliders to match your use-case and watch the fit scores update in real time. Then step through the other tabs to see which layer each approach changes and how all three stack in a production system.
    Your requirements
    Data freshness needed80
    staticreal-time
    Domain specificity60
    generalniche/private
    Labeled training data20
    nonelarge set
    Latency/cost sensitivity40
    relaxedstrict
    Fit score
    Prompting56
    RAG79
    Fine-tuning25
    Recommended: RAG. You need fresh or private knowledge the model wasn’t trained on — retrieve it at query time instead of retraining.

    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?

    Sort

    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 here

    RAG

    Drop items here

    Fine-tuning

    Drop items here
    6 pieces left to place

    Test your knowledge

    20 questions
    Question 1 of 20
    Score: 0

    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

    OpenAI
    Anthropic
    Amazon
    Anthropic
    OpenAI
    OpenAI
    Databricks
    OpenAI
    Meta
    Anthropic

    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