RAG · 2026-09-11

A user asks your RAG assistant "how many open tickets do I have right now?" It retrieves stale doc snippets…

A user asks your RAG assistant "how many open tickets do I have right now?" It retrieves stale doc snippets and guesses a number.

  1. AIndex the ticket database as documents and re-embed it every minute
  2. BIncrease top-k so it finds a fresher snippet
  3. CGive the agent a tool that queries the ticket system live instead of retrieving prose
  4. DAdd an instruction telling it never to guess a number and to reply «about the same as last week» when the docs are out of date

Answer: C

Give the agent a tool that queries the ticket system live instead of retrieving prose

Why

A live count is real-time structured state, not knowledge in documents. RAG is the wrong tool here - the agent should call the ticket API. Re-embedding a database every minute is a hack around a missing tool.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path