glossary

Context and retrieval

Agentic RAG

Agentic RAG lets the agent decide whether to retrieve, what query to send, and how often to search again, so retrieval is a tool the loop can call, skip, or repeat instead of a single fixed step before the answer.

Abracadabra Team Glossary

How it works

Retrieval is a tool inside the loop. The agent can answer from what it already holds, call the retriever with a query it writes, read the passages, and decide to search again with a narrower question. It can also stop. The program does not promise one fetch and then a final draft. That is why the same user question can produce no search, one search, or several, depending on what the first result contained. The decision is visible in the tool trace, not only in the final paragraph.

The extra freedom is also a new way to fail. The agent can search once with a vague query and never follow the cross-reference it just read. It can search until the step budget ends and never answer. It can skip retrieval for a fact that was never in the prompt. A fixed RAG path would have made the opposite mistake in a predictable place. Agentic RAG moves that choice onto the model, so the trace has to show the queries, not only the answer.

A worked example

A redline that triggers two searches, then stops

A procurement agent reads a supplier redline on a liability clause. The clause says the cap is "as set out in the data processing addendum". The agent searches the contract index for the liability cap, and the top passage is the main services agreement, which points at the addendum and does not state the figure. The agent issues a second query that names the addendum, reads the cap, and answers with that figure and the clause id. It does not search a third time. A fixed path that retrieved once on the word "liability" would have drafted from the services agreement alone and left the figure out. The second query was the agent's decision.

Illustrative example, not a production trace and not a measured result.

What goes wrong

  • The agent searches with the person's wording, gets a near miss, and answers without a follow-up query that the passage itself suggested, even when that passage names the document which holds the figure.
  • The agent calls retrieval on every turn, including small talk and questions already answered by a passage in the thread, and the person waits through searches that cannot help.
  • The agent keeps rewriting the query until the step budget stops the loop, and the person never receives the clause that the second result already contained.

How to measure it

Count retrieval calls per task, including tasks that answered with none, and keep each query beside the passages it returned. Note a follow-up search that a cross-reference made available and that the agent did not issue.

Separate loops that searched until the step limit from tasks that stopped with an answer. After you change the tool guidance, compare task success for that task and cohort, and read the traces that still never fetch.

Further reading

How Abracadabra helps

A restated question after a single vague search, or a session that searches until it is cut off, shows the decision to retrieve going wrong. After that tool guidance changes, compare task success for that task and cohort.

When context is lost, people restate a fact or repeat the request. Abracadabra pins those corrections and repeated intents to the turn. After a change to what the agent keeps, compare task success for that task and cohort with the previous period.

Request access to read this on your own agent.

See it in your own agent's conversations.

Each task, the step where it stops, and the conversations behind every count. Free during early access.