In this guide ⌄
The problem becomes concrete when an archive contains old procedures, missing attachments and documents restricted to different people. A well-written answer can conceal a failure in the information pipeline.
What RAG means
Retrieval-Augmented Generation combines information retrieval with text generation. The 2020 paper by Lewis and colleagues is a foundational reference for this architecture: externally accessible knowledge complements what a model has learned. It does not certify the answers of every product using the label. Original paper .
Attaching a PDF alone does not tell you how a service processes it: it might place the text in context, index it, select excerpts or combine these approaches. For a project, you need to establish what actually happens.
A citation lets you check a claim. The presence of a link does not prove that the claim is correct.
Following a piece of information
| Stage | Question to ask | Possible failure |
|---|---|---|
| Ingestion | Was the text read correctly? | A table loses the relationship between its columns |
| Selection | Was the relevant version retrieved? | An outdated procedure appears |
| Answer | Does the excerpt support the conclusion? | The model adds a rule absent from the source |
This is a proposed checking framework for a project, not a description of a particular commercial service. It separates three failures that otherwise receive the same label: “the AI got it wrong”.
A badly ingested PDF calls for checking the document. Retrieval of the wrong version calls for better metadata and selection criteria. An unsupported conclusion calls for checks on generation and on the system's ability to decline to answer.
An example: two conflicting procedures
ILLUSTRATIVE SCENARIO
Illustrative scenario: an expense claim
A 2023 procedure sets a 30-day deadline. A 2026 revision reduces it to 15 days, but only for travel expenses. These documents are invented to explain the method, not procedures belonging to a client.
The question “How long do I have to claim reimbursement?” lacks a necessary detail: what kind of expense? Answering “15 days” without clarification could be wrong even if the citation to the 2026 document is genuine.
The expected behaviour is to ask about the expense type, select the relevant document and state the applicable condition. If the archive cannot establish it, the answer should say so.
The latest date is not enough: a revision may cover a narrow area. Even a system that retrieves documents perfectly needs to establish whether the question contains enough information to choose between them.
How to prepare a useful evaluation
-
Choose real questions and retain an expected answer with its source document and passage.
-
Add ambiguous questions for which asking for clarification is the correct response.
-
Include questions the archive cannot answer: missing information is a case to test.
-
Separate retrieval from answering: inspect the excerpts first, then what the system writes.
-
Repeat the test with outdated versions and conflicting documents.
-
Check permissions with different users, without placing restricted documents in unauthorised environments.
A single score makes it harder to identify where to intervene. Recording the question, excerpts, version, answer, error and required correction is more useful. Metrics need a declared evaluation set: this article reports no accuracy percentage because no product has been evaluated.
What to check before connecting an archive
CHECKLIST
Check your project
A practical criterion is to select a wrong answer and reconstruct why it was produced. If we cannot distinguish the document, the selection and the conclusion, changing the prompt may leave the underlying problem untouched.
For a business document assistant, work with Row Tech can start with this inventory of sources, permissions and tests. Before choosing how much autonomy to grant, establish which information can justify its decisions.