Checking whether an AI system retrieved the right documents helps you spot missing evidence, irrelevant search results, and answers grounded in the wrong source. You will need the question asked, the documents the system searched, and access to its retrieval results or source citations; if those are hidden, you can still test the answer against a small set of known documents.
What You’ll Need
- The original user question, including any important filters such as date, location, or document type.
- Access to the retrieved passages, file names, links, or source citations—not only the final AI answer.
- A way to open and search the source documents, plus a few known relevant documents or a subject-matter reviewer for high-impact checks.
- A simple record of each test query, expected sources, retrieved sources, and issues found.
Step-by-Step
- Choose a representative question. Start with a real question people ask, or write a realistic test question. Include the context needed to identify the right evidence. For example, distinguish “the current travel policy” from “the 2022 travel policy.” Avoid testing only broad questions that could match almost anything.
- Define what a correct retrieval means. Before running the system, identify which document or documents should support a useful answer. Note the exact title, version, section, or passage if known. Also decide whether the task requires one authoritative source, several sources, or a particular time period. This expected result is your reference point; without it, a plausible-looking result is difficult to judge.
- Run the query as a user would. Enter the question without adding hidden hints that would make retrieval unusually easy. Save the exact wording and any filters applied. If the system uses conversation history, test in a fresh conversation as well as in context, because earlier messages can change which documents it searches for.
- Inspect the retrieved items, not just the answer. Open the system’s retrieval panel, logs, citations, or source list. Check the document title, author or issuing group where relevant, date, version, and the specific passage returned. A citation to a correct-looking file is not enough if the retrieved passage is unrelated to the question.
- Check relevance and coverage. Ask whether each result directly supports the question and whether the key expected evidence appears. Mark results as relevant, partly relevant, or irrelevant. A useful set should contain the necessary evidence without being dominated by similar-but-wrong documents. For questions requiring multiple facts, check that retrieval includes evidence for each fact.
- Verify the source itself. Open the original document and compare the retrieved passage with it. Confirm the wording and surrounding context, and check whether a newer version supersedes it. Look for missing tables, footnotes, attachments, or neighboring paragraphs that change the meaning. This catches extraction and indexing problems as well as ranking errors.
- Separate retrieval errors from answer errors. If the correct evidence was not retrieved, the retrieval stage failed. If it was retrieved accurately but the answer misstates or ignores it, the problem is in answer generation or citation use. Record both separately; changing the search configuration will not necessarily fix a reasoning or answer-writing problem.
- Repeat with a small test set. Test a mix of clear, ambiguous, recent, and difficult questions, including questions with no suitable source. Track how often expected documents appear and how often irrelevant ones crowd the results. Review misses by pattern—such as date filters, synonyms, scanned files, or document types—rather than drawing conclusions from one query.
- Check unanswerable questions. Ask something that the collection does not cover. The system should not present unrelated material as proof. Depending on the product, a sensible outcome may be no results, a request for clarification, or an explicit statement that the available documents do not answer it. Confirm that citations do not imply support they do not provide.
- Make one controlled change and retest. If results are wrong, adjust one factor at a time: query wording, metadata filters, indexing, document parsing, or retrieval settings. Rerun the same questions and compare the results with your notes. Keep the expected sources fixed so that an apparent improvement is not just a change in how you judged success.
Common Mistakes
Judging by a fluent answer: Clear writing does not prove that the right sources were found. Inspect the retrieved passages independently.
Checking only the first result: A relevant top hit can hide missing evidence later in the list, while irrelevant results may crowd out documents needed for a complete answer.
Ignoring versions and dates: A document can match the topic but be obsolete, draft-only, or outside the requested period. Verify status and effective date where these matter.
Confusing relevance with correctness: A passage may discuss the right subject without answering the specific question. Check whether it supports the exact claim being made.
Testing only easy queries: A few obvious examples will not reveal failures with abbreviations, synonyms, long documents, filters, or missing information. Use varied examples.
Changing several settings at once: If results improve or worsen, you will not know why. Make one change per comparison and preserve the original test cases.
Tips
- Keep a compact evaluation sheet with the query, expected source, retrieved source, passage relevance, version, and outcome.
- Use exact document identifiers when available, but also test natural wording and common synonyms.
- Review the passage with enough surrounding text to understand qualifications, exceptions, and definitions.
- Include negative tests: queries for information that is absent, outdated, or restricted to a different collection.
- For consequential decisions, have a qualified person check the source and interpretation; retrieval scores alone are not proof of correctness.
Troubleshooting
The correct document never appears: Check that it is included in the searchable collection, successfully indexed, and not excluded by permissions or filters. Confirm the document text can be searched directly. Scans may need text recognition, and tables or unusual layouts may not extract cleanly.
The right file appears, but the wrong passage is returned: Inspect chunk boundaries and document parsing. A relevant sentence may have been split from its heading or context. Try a more specific query, then review how the file is divided and whether its structure is preserved.
Old or duplicate versions dominate: Check metadata, file names, indexing rules, and duplicate handling. Make version and date fields consistent, and ensure obsolete files are clearly marked or excluded when appropriate.
Results are related but not specific enough: Add key terms, dates, or document-type filters to the query. If this happens often, review whether the collection uses consistent metadata and whether important terminology has synonyms or abbreviations.
The source is right but the AI answer is wrong: Preserve the retrieval evidence and report this as an answer-generation issue. Check whether the answer cites the passage accurately, follows qualifications, and distinguishes conflicting sources. Do not treat a citation as validation if its text does not support the claim.
You cannot see what was retrieved: Look for a citations or sources view, evaluation logs, or an administrator’s retrieval trace. If the product exposes none of these, test with known questions and source-specific wording, but note that you cannot conclusively assess retrieval from the final answer alone.
Frequently Asked Questions
Can I tell from the AI’s answer whether retrieval was correct?
No. A correct answer may come from prior knowledge, and an incorrect answer may occur despite good retrieval. Inspect the retrieved sources and passages.
How many questions should I test?
There is no universal number. Begin with a varied set that covers common queries and known failure cases, then expand it when new patterns or risks appear.
What is the difference between relevance and retrieval accuracy?
Relevance describes whether a result fits the query. Accuracy also asks whether the needed evidence was found, whether the source is authoritative and current, and whether the returned passage supports the intended use.
Should every answer have a citation?
When answers rely on a document collection, citations make checking easier. They still need to point to a passage that actually supports the claim; a citation alone does not guarantee a correct result.
What if two documents disagree?
Check dates, authority, scope, and version status, then follow the rules for resolving conflicts in your organization. If the conflict cannot be resolved, the system should disclose it rather than silently choosing one.
Can a high retrieval score prove the right documents were found?
No. A score is a ranking signal, not a guarantee. Compare actual results with known expected sources and inspect the supporting text.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Delete Picture Kik? How to Remove Photos
- What Happens to X Replies, DMs, and Followers After Deletion?
- Data Breaches That Shook the World
- Disable Google Assistant: Turn It Off on Android & Home
- Resin vs FDM Printers for Miniatures: Detail, Durability, Cost
- Are Networked Implants Safe? What If One Fails?