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.
- AIndex the ticket database as documents and re-embed it every minute
- BIncrease top-k so it finds a fresher snippet
- CGive the agent a tool that queries the ticket system live instead of retrieving prose
- 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 Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path