glossary

Context and retrieval

Retrieval failure

Retrieval failure means the passages that contained the needed fact were not fetched into the call, so the model answers from the prompt, from a near miss, or from invention, even when the source document is in the index.

Abracadabra Team Glossary

How it works

The failure is upstream of the prose. The index may contain the page, and the answer can still be wrong, because that page was not among the passages written into the call. The model then does what the prompt allows: it leans on a near miss, on general instructions, or on invention. A later judge that only scores the final sentence cannot see this. Faithfulness to the retrieved text can be high while the retrieved text is the wrong text. The missing passage is the defect.

Causes sit in the query, the chunking, the index, and the cutoff. A question worded as the person asked may not match the heading the corpus uses. A chunk boundary may have cut the rule from its title. A reranker may have had the page and then dropped it below the cutoff. Calling all of that hallucination sends the team to rewrite the system prompt. The trace to keep is the passage ids that were fetched, next to the id a reviewer says was required.

A worked example

A holding-deposit question answered from the pets page

A tenant asks a housing chatbot whether a landlord in England can keep a holding deposit after a reference fails. The index contains a page on holding deposits and a longer page on pets. The retriever returns the pets page, because the previous turn mentioned a dog, and does not return the holding-deposit page. The model writes a confident rule about deposits that is not on the pets page and was not in the prompt. The tenant argues, then pastes the sentence from the council site themselves. The source was indexed the whole time. The call never fetched it. A review that only labels the reply "made up" will send someone to edit tone, and the pets page will still be what the next tenant gets.

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

What goes wrong

  • The required page is in the index and below the cutoff, so the model answers from a nearer but irrelevant passage and sounds specific.
  • The query is the raw user utterance, which shares no tokens with the heading that staff actually search, and the fetch returns an empty or off-topic set.
  • The answer is scored as unfaithful when it is faithful to the wrong passages, and the missing id never appears in the review note. Record the required passage id, not only the prose.

How to measure it

For questions with a known passage, record a miss whenever that id is absent from the fetched set. Keep the fetched ids, the query string, and the person's next message, which often contains the fact the fetch missed.

Separate those misses from replies that had the right passage and misstated it. After you change chunking, query rewriting or the cutoff, compare task success for that task and cohort. Keep a miss apart from a misread.

Further reading

How Abracadabra helps

When the person pastes the missing rule themselves, or repeats the question after an off-topic citation, the fetch did not bring the passage. After retrieval 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.