Skip to main content

Prompting vs RAG vs Fine-tuning — decision framework

A PM asks to fine-tune an LLM on company docs so it knows our product. How do you respond?

Official Reference

Model Answer & Explanation

Push back on fine-tuning for knowledge injection: fine-tuning is static, expensive to refresh, and still hallucinates facts. Use RAG for dynamic, auditable, permission-scoped knowledge with citations. Reach for fine-tuning (or distillation) only after prompting + few-shot + RAG plateau—for strict tone/format adherence, domain-specific tool syntax, or cutting latency/cost on narrow tasks.

Follow-up Interview Question · What is context distillation, and when does it pay off?

Module Context & References

Applied AI & RAG · Popular interview theory Widely asked LLM, retrieval, grounding, agent and evaluation questions
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.