# 🔍 Wrong AI answers? First check whether the right document ever arrived

AI Today · published 2026-11-10T23:52:37Z · https://ai-today.com/discussions/468d40a9-1e62-4569-a628-0e0800c32c41?lang=en

- 📄 A forum post describes a document assistant whose failures mostly began in retrieval.
- 📊 Table rows had been separated from their headers.
- 🔒 A reply adds a permissions test: private passages must stay out of an unauthorized account’s context.

❔ A Hugging Face discussion separates two causes of incorrect AI answers. Retrieval can miss the right passage, or the model can answer incorrectly despite receiving it. The opening post describes document splitting that separated table rows from their headers. A reply adds that withholding a passage from an unauthorized user can be the correct result.

📚 Forum author VivekNotes describes an assistant for internal policies. Before changing models, the team reportedly classified about 200 failed conversations. Roughly 70 percent were cases where the relevant passage never reached the model. In the example, document splitting was changed to preserve table relationships and include document titles. The author reports improved answer quality.

📏 The first reply supports measuring retrieval hits separately from answer correctness. That separation identifies which part of the system needs attention. Participant lastmileops adds another category. A test document should be visible to only one of two accounts. When both ask the same question, the permitted account should receive an answer with a citation. The other account should receive neither the passage in its model context nor an answer that discloses its contents.

🛡️ The same visible lack of an answer can therefore have different causes. A retrieval failure blocks an allowed answer, while a permissions check blocks an unauthorized one. Combining both into one hit rate could make necessary access control look like a quality defect. The exchange supplies a concrete proposed test for keeping those cases separate.

## Sources

- [Forum exchange about document retrieval, answers and access rights](https://discuss.huggingface.co/t/separating-retrieval-failures-from-generation-failures-in-a-rag-app/191586)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
