IntermediateAbout 14 min

    RAG vs Fine-tuning vs Prompting

    Read the full article on Substack

    5 min read.

    Score 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.

    Think of it this way: 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.

    Context windowPromptedited as textRetrieved passagesfetched per queryYour documentsModel weightsfrozenAnswer

    RAG. The model needs fresh or private facts it was not trained on, so fetch them at query time instead of retraining. RAG adds passages from your documents to the context window. The weights stay frozen.

    Check your understanding

    Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.

    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

    Quiz

    20 questions
    Question 1 of 20
    Score: 0

    Which approach best handles knowledge that changes in real time?

    Done with this lesson?

    Sign in free to keep your progress, streak and quiz scores.

    Keep going