Someone demos a chatbot. It answers six questions brilliantly. The room is impressed and a pilot is approved. Three weeks later, a resident receives a confident but inaccurate explanation of their eligibility for support. A convincing demonstration is not an assurance method.
For generative AI, technical assurance means establishing what reliable behaviour looks like, testing it systematically and retaining evidence. It must assess the whole application, including prompts, retrieval, data sources, user interface, access controls and human review. Testing the underlying language model alone cannot tell you whether your service is safe enough to deploy.
Write down the intended task first
Specify users, permitted questions, approved source material, prohibited outputs and circumstances requiring escalation. A tool that summarises internal policy documents has different acceptance criteria from one drafting letters about individual cases. Include explicit non-goals. If legal advice or eligibility determination is outside scope, the application should recognise and handle those requests appropriately.
Build a representative evaluation set from real patterns of work, with personal information removed or otherwise handled lawfully. Include routine requests, ambiguous language, out-of-date information, unusual cases, accessibility needs and questions the system should decline. Hold back part of the set from prompt development so the team is not simply tuning to the test.
Measure more than a pleasing answer
For a retrieval-augmented system, test whether it retrieves the right documents, cites them correctly and avoids inventing facts not supported by the sources. Check completeness as well as factual correctness: an answer that omits an important exception can mislead without containing an obvious falsehood.
Assess the frequency and seriousness of failures by category. Useful measures might include unsupported-claim rate, missed-escalation rate, sensitive-information exposure, task completion and reviewer agreement. Break results down where particular groups or channels may face different outcomes. Use human reviewers with relevant service expertise, plus clearly written scoring rules and disagreement resolution.
Set acceptance thresholds before seeing the scores. For illustration, a team might require every critical safeguarding escalation in the agreed test set to be correctly handed to a person. That is an example of a locally chosen threshold, not a universal standard. Also record confidence limits and the small-sample problem: passing twenty examples cannot establish rare-event safety.
Test how the system fails
Adversarial testing should include prompt injection embedded in retrieved documents, instructions to reveal protected information, fabricated references and requests outside the tool’s remit. Check what happens when search returns no trustworthy source, the supplier service is unavailable or a staff member accepts a misleading answer. Strong design makes uncertainty visible and provides safe fallback paths.
A red-team exercise is useful, but it should complement repeatable regression tests rather than replace them. Store test cases, expected outcomes, versions and findings in a controlled repository. Re-run relevant tests whenever the model, system prompt, retrieval index or connected tools change.
Separate development and final acceptance testing where possible. The people tuning prompts should not be the only people deciding whether the service is ready. In a small team, this may mean asking an operational specialist to review a blinded sample and an information security colleague to check abuse scenarios. Document reviewer instructions and sampling decisions so another team can repeat the exercise.
Make the release decision explicit
A release report should identify unresolved failures, operational restrictions, who accepted residual risk and what will be monitored after launch. Start with limited users and clear rollback conditions. Examine real-world samples under appropriate privacy safeguards, and make it easy for staff to flag incorrect or unsafe outputs.
The UK Government’s AI assurance guidance distinguishes measuring, evaluating and communicating evidence of trustworthiness. For public services, the communication matters as much as the laboratory results. Service owners need to understand what was tested, what was not, and why the system is considered fit for its stated purpose. A carefully documented refusal to deploy can be a successful assurance outcome too.
Further reading: DSIT, Introduction to AI assurance; Portfolio of AI assurance techniques.
