Question presented to candidate: "You are building an LLM feature for our product and the team is split three ways: better prompts, RAG, or fine-tuning. It is 2026, context windows are huge and prompt caching is cheap. How do you decide, and what would make you change your mind?"
What a strong answer should cover:
- Diagnose the failure first: missing or changing knowledge points to retrieval (or, for a small static corpus, simply putting it in a long cached prompt); wrong behaviour (format, tone, a narrow task) that a good prompt cannot fix points to fine-tuning; cost or latency at high volume can justify fine-tuning a smaller model
- Order of moves: prompt engineering with an eval first, then RAG for knowledge, then LoRA fine-tuning for behaviour; production systems often combine them (RAG for facts, a tuned model for format)
- Freshness and governance: RAG updates when a document changes and can cite sources and enforce per-user access; fine-tuned knowledge is a snapshot that goes stale until retrained and cannot be deleted per document
- Worked cost arithmetic: tokens per request ร volume ร price, plus fixed costs (vector store, training and eval runs), and the break-even volume where a tuned small model beats a long prompt; prompt caching moves that break-even a lot
- What changed in 2025-26: long context and caching make "just put it in the prompt" viable for small corpora; fine-tuning availability depends on the provider (OpenAI's docs say its self-serve fine-tuning platform is winding down) while open-weight models plus LoRA remain fully under your control
- Every option is judged by the same eval on your own data, including the cost of maintaining it when the base model changes
Clarifying questions expected:
- What exactly fails today: wrong facts, wrong format or tone, or too slow and expensive?
- How big is the knowledge, how often does it change, and does it need citations or per-user access control?
- What volume do we expect, and do we have labelled examples and an eval set?
Code / implementation expected: Optional โ a cost model with a break-even calculation, or a simulation of what happens to each approach when a fact changes, makes the reasoning concrete.