Use a GPT model to answer questions about a defined document collection, then verify the answer against the original passages before relying on it. Give the system a way to cite the records it used and to say when the collection does not support an answer. Test retrieval and interpretation separately so you can tell where a failure occurred.
This guide follows a fictional research team reviewing a set of public service notices. It explains how to prepare the collection, ask answerable questions, check citations, and measure performance before using the workflow in intelligence or security work.
Expanded with AI assistance and review of the linked primary sources. The notices and findings in the worked example are fictional.
Decide what the answer should be able to establish
Start with the decision and the evidence boundary. “What changed in this service?” can refer to a date, region, eligibility rule, or technical setting. “Which of the supplied notices changed the effective date for the North region, and what was the new date?” specifies a field and limits the evidence to a known collection. A reviewer can check that answer.
Choose which tasks fit the workflow. A model can propose passages, summarize distinctions, and draft an answer linked to sources. Use exact search or a spreadsheet when the question depends on a known identifier or a calculation from reviewed values. An answer about a future event needs a separate forecasting method and evidence suited to the claim.
Define the expected response when the collection is insufficient. An answer might say that the notices describe a planned change but do not include a confirmed date. Give that response a useful next step, such as naming the missing record. This helps users distinguish a bounded answer from a broader claim that nobody has published the information.
Prepare the documents and preserve their relationships
Give each document an identifier, title, source address, and date. Record whether the date describes publication, an effective period, a signature, or an update. When a later notice supersedes an earlier one, preserve both and describe their relationship. The system needs that context when the question asks what applied at a particular time.
Extract text with page or section references. Inspect scanned pages and tables before relying on converted text. A table can lose the alignment between a date and its region. A scanned document can contain an incorrect character in an identifier. Verify important fields against the page image and record any passages the extraction could not handle.
Split long documents at useful boundaries if your search method needs smaller sections. Keep the title, section, and version with each excerpt. Include headings and adjacent qualifications where they change the meaning. If the excerpts lose those details, an answer can sound precise while applying a sentence to the wrong subject or period.
Check that the collection is appropriate for the service and users. A document can contain personal information or restricted material alongside public text. Review access, retention, and connected tools. If different users have different access rights, ensure the retrieval step enforces those rights before the assistant receives the passages.
Separate retrieval from answer generation
In a retrieval-based workflow, a search step selects passages and a language model uses them to draft an answer. Record which passages reached the model. If the answer is wrong, inspect that set before changing the prompt. A better writing instruction cannot compensate for a source that never reached the answer step.
Use stable identifiers and filters for fields such as region, document type, and time period. Exact keyword search can help when a question names a code or title. Search based on meaning can help find passages that use different words. Compare the results against the intended question and consider combining methods where each retrieves different relevant evidence.
Test with similarly named records and conflicting versions. A search for an updated schedule may retrieve a draft because its wording resembles the question. Keep version and status information available to the answer step. If the status remains unknown, ask the model to show the conflict and let the reviewer resolve it.
Keep content from the documents separate from the system's instructions. A source may contain text asking the assistant to ignore the question or disclose other material. Treat that text as part of the evidence. Limit access and keep actions outside the document-answering workflow unless separately authorized and reviewed.
Ask for citations a reviewer can actually use
Require a source identifier and page or section for each material statement. Ask for a short supporting excerpt where helpful. Keep the references linked to the original records so a reviewer can open the full context. A list of documents at the end gives less help when the reader cannot see which one supports a particular sentence.
Review each citation for existence, relevance, and support. First, confirm the record is in the collection. Then find the cited passage and check that it refers to the right entity and period. Finally, decide whether it supports the wording of the claim. A real citation can point to a related passage without substantiating the conclusion.
NIST's Generative AI Profile identifies confidently stated erroneous content as a risk. A model can produce a well-formatted citation or a plausible answer while misreading the source. Keep review focused on the underlying evidence and record what was checked. NIST Generative AI Profile.
Worked example of a fictional effective-date question
A team supplies three notices. Notice A says a service change for the North region is scheduled to start July 8. Notice B was published July 2 and moves the North region's effective date to July 15. Notice C gives July 10 for a different region and uses the same heading as Notice B. The question asks which date applies to the North region.
The first answer gives July 2 and cites Notice B. The reviewer opens the notice and finds that July 2 is the publication date. The effective date appears in a later paragraph. They correct the answer to July 15 and record the exact passage. The citation was real and relevant, while the interpretation was wrong.
The team asks the same question after removing the second paragraph from the extracted text. The model no longer receives the effective date. The correct behavior is to report that the supplied excerpts do not establish it. The reviewer records this as a retrieval or preparation failure and fixes the extraction rather than scoring the incomplete corpus as if it contained the answer.
In a second test, the search returns Notice C and omits Notice B. The model offers July 10. The reviewer compares the region field and identifies the retrieval error. The team adds a region filter and tests it against a notice that refers to both regions. That extra case checks whether the filter solves the original mistake without excluding a relevant document.
The final answer gives July 15 for the North region and distinguishes it from the publication date and the other region's schedule. It cites the amendment and names the earlier date it replaced. It also records the scope of the supplied notices so the reader knows what the team checked.
Evaluate the system with known answers and missing evidence
Build a small test set with reviewed answers and references. Include exact lookups, conflicts, similar identifiers, and cases where the right answer is unknown from the collection. Decide how much explanation a user needs. A one-line date may be enough for a routine check, while a disputed date needs the sources and reasoning behind it.
Measure retrieval separately. Check whether the passages needed to answer the question appear in the results and whether misleading near matches are present. Then measure the answer. Check the key facts, the citations, and whether the result respects the scope. Record the errors by type so improvements can target the right stage.
Track unsupported details and omissions as well as wrong values. An answer can give the correct date while leaving out a condition that limits it to one region. It can cite one notice accurately while ignoring a superseding notice. Make those omissions visible in the scoring and decide which ones require manual review before use.
Compare with a manual baseline. Give reviewers the same questions and collection and record time, accuracy, and correction effort. Include preparation, checking, and any time spent retrieving missing documents. Use fresh examples when retesting so the team can distinguish a real improvement from a change tailored to familiar questions.
Keep a record of evidence and changes
| Stage | What to retain |
|---|---|
| Question | Scope, intended use, and expected answer or uncertainty. |
| Collection | Document identifiers, dates, versions, and extraction gaps. |
| Retrieval | Queries, filters, selected passages, and missed sources. |
| Answer review | Claim, citation, relevant excerpt, and reviewer decision. |
| Evaluation | Configuration, test cases, errors, and next review trigger. |
Use a document viewer to inspect source pages, a search index or database to find passages, and a private spreadsheet or notebook to record the review. Give each claim a stable reference. When a source changes, identify the answers that depended on it and reassess them rather than replacing the document silently.
Distinguish evidence from inference when you release the answer. An official notice can establish its published wording, while a statement about how people implemented it may require operational records. ODNI's analytic standards offer a reference for separating information from assumptions and judgments and explaining uncertainty in intelligence products. ODNI Intelligence Community Directive 203.
Give users a clear route when an answer needs review
Display the answer beside the sources and make it easy to open the relevant passage. Show the collection and date range covered. If the system cannot answer, explain which information is missing or which records conflict. Give users a route to ask a person or consult the original publication where appropriate.
Set a trigger for reassessment. A model change, new document format, or update to retrieval settings can alter performance. Run cases that cover the affected step and check how citations and uncertainty are displayed. If the workflow repeatedly omits critical evidence, narrow its use until the issue is understood.
Record corrections in a way that a later reader can follow. If a new notice changes the answer, distinguish that change in the underlying record from an error in the earlier summary. Link to the revised source and identify the affected date or condition. The point is to keep a reviewable chain from the question to the evidence and from the evidence to the answer.
Check how questions change across readers
Have one reviewer ask for the date using the exact title and another describe the change in everyday language. Compare which records each question retrieves. If the tool succeeds only when someone already knows the official terminology, add an example or improve the search method. Document both ways of asking so a future test reflects how readers actually work.
Test questions with more than one part. A reader may ask which region was affected and when the decision took effect. Require separate evidence for both fields. If the collection supports one part, answer that part and identify what remains open. A single overall citation can hide the difference between the supported and unsupported parts.
Include a question whose premise is wrong. In the fictional case, ask why the South region changed to July 15 when only the North region did. Check that the answer corrects the premise and cites the relevant documents. Give the reviewer a way to see which words in the question prompted the distinction. This tests whether the model will follow the evidence when the question leads it elsewhere.
Finally, check whether another reviewer can recreate an answer using the saved collection and notes. They should be able to open the source, locate the cited passage, and tell which version was used. If the answer relies on an unrecorded excerpt or a changed search filter, add that detail before using the workflow for a live decision.
Keep the independent review result with the test record and use it to decide which questions are ready for routine use.
Related resources
Explore the OSINT Research Hub, Privacy Page, AI Assistants Ranked for Privacy, and Start Here guide. The earlier article listed www.marielandryceo.com.
Cite or link to this article
Free to cite, link and share. A link back helps others find this research.
More free OSINT resources: OSINT Research Hub · Tools directory · Glossary

Comments
Post a Comment
Please Be Respectful.