Retrieve on every turn, or give the agent a search tool?

L2 · PractitionerTrade-off~8 minMemory, context & RAG

Your assistant currently retrieves 5 chunks from the knowledge base before every model call. Someone proposes making retrieval a tool the agent calls when it decides to. What are the trade-offs, and which would you choose for a support agent?

Answer it out loud or on paper first. Then open the short answer.

Short answer

Always-retrieve is simple, predictable and never forgets to look, but it retrieves for messages that don't need it ("thanks!"), uses the raw message as the query, and can't search again when the first results are poor. Retrieval as a tool lets the agent write good queries, search several times and combine sources, at the cost of extra calls and the risk that it answers from memory without searching. For support, I'd use the tool with guardrails: instructions and a check that factual answers cite retrieved content, plus a forced search on the first turn of a new topic.

Full answer
Retrieve every turnRetrieval as a tool
Query qualityRaw user textModel rewrites, decomposes
Multi-hopOne shotSeveral searches
Irrelevant turnsWasted retrieval, noisy contextSkips
RiskNoise in contextNot searching at all; over-searching
LatencyOne retrieval per turnExtra model round trips
PredictabilityHighLower

Guardrails for the tool version

  • Grounding rule: answers that state product facts must cite retrieved chunks; an output check flags uncited claims.
  • Search budget: a few searches per turn, with repeat detection.
  • Good tool results: titles, snippets, ids and a "no good match" signal so the agent knows when to rephrase or say it doesn't know.
  • Eval both behaviours: questions that need retrieval (did it search?) and ones that don't (did it skip?).

Hybrid

Retrieve a small default set cheaply on each turn and also offer a search tool for deeper queries. Common and effective when latency allows.

Follow-ups

  1. L2. How do you detect "answered without searching"?

    Expected answer

    Trajectory checks in evals (a search must precede a factual answer) and production monitoring of answers with no retrieval call.

  2. L3. When is always-retrieve clearly better?

    Expected answer

    Narrow single-turn Q&A over one corpus, strict latency budgets, or weaker models that under-use tools.

  3. L3. How does this change cost?

    Expected answer

    Fewer retrievals on chit-chat, but extra model calls when the agent searches; measure cost per resolved conversation.

Wrong answers interviewers hear
  • "Tools are always better because the agent is smarter." Agents skip searches and answer from memory; without checks that's worse.
  • "Always retrieve; it's the standard RAG pattern." It can't fix a bad first query or handle multi-hop questions.
  • "Put the whole knowledge base in context." Usually too big, too costly and worse at finding specifics.

Taught in

Improve this answer