Skip to content
Aldridge Dagos Get in touch

N°001 · 2026.03.23 · 5 MIN · Updated 2026.07.24

How to Build Trustworthy AI That Does Not Make Things Up

By Aldridge Dagos, operations software engineer


A glowing checkmark on a dark screen, with blurred lines of text behind it.
A model can state a false claim with confidence. Verification has to happen before publication.

Language models can produce fluent, specific, false claims. A persuasive answer may include an invented statistic, source, date, or explanation. Better prompting can reduce the frequency, but it cannot establish that every answer is true.

The reliable goal is risk reduction. Ground the model in approved sources, constrain what it may claim, validate what code can validate, test the complete workflow, and require a person to approve consequential output. That makes AI useful without pretending a verifier is perfect.

The short version: NIST calls hallucinations “confabulations” and treats them as a core generative-AI risk. No prompt or second model can guarantee their removal. A stronger system gives the generator a bounded source set, requires claim-level citations, checks structured facts with deterministic code, flags unsupported language, measures failures on a representative evaluation set, and blocks publication until a qualified person approves. Low-risk drafts can move quickly. High-impact claims receive more evidence and review.

Why AI hallucinations happen

The NIST Generative AI Profile defines confabulation as generated content that is confidently false, erroneous, inconsistent, or disconnected from the input. NIST explains that this behavior follows from how generative models approximate patterns in their training data. A plausible continuation is not the same thing as a verified fact.

Open-ended prompts make the problem harder because the model has more room to fill gaps. High-context domains such as health, law, finance, and security make mistakes more consequential. Citation requests help only when the system verifies that a source exists and supports the nearby claim.

How to prevent AI hallucinations in production

I separate generation from evidence and approval. The model may draft, but the application decides what source material is available, what checks must pass, and who may publish.

Control What it does well What it cannot guarantee
Approved source set Limits the evidence the model should use The model may still misread or overstate a source
Claim-level citations Makes factual support inspectable A real link may not support the claim beside it
Deterministic validation Checks dates, totals, IDs, schemas, and allowed values exactly It cannot judge every open-ended statement
Independent model review Finds some unsupported or inconsistent claims A second model can miss or repeat the same error
Human approval Adds accountable contextual judgment Reviewers can still make mistakes or rush
Evaluation and monitoring Measures failure rates and catches regressions A test set cannot represent every future input

The controls work together. Deterministic code should handle exact questions. Does every quoted amount appear in the approved data? Do totals reconcile? Are cited URLs on the allowed list? Does each date follow the required format? These checks are reproducible and should not be delegated to another language model.

A model reviewer remains useful for open-ended checks such as unsupported implications, missing qualifications, or contradiction with source material. Treat its output as a signal, not a verdict. If the risk is high or the evidence is weak, stop the workflow and ask a person.

Ground every important claim in evidence

For factual content, retrieve the small set of documents relevant to the request and pass those documents with stable identifiers. Require each material claim to point to a source identifier and, where possible, a supporting passage. The application should verify that every cited identifier exists and display the evidence beside the draft.

That does not prove the interpretation is correct. It makes review faster and exposes unsupported statements. A person can see whether the citation supports the exact claim instead of searching the entire source from scratch.

Claims also need risk tiers. A social caption about an approved product feature may need lightweight review. A medical, legal, payroll, financial, or security instruction needs authoritative current sources and qualified approval. A system that applies the same check to every claim is usually too slow for harmless work and too weak for consequential work.

Test the complete verification workflow

Build a representative evaluation set with supported claims, fabricated statistics, stale facts, conflicting documents, misleading citations, and ambiguous requests. Record whether the workflow accepts, flags, or blocks each case. Measure false negatives, false positives, review time, and the rate at which published output needs correction.

Run the evaluation when a prompt, model, retrieval method, policy, or source corpus changes. Keep production monitoring too. A workflow can perform well in a test and still fail on a new document type or an unusual user request.

NIST’s broader AI Risk Management Framework emphasizes testing, evaluation, verification, and validation across the lifecycle. That is the right standard. Trustworthiness is a maintained property of the full system, not a label attached to a model.

Keep the final decision accountable

A generated draft should not be able to approve, schedule, or publish itself when the content carries meaningful risk. Use separate permissions and state transitions. The generator creates a draft. Automated controls add evidence and findings. A qualified reviewer approves or returns it. The audit log records who made the decision and which version they saw.

This is how I structure AI-assisted content operations. The workflow improves speed while keeping evidence and accountability visible. The same separation helps with prompt injection: the component that reads untrusted text should not automatically hold the authority to act.

The model is one component. The product is the evidence, checks, permissions, evaluation, and human judgment around it.

Frequently asked questions

Why do AI models make things up?

Generative models produce statistically plausible outputs rather than querying a built-in database of verified truth. When context is missing or ambiguous, they can generate a confident statement that is false or unsupported.

Can a better prompt stop AI hallucinations?

It can reduce some failures, but it cannot guarantee factual output. Use prompts with grounded sources, then add validation, citations, evaluation, and review outside the prompt.

Can a second AI model verify the first one?

A second model can find additional errors, but it can also miss them or repeat the same assumption. Use it as one signal alongside deterministic checks and human review.

What should an AI fact-checking layer validate?

It should validate every exact fact that code can check, including numbers, dates, IDs, allowed values, totals, source identifiers, and required disclosures. It should also flag uncited or weakly supported claims for review.

When does AI output need human approval?

Require qualified approval when an error could affect health, legal rights, money, safety, security, reputation, or a client’s public record. Lower-risk drafts can use lighter review if monitoring shows that the residual risk is acceptable.