For a new feature that answers user questions from your company's internal documentation, how would you decide between prompting a base LLM, retrieval-augmented generation, and fine-tuning?

technical-conceptual · Mid level · data-ml

What the interviewer is really asking

Assesses whether the candidate can choose an LLM adaptation strategy from the actual requirement — freshness of knowledge, grounding/citation needs, and cost — rather than defaulting to fine-tuning, and understands that RAG and fine-tuning solve different problems.

What to say

What to avoid

Example answers

Strong: For an internal support assistant over docs that changed weekly, I built RAG first: chunked the docs, embedded them, retrieved the top passages per query, and grounded the answer with citations — when a doc changed I just re-indexed it, no retraining, and hallucinated answers dropped sharply because the model quoted retrieved text. I held fine-tuning in reserve only for output format.

Weak: I'd fine-tune the model on all our internal documents so it knows our content — that's the most thorough way to make it an expert on our domain.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.