Crack your next interview in 2 weeks — cohort starts Jul 27 — Join free →

The Question You'll Be Asked

"Walk me through how RAG works and when you'd choose it over fine-tuning."

This is the core interview question for retrieval-augmented systems. Interviewers check for all 5 beats below — missing one draws a follow-up probe, missing two reads as "has only read about RAG, never built one."

5 Beats Interviewers Listen For

Miss one and they probe.

  1. What RAG does — grounds responses in your own data by retrieving at query time, instead of relying on training memory
  2. The pipeline — chunk → embed → store → retrieve → augment → generate
  3. Why it beats fine-tuning for dynamic/private data — no retraining, data stays current
  4. Key failure modes — chunk size, retrieval quality, context overflow, stale embeddings
  5. When fine-tuning wins instead — changing model behavior/style, not what it knows

The Model Answer

"For frequently updated internal API docs, I'd choose RAG over fine-tuning — weekly retraining would be prohibitively expensive. I'd chunk the docs at around 400 tokens with 50-token overlap, embed each chunk, and store them in a vector store. At query time, I'd embed the question, retrieve the top-3 most similar chunks, inject them into the prompt with a strict 'answer only from context' instruction, and generate the response. The main failure mode to watch is stale embeddings — any document update needs immediate re-indexing. I'd revisit fine-tuning only if I needed to change the model's writing style, not just its knowledge."

Your version doesn't have to match word-for-word — all five beats must be present.

Say This, Not That

Say

  • "Chunk, embed, store, retrieve, augment, generate"
  • "Cosine similarity — direction, not magnitude"
  • "Answer only from context, or say I don't know"
  • "Stale embeddings — re-index on document update"

Avoid

  • "RAG trains the model on your documents" (it doesn't — no weight change)
  • "Always use RAG, it's newer and better" (no decision rule named)
  • "RAG is keyword search" (it retrieves by meaning, not keywords)
  • Skipping failure modes — that's the tell you haven't built one