Agentic RAG Interview Questions — AI Engineering
Reviewed by Mark Dickie · Last updated
Agentic RAG is a retrieval-augmented generation pattern where an LLM agent decides what to retrieve, when to retrieve, and how many rounds of retrieval to run before answering. For an AI engineering interview you should know how agentic RAG extends standard RAG with a reasoning loop, what failure modes it introduces (over-retrieval, tool-call errors, context window exhaustion), and how to evaluate the full pipeline end to end. Expect questions on query planning, tool selection, multi-hop retrieval, re-ranking, and tracing with frameworks like LangGraph or LlamaIndex.
The core shift from naive RAG to agentic RAG is the decision-making loop: the model inspects intermediate results and picks the next action rather than running a fixed retrieve-then-generate sequence.
| Concept | Naive RAG | Agentic RAG |
|---|---|---|
| Retrieval trigger | Every query, one shot | Agent decides if and when to retrieve |
| Query formulation | User query passed through unchanged | Agent rewrites, decomposes, or expands the query |
| Iterations | Single retrieve → generate | Multiple retrieve steps, each informed by prior results |
| Tool use | Vector store only | Vector store plus structured tools (SQL, APIs, calculators) |
| Termination | Generate after first retrieval | Agent stops when it judges it has enough context |
What does an agentic RAG interview test?
Interviewers want to see whether you can design a retrieval system that reasons about its own gaps rather than blindly embedding and returning chunks. You will likely be asked to trace through a multi-hop question, explain where a retrieval agent can go wrong, and propose an evaluation strategy that judges both the retrieval steps and the final answer.
- Can you describe the agent loop (observe → reason → act → observe) and map it onto a concrete retrieval workflow?
- How do you decide between single-step retrieval, query decomposition, and iterative multi-hop retrieval for a given question?
- What re-ranking or filtering step do you apply after retrieval, and why does the agent need it?
- How do you evaluate an agentic RAG pipeline when the number of retrieval steps varies per query?
- How do you prevent the agent from retrieving redundant or low-value chunks across iterations?
- What tracing or observability do you add so you can debug a wrong answer caused by a bad retrieval step rather than a bad generation?
How is agentic RAG evaluated differently from standard RAG?
Because the agent takes a variable number of steps, evaluation has to cover the trajectory, not just the final answer. Context relevance and faithfulness metrics from frameworks like RAGAS or TruLens still apply, but you also need step-level traces that show whether each retrieval call moved the agent closer to a correct answer or wasted a turn. A strong answer names both answer-level metrics (faithfulness, answer relevance) and process-level signals (retrieval precision per hop, number of tool calls, redundancy across iterations).
Key facts
- Tarmac has 27 AI Engineering interview questions on this topic, 10 of them on this page, at difficulty 3–5 of 5.
- Tarmac tracked 4,175 job postings asking for AI Engineering in August 2026.
- Roles asking for AI Engineering advertise a median base salary of US$180,000, across 757 job postings as of August 2026.
- Tarmac last reviewed these AI Engineering interview questions on 31 August 2026.
At a glance
| Questions | 10 shown · 27 in the bank |
|---|---|
| Difficulty | 3–5 of 5 |
| Formats | True / false, Fill in the blank, Flashcard, Multiple choice, Multiple answer, Short answer, Ordering, Design exercise |
What you'll review
- agentic rag
- tool calling
- agent loops
Practice questions
Try one before you open the answer. Pick an option and press Check; it's marked on the spot.
AI Engineering/rag/agentic-rag
In an agentic RAG system, the agent must perform at least one retrieval before it is allowed to answer.#
Options
Show answer
False. A defining property of agentic RAG is that retrieval is a tool the agent chooses to call, not a mandatory first step. For a question needing no external knowledge — small talk, pure reasoning, or something already in the conversation — a well-designed agent answers directly and skips retrieval, avoiding a wasted round-trip and irrelevant passages that can introduce errors. Classic retrieve-then-generate always retrieves once; making retrieval optional and repeatable is what agentic adds.
A defining property of agentic RAG is that retrieval is a tool the agent chooses to call, not a mandatory first step. For a question needing no external knowledge — small talk, a pure arithmetic/reasoning task, or something already present in the conversation — a well-designed agent answers directly and skips retrieval. That avoids a wasted round-trip and, more importantly, avoids stuffing irrelevant retrieved passages into context (which can introduce errors). The classic retrieve-then-generate pipeline always retrieves exactly once; making retrieval optional, model-controlled, and repeatable is precisely what 'agentic' adds — the agent can retrieve zero times, once, or several times.
AI Engineering/agents/tool-calling
When an LLM needs to call an external function, the provider typically returns a special _____ message (not streamed text) containing the tool name and arguments, which the application executes before passing the result back to the model in a _____ message.#
Show answer
When an LLM needs to call an external function, the provider typically returns a special tool_call message (not streamed text) containing the tool name and arguments, which the application executes before passing the result back to the model in a tool message.
Tool/function calling works as a two-turn protocol: the model emits a structured tool_call (not prose), the host runs the function, and the result is injected back to the model. Providers name that result message differently — OpenAI uses a tool role message, while Anthropic returns a tool_result content block inside the user turn — but the protocol is identical. This separation keeps execution outside the model—the model only decides what to call and with what arguments, never running the code itself. Validating those arguments against a schema before execution is a key safety guard.
AI Engineering/rag/agentic-rag
What is agentic RAG, and when would you choose it over a classic retrieve-then-generate pipeline?#
Show answer
Agentic RAG turns retrieval into a tool an LLM agent controls rather than a fixed pipeline step. The agent decides whether to retrieve, what query to issue (reformulating or decomposing it), can retrieve iteratively for multi-hop questions, route across multiple sources, and judge sufficiency before answering — re-querying when the context falls short. Choose it for multi-hop, ambiguous, or multi-source questions where one static top-k retrieval is inadequate. Avoid it for simple single-fact lookups: the extra LLM calls add latency, cost, and non-determinism with no accuracy gain. Rule of thumb: match the retrieval architecture to query complexity.
Classic RAG always retrieves once; agentic RAG makes retrieval a decision the model takes inside an agent loop. The upside is adaptivity on hard queries; the downside is more round-trips, so it's a deliberate trade, not a free upgrade.
AI Engineering/rag/agentic-rag
What most fundamentally distinguishes agentic RAG from a classic 'retrieve-then-generate' pipeline?#
Options
Show answer
In agentic RAG, retrieval becomes a tool an LLM agent decides whether, when, and how to call — reformulating queries and retrieving iteratively — rather than one fixed retrieval that always runs before generation. Classic RAG fires exactly one retrieval per query, then generates. Agentic RAG instead lets the agent invoke retrieval zero, one, or many times, decompose multi-hop questions, and re-query when context is insufficient. It is not about memorizing the corpus, streaming, or a bigger embedding model.
Classic RAG is a static pipeline: every query triggers exactly one retrieval, the top-k chunks are stuffed into the prompt, and the model generates. Agentic RAG puts retrieval under the model's control (b) — retrieval (often across several indexes/tools) becomes something the agent can invoke zero, one, or many times, formulating and reformulating the query, decomposing multi-hop questions, judging whether the retrieved context is sufficient and re-querying if not, then deciding when to stop and answer. It is not about memorizing the corpus into weights (a), streaming (c), or a bigger embedding model (d). The cost of the flexibility is more LLM calls — higher latency, cost, and non-determinism — so it pays off on multi-hop or ambiguous queries rather than simple single-fact lookups.
AI Engineering/rag/agentic-rag
A user asks: "Compare the pricing model and SLA of our enterprise tier with those of Competitor X." A classic single-shot RAG retrieves top-k chunks for this query and returns a confused, incomplete answer. An agentic RAG pipeline handles it correctly. What does the agent most likely do differently?#
Options
Show answer
The agent decomposes the question into sub-queries — pricing and SLA for our tier, and pricing and SLA for Competitor X — retrieves separately for each, then synthesizes a comparative answer from the combined context. A single embedding of the composite query averages both needs and under-serves both. A larger embedding model only helps marginally, raising top_k to 50 adds noise without guaranteeing balanced coverage, and fine-tuning is wrong for changing competitor data and cannot cite sources.
The query contains two distinct information needs — our tier's pricing/SLA and Competitor X's pricing/SLA — that likely live in different documents. A single embedding of the composite query produces a vector that averages both needs, which means retrieval tends to under-serve both: the top-k chunks satisfy neither sub-question well. An agentic retriever recognizes this (via a planning LLM step or a query-decomposition tool) and fires separate retrievals: one for each sub-question, potentially against different indexes (internal docs vs. a competitor intelligence store), then passes the combined context to the generator for a proper comparative answer (c). A better embedding model (a) helps marginally but cannot fix the fundamental issue that one vector is trying to do two jobs. Raising top_k to 50 (b) adds noise from irrelevant chunks and inflates cost without guaranteeing that both sub-topics are represented proportionally. Fine-tuning (d) is the wrong tool for frequently-changing competitor data and still cannot produce real-time citations.
AI Engineering/rag/agentic-rag
Agentic RAG (retrieval-as-tools driven by an agent loop) costs extra LLM calls and latency over a single static retrieval. In which situations does that extra cost typically pay off? Select all that apply.#
Options
Pick every one that applies.
Show answer
The extra cost pays off on multi-hop questions that need chaining several lookups, ambiguous queries that benefit from the model reformulating or decomposing them before searching, routing across several distinct knowledge sources where the agent must choose which index to query, and letting the agent skip retrieval entirely when no external knowledge is needed. Where it does not pay is a high-throughput FAQ bot doing simple single-fact lookups that one top-k retrieval already nails — there the extra turns add cost for no accuracy gain.
Agentic RAG's value is deciding about retrieval. Multi-hop questions (a) need the iterative retrieve→read→retrieve loop a single-shot pipeline cannot do. Ambiguous queries (b) benefit from query reformulation/decomposition before searching. Multiple sources (c) require a routing decision the agent makes by choosing a tool. Skipping retrieval when none is needed (e) avoids a wasted round-trip and — more importantly — avoids injecting irrelevant passages that can introduce errors. The case where it does not pay (d) is the simple single-fact lookup a static top-k already nails: there the extra agent turns add latency, cost, and non-determinism for no accuracy gain. Match the retrieval architecture to query complexity.
AI Engineering/rag/agentic-rag
An agentic RAG system is producing unreliable answers in production. Which of the following are known failure modes specific to agentic RAG (beyond ordinary single-shot RAG)? Select all that apply.#
Options
Pick every one that applies.
Show answer
The agentic-specific failure modes are compounding retrieval errors (an early wrong retrieval steers later ones off-track), runaway loops (the agent keeps retrieving without converging), tool over-calling (it retrieves for every sub-question even when context already has the answer), and latency amplification (each turn adds an LLM call, so a multi-hop query is several times slower). The claim that the context window can never be large enough is false: modern large-context models handle multi-hop results, and window size is a solvable constraint.
Agentic RAG iterates retrieval, which introduces failure modes a single-shot pipeline cannot have. Compounding errors (a) occur because a bad first retrieval shapes the query the agent issues next, snowballing into a completely off-track trajectory. Runaway loops (b) happen when the agent's stopping condition is absent or misconfigured, triggering repeated retrievals at cost with no answer produced. Tool over-calling (c) wastes LLM calls and latency when the answer is already in context but the agent issues another retrieval anyway — often diagnosed by tracing tool-call sequences. Latency amplification (e) is intrinsic: each reasoning turn + retrieval round-trip stacks, and a 4-hop question can be 4× slower than a single pass. The claim that the context window is never large enough (d) is false — modern large-context models handle multi-hop results comfortably, and window size is a solvable engineering constraint, not an inherent agentic failure mode.
AI Engineering/rag/agentic-rag
What does 'agentic RAG' add over a classic retrieve-then-generate pipeline, and what does that flexibility cost?#
Show answer
Agentic RAG makes retrieval a tool that an LLM agent controls rather than a fixed first step. The agent can decide whether to retrieve at all, reformulate or decompose the query, retrieve iteratively for multi-hop questions, choose among multiple sources or indexes, and judge whether the retrieved context is sufficient before answering — re-querying when it is not. That handles ambiguous and multi-hop queries a single static top-k retrieval gets wrong. The cost is more LLM calls per question, so higher latency and token cost, more non-determinism, and harder evaluation and tracing; it can also loop or over-retrieve. So you reach for it when query complexity justifies the overhead, and keep static RAG for simple single-fact lookups.
The win is model-controlled, iterative, multi-source retrieval that adapts to the query — deciding whether to retrieve, reformulating, decomposing, and re-querying until the context is sufficient. The price is extra LLM round-trips: latency, token cost, non-determinism, and harder eval/tracing, with a risk of looping. Match the architecture to query complexity; static retrieve-then-generate stays the right default for simple lookups.
AI Engineering/rag/agentic-rag
A user asks an agentic RAG assistant a multi-hop question. Order one pass of the agent's loop, from receiving the question to producing a grounded answer.#
Put these in order
Show answer
The agentic RAG loop runs one pass in this order:
- The agent decides retrieval is needed and formulates a search query as a tool call
- The retrieval tool runs and returns candidate passages
- The agent reads the passages and judges whether they are sufficient to answer
- Finding a gap, the agent issues a follow-up retrieval with a refined query
- With enough grounded evidence gathered, the agent writes the final answer
The loop is decide → retrieve → assess → (re-retrieve) → answer. The agent first chooses to retrieve and formulates a query as a tool call (a); the tool returns candidates (b); the agent evaluates whether they are sufficient (c) — the step a static pipeline lacks entirely; on finding a gap it reformulates and retrieves again (d), the iterative multi-hop behavior; and only once the evidence is adequate does it generate the grounded answer (e). Real agents may repeat the retrieve→assess sub-loop several times; the defining contrast with static retrieve-then-generate is the assess-and-decide step that can trigger another retrieval.
AI Engineering/agents/agent-loops
A product team wants a research assistant that answers questions like "how do our three biggest competitors price their enterprise tier, and how has that moved this year?" It searches the web, reads pages, and writes a sourced summary. They have proposed a planner agent, three researcher sub-agents and a synthesiser. Argue for or against that architecture, then design what you would actually build — covering delegation, budgets, untrusted page content, and how a wrong answer gets diagnosed.#
Show answer
The proposed shape is roughly right here, for one reason: researching three competitors is genuinely independent work, so three sub-agents run concurrently and wall-clock time falls to about the slowest one instead of the sum. The second benefit is context isolation — each researcher may read a dozen pages and hand back a paragraph, and no single context has to hold thirty pages. I would drop the separate planner: with a fixed set of competitors the fan-out is known, so ordinary code splits the work and there is no reason to pay a model to decide something already determined.
Each researcher gets read-only tools — search and fetch, nothing else — and returns findings with source URLs, never its transcript. That isolation is the whole point of delegating; splicing sub-agent history into the parent would recreate the context problem the design exists to avoid.
Budget is the part the proposal gets wrong. Five agents at 20 steps each is not 20 steps of spend, it is up to a hundred, and because each iteration re-sends its own transcript the late ones cost far more than the early ones. So I carry one token budget for the whole question, decrement it as each researcher spends, and stop delegating when it runs low. Everything is tagged with a run id so cost rolls up per user question rather than per API call.
Fetched pages are attacker-influenced text and go into tool results, never the system prompt. Read-only researchers mean a hijacked one has no damaging action available — the worst case is a bad finding, not an outbound side effect. I would also treat each researcher's summary as untrusted where it re-enters the parent, since injected instructions can be carried forward in a summary.
Source URLs travel with every claim through synthesis, and a check confirms each statement in the final answer traces to a retrieved page. A competitor with no findable public pricing is reported as not found rather than inferred, because a confident guess is worse here than a gap.
The trace spans parent and sub-agents under the shared run id: every search, every page fetched, and which source produced each claim. When someone disputes the 12% figure a week later, I open the run, find the claim, and land on the page it came from.
The main tradeoff is freshness against cost — re-running research per question is expensive and pricing pages move slowly, so I would cache findings per competitor with a short expiry and let the loop refresh only what is stale.
This deliberately hands the candidate an architecture rather than a blank page, because accepting a proposed design uncritically is the failure mode worth detecting — and so is rejecting multi-agent reflexively after hearing it is usually overkill. The task genuinely has independent sub-work, so the right answer engages: keep the fan-out, drop the planner, since a known competitor list needs no model to decide it. The budget probe is the strongest discriminator, because per-agent caps feel like control and are not — five agents at twenty steps is a hundred steps of worst-case spend, at rising per-step cost, with no cap violated and nothing to alert on. The injection probe tests whether the candidate scopes authority rather than trusting instructions; read-only researchers make it structurally boring, which is the correct answer. And the citation and trace criteria are what separate a demo from something a team would actually rely on: without a path from a claim back to the page it came from, nobody can ever check the thing the product exists to produce.
Related interview questions
Job market
See ai-engineering salaries and hiring demand from live job postings.
The other 17 questions
This page shows 10 and marks what you pick. That's as far as a page can go. A free account opens the other 17 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.
Free · the whole bank · 100 marked answers per 30 days · written feedback on the paid plan