Guide: what the draft Annex 22 requires of AI in GMPRead the guide

Inspection readiness

During an inspection or a self inspection, every question means finding records across several systems. AI searches them by meaning, gathers the ones that answer it and proposes a reply with the location of each record. Quality assurance decides what is presented.

How it would work

An inspector question, from its record to the reply that is presented.

  • AI prepares
  • A person decides
  • Recorded in the trail
Illustrative example, not a real case

The process, documents and data in this walkthrough are fictitious. They show how the AI would work; your actual process may be different, and the system is designed around yours.

An inspector question

In the middle of an inspection, the inspector asks to see an equipment item's qualification and its changes. Quality assurance records the question.

What comes in

Inspector's question

Show me the qualification of fluid bed 2 and the changes it has had since then.

The company's systems

Qualification
Qualification report for fluid bed 2, approved
Changes
Two closed changes: moisture sensor and drying program
Training
Staff training on the new drying program

Today and with AI

What changes when each question arrives.

TodayWith AI

TodayEach inspector question starts a manual search across several systems

With AIAI searches all the systems it can reach at once

TodayKnowing where each record is depends on who filed it

With AIEach reply comes with the location of each record

TodayThe reply is written in a hurry, while the inspector waits

With AIThe draft comes with the source of every data point, ready to review

TodayQuality assurance decides what is presented

With AIThe same: quality assurance decides, and the audit trail keeps what was presented

Which AI it uses and why

It finds and proposes; quality assurance replies.

Search by meaning
Each record becomes a vector (an embedding) so the ones that answer the question can be found even in different words.
Linking records
It links an equipment item with its qualification, its changes and the related training.
Generative
Its output is probabilistic. That is why it proposes a reply and cites each record; it doesn't present it.
What it doesn't do
It doesn't reply to the inspector or decide what is shown.

Regulatory fit

Where it sits in the draft Annex 22 and which regulations apply.

  1. CriticalIt decides something GMP: only with a static, deterministic model
  2. Non-criticalAI prepares and a person decides
  3. Outside GMPAnnex 22 doesn't apply directly

Responding to an inspection is the company's responsibility, and here quality assurance exercises it: the model finds and proposes. The draft Annex 22 allows generative AI in non-critical uses, with qualified personnel responsible for the result. EU GMP Chapter 4 requires it to be defined which record relates to each activity and where it is located, and Chapter 9 requires recorded self inspections with their observations: the same system helps prepare them.

EU GMP Chapter 4, 4.10
It should be clearly defined which record relates to each manufacturing activity and where it is located, with its integrity ensured throughout the retention period.
Chapter 9, principle and 9.1
Self inspections following a pre-arranged programme to monitor compliance with GMP and propose the necessary corrective measures.
Chapter 9, 9.3
Every self inspection is recorded with its observations and, where applicable, the corrective measures and the actions taken.
Draft Annex 22
Generative AI only in non-critical uses, with qualified personnel responsible for the result.

See the Annex 22 guide

The seven pieces of evidence for this case

What we would deliver for this model.

01Intended use

Find the records that answer an inspection or self inspection question and propose the reply. It doesn't reply or present anything.

02Level of autonomy

Proposes. What is presented is decided by quality assurance.

03Test data

Questions from earlier inspections and self inspections, with the records that answered them as the reference.

04Sources for every proposal

Each data point links to the record it comes from and its location; anything unclear is marked as pending.

05Version under change control

The model, its version, the instructions and the systems it searches.

06Recorded oversight

The proposal and what quality assurance presented, added or removed.

07Monitoring in production

The records quality assurance has to add by hand; if they increase, the system flags it.

See what the seven pieces of evidence are

Frequently asked questions

About this use case.

  • No. AI finds the records that answer the question and proposes a reply with the location of each one. Quality assurance decides what is presented and presents it.

  • Only those it is given read access to, such as the quality, document or training systems. Each data point in the reply shows which record it comes from and where it is.

  • Yes. EU GMP Chapter 9 requires self inspections following a pre-arranged programme and recorded with their observations; AI finds the evidence for each item of the programme in the same way.

Other use cases

The same way of working in other processes.

Automated visual inspection of injectables

A vision model checks every filled container, separates the defective ones and sends the ones it isn't sure about to a person.

GMPManufacturingComputer visionCritical

Deviation investigation and CAPA

AI finds the deviations in the history that describe the same problem and drafts an investigation with every source cited.

GMPQuality assuranceGenerative AINon-critical

Pharmacovigilance case intake

AI extracts the data from the report, checks whether the case is valid, proposes the MedDRA coding and looks for duplicates.

GVPPharmacovigilanceExtraction and codingOutside GMP

Laboratory equipment qualification

AI drafts the OQ protocol from the URS and the manufacturer's manual, with one test per requirement and the source of every criterion.

GMPQuality controlExtraction and draftingNon-critical

Process validation and ongoing verification

AI gathers batch data against the protocol's criteria, flags what drifts from the trend and drafts the report with its sources.

GMPQuality assuranceExtraction and trendsNon-critical

Tablet and blister inspection

A vision model checks every blister on the packaging line and separates incomplete ones or those with damaged tablets.

GMPManufacturingComputer visionCritical

Laboratory audit trail review

AI ranks the events of the chromatography data system's audit trail by priority, hiding none; the reviewer decides.

GMPQuality controlRules and anomaliesNon-critical

Material receipt

At each receipt, AI compares the delivery note, the purchase order, the supplier's labels and its certificate of analysis, and flags what doesn't match.

GMPSupply chainExtraction and comparisonNon-critical

What we need from you

To plan the system with real data.

  • Read access to your quality, document and training systems
  • Your procedure for handling inspections
  • Questions from earlier inspections or self inspections, for testing
  • Who in quality assurance will review the replies during validation

Does it look like your process?

Tell us how you do it today and we'll tell you whether AI adds enough to justify validating it.