Compare single-shot RAG with agentic RAG. When does retrieval-as-a-tool win?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Single-shot: fixed pipeline - rewrite, retrieve once, rerank, generate. One retrieval decision made before the model sees any evidence. Agentic: retrieval is a tool the model calls in a loop - it searches, reads results, notices gaps, reformulates, searches again (possibly across different tools/corpora), and answers when satisfied. The model dynamically controls query formulation, search count, and stopping.
Full worked answer with diagram
Single-shot: fixed pipeline - rewrite, retrieve once, rerank, generate. One retrieval decision made before the model sees any evidence. Agentic: retrieval is a tool the model calls in a loop - it searches, reads results, notices gaps, reformulates, searches again (possibly across different tools/corpora), and answers when satisfied. The model dynamically controls query formulation, search count, and stopping.
Agentic wins when the retrieval need is not predictable from the query alone: multi-hop questions where hop 2's query depends on hop 1's answer ("who manages the team that owns the service behind this error?"); exploratory/research tasks; heterogeneous sources requiring routing decisions mid-task; and recovery - when the first search whiffs, a loop can detect "these results don't answer the question" and pivot, while single-shot ships the whiff straight into the prompt. With strong tool-use models (the 2025+ generation), this pattern also subsumes conversational query rewriting: the model writes its own queries from full context. Deep-research products are this pattern pushed to dozens of searches.
Single-shot wins on latency, cost, and predictability: one model call versus 3-10+; ~1-3s versus 10s - minutes; a debuggable pipeline with stage metrics versus a trajectory you have to trace; bounded per-query cost versus a model that can decide to search fifteen times. For high-QPS product surfaces (support search, docs Q&A) where most queries are one-hop, single-shot with good hybrid retrieval + reranking remains the right architecture.
The production pattern is a router: classify (or let a cheap model decide) easy vs hard; easy queries go through the fixed pipeline, hard ones get the loop with a search-count budget and a wall-clock cap. Report per-answer telemetry (searches issued, tokens burned) because agentic cost variance is real. Also note the quality subtlety: agentic RAG's failure mode isn't retrieval misses but premature stopping - the model satisficing after one mediocre search - which you counter with explicit instructions/budgets and by evaluating end-to-end on multi-hop golden sets.
Worth sketching. The budget arrow is what stops this reading as an unbounded loop, and the router branch is where the cost argument lives.
flowchart TD
Q["Query"] --> R{"Router: one-hop<br/>or exploratory?"}
R -->|"one-hop"| F["Fixed pipeline:<br/>retrieve, rerank, generate"]
R -->|"exploratory"| A["Model writes<br/>a search query"]
A --> S["Search tool"]
S --> J{"Enough evidence<br/>to answer?"}
J -->|"no, budget remaining"| A
J -->|"no, budget or clock spent"| ST["Answer with what it has,<br/>or abstain"]
J -->|"yes"| G["Generate with citations"]
What a good answer covers
- Single-shot: fixed pipeline - rewrite, retrieve once, rerank, generate
- One retrieval decision made before the model sees any evidence
- Agentic: retrieval is a tool the model calls in a loop - it searches, reads results, notices gaps,…
- The model dynamically controls query formulation, search count, and stopping
- Agentic wins when the retrieval need is not predictable from the query alone
Key terms: Single-shot · Agentic · latency, cost, and predictability · router · premature stopping
In the glossary: Query rewriting · Reranking · Router · Agentic RAG · RAG · Golden set
Interviewer follow-ups to expect
How do you evaluate an agentic RAG system where every run takes a different trajectory?
What guardrails cap cost when the model controls search count?
How does MCP change how you'd expose retrieval tools to the model?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep