Why does a RAG system fail silently?

A RAG system fails silently because every step can succeed while the answer is wrong: retrieval returns documents, the model returns text, and nothing raises an error.

Barnett et al. (arXiv:2401.05856) list seven failure points from three case studies. The answer was never in the documents, so the model improvised. It was in the index but ranked below the top K. It was retrieved but dropped when documents were consolidated into the context. It was in the context but the model didn’t extract it. The last three are a wrong format, the wrong level of specificity, and an incomplete answer. The paper doesn’t call these silent. That reading is ours: each is a wrong answer from a pipeline whose calls all returned.

The authors conclude that validation is only feasible during operation. Their Table 2 says these systems receive unknown input at runtime and need constant monitoring, and that offline testing needs labelled question and answer pairs. An answer can be faithful to its context and still wrong, and a trace full of successful spans won’t show it.

The paper is an experience report on three case studies, so it doesn’t say how often each failure point occurs.

published

sources

keep reading

More on this.

Try Tessary on Cloud.

free · 10,000 traces a month · 1 GB · 30-day retention · $10 one-time credit for triage and RCA · no credit card