How does agentic RAG differ from single shot RAG, and what does putting retrieval inside the loop enable?
Explain the difference between naive single shot RAG and agentic RAG. What capabilities does putting the retrieval step inside the agent loop enable that static retrieval cannot?
Single shot RAG retrieves once up front; agentic RAG makes retrieval a tool the agent calls repeatedly, deciding when and what to fetch as its reasoning unfolds.
Imagine answering a hard question with a library. Single shot RAG is like grabbing the first three books that match your question, then writing your answer using only those, no second trip allowed. If the books are wrong or too vague, you are stuck. Agentic RAG is like a curious researcher. You read one book, notice it mentions an author you need, walk back to the shelf, and pull that author's work too. If your first search was too broad, you go back and search again with better words. You keep fetching, reading, and deciding what to look up next until you actually have what you need. The trade off is that every extra trip to the shelf costs time, so you only do it when one trip is not enough.
Detailed answer & concept explanation~8 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Contrast static single shot retrieval with retrieval as tool call, name the three capabilities the loop unlocks (multi-hop, query rewriting, evidence self-checking), then close with the latency and cost price and the router pattern that decides which path a query takes.
Real products, models, and research that use this idea.
- Perplexity's research mode runs an agentic retrieval loop: it searches, reads, reformulates queries, and searches again before composing a cited answer.
- LangGraph's self-RAG and corrective-RAG templates grade retrieved chunks for relevance and trigger a query rewrite plus re-retrieval when the grade is low.
- LlamaIndex agentic retrievers expose query engines as tools so an agent built on Claude Opus 4.7 or GPT-5.5 can decide which index to hit and how many follow up hops to run.
- Claude Code searches a codebase agentically: it greps, reads a file, then issues new searches based on imports it discovers rather than one fixed embedding lookup.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you decide at request time whether a query should go down the single shot or the agentic path?
QWhat stops an agentic RAG loop from re-retrieving forever on a question its corpus cannot answer?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Pitching agentic RAG as a strict upgrade over single shot RAG. It is not. For one hop questions the loop just adds latency and cost for no accuracy gain.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.