GxP AI Use-Case AssistantDemo

How it works

From intake form to outcome, and how fixed rules choose it.

The process, step by step

  1. Intake form The proposer answers 10 questions about the task, its output and who checks it. Only the task description is required. 10 questions
  2. Find passages Hybrid search (keywords plus meaning, fused) finds the relevant passages in 9 public regulatory documents. Fixed queries make sure the deciding passages are always included. 9 public documents
  3. AI classifies The AI labels GMP relevance, model type and autonomy, and cites a source for each answer, only from an approved list per class. Output that fails the format check is rejected and logged, never shown. A text that is not a concrete AI use is Not assessed. 3 axes, each cited
  4. Citation check Each citation must be a passage that was actually found and that the approved list allows for that class. Other citations are dropped; an answer left without a source is flagged as not covered. Unsupported dropped
  5. Rules decide 9 fixed rules, checked in order (the first match wins), turn the three classes into one outcome. QA can read them line by line. The tree below shows every path. 9 fixed rules
  6. Safety checks They can only make the outcome stricter. A review step that is not described is not assumed. Form answers that contradict the description are explained and asked about. Only stricter
  7. Result The outcome with its source, the required controls, open questions and a draft intake record. QA decides. Outcome, controls, questions
  8. Up to 3 rounds Pending clarification: the proposer answers the questions and resubmits. Up to 3 rounds, the first submission included; after that, a new proposal with a clearer scope.
  9. Audit log Every request, including rejected model output, is appended to the audit log. Each entry stores the hash of the one before, so editing or deleting a line breaks the chain. Hash-chained

The AI maps inputs and cites sources. The outcome is set by deterministic rules.

How the rules decide

Choose an answer in the tree to trace its path.

Concrete AI use? First, the AI judges whether the text proposes a concrete AI use. A general question or a request for advice is not assessed.
Not assessed Not assessed: outside this tool's scope It does not answer general questions, give legal advice or issue compliance decisions. To screen a specific AI use, describe what the AI does and what happens to its output.
GMP relevance Is the AI output used in a GMP decision, as a GMP record or in a process control (e.g. batch release, QC results, deviation impact, an issued SOP or batch record)? Or does it only support people who then follow the normal GMP process?
Model type What kind of model is it: a trained model that is frozen before use, a model that keeps learning in operation, a generative AI / LLM, or fixed rules and scripts?
GMP-critical ML Annex 22 §1 GMP-critical ML: proceed with full controls (Annex 22) Draft Annex 22 covers a static, deterministic model in a critical GMP application. Rests on Annex 22 (draft) §1.
Should not proceed Annex 22 §1 Should not proceed: not for GMP-critical use (Annex 22 §1) Draft Annex 22 §1 covers only static, deterministic models in critical GMP applications, and says that dynamic, probabilistic and generative models (including LLMs) should not be used in critical GMP applications. Rests on Annex 22 (draft) §1.
Not ML Annex 22 §1Annex 11 Principle Not ML: proceed as a standard GMP system (Annex 11) The logic is explicitly programmed rather than learned from data, so it is not an AI/ML model under Annex 22 §1. Rests on Annex 22 (draft) §1; Annex 11 (2011) Principle.
Pending clarification Annex 22 §1 Pending clarification: update any missing or conflicting details below The description does not give enough detail to decide whether the use is GMP-critical or what kind of model it is. The proposer answers the questions and resubmits, up to 3 rounds. Rests on Annex 22 (draft) §1.
Model type What kind of model is it: a trained model that is frozen before use, a model that keeps learning in operation, a generative AI / LLM, or fixed rules and scripts?
Non-critical ML Annex 22 §1Annex 11 §1ICH Q9 §3 Non-critical ML: proceed with risk-based controls (Annex 11, ICH Q9) A non-critical GMP use of an ML model is outside the mandatory scope of draft Annex 22, which is silent on it. Rests on Annex 22 (draft) §1; Annex 11 (2011) §1; ICH Q9(R1) §3.
Autonomy Do trained, qualified staff review and approve each output before it is used, or does the output take effect automatically? It changes the outcome only on this branch: generative AI in non-critical use.
Generative AI Annex 22 §1 Generative AI: proceed if a person approves each output (Annex 22) Draft Annex 22 §1 allows generative AI in non-critical GMP applications when personnel with adequate qualification and training are responsible for checking each output; Annex 22 principles may be considered where applicable. Rests on Annex 22 (draft) §1.
Not as described Annex 22 §1FDA warning letter Not as described: add human review of each output (Annex 22 §1) Draft Annex 22 §1 says that when generative AI is used in non-critical GMP applications, personnel with adequate qualification and training should always be responsible for checking that each output is suitable (a human in the loop). Rests on Annex 22 (draft) §1; FDA warning letter 320-26-58.
Pending clarification Annex 22 §1 Pending clarification: update any missing or conflicting details below For generative AI in a GMP context, the verdict depends on whether trained staff review each output, and the description does not state this. The proposer answers the questions and resubmits, up to 3 rounds. Rests on Annex 22 (draft) §1.
Not ML Annex 22 §1Annex 11 Principle Not ML: proceed as a standard GMP system (Annex 11) The logic is explicitly programmed rather than learned from data, so it is not an AI/ML model under Annex 22 §1. Rests on Annex 22 (draft) §1; Annex 11 (2011) Principle.
Pending clarification Annex 22 §1 Pending clarification: update any missing or conflicting details below The description does not give enough detail to decide whether the use is GMP-critical or what kind of model it is. The proposer answers the questions and resubmits, up to 3 rounds. Rests on Annex 22 (draft) §1.
Not GMP Annex 11 PrincipleAI Act Art. 6 Not GMP: proceed under normal IT rules (no Annex 22) The use is not part of GMP-regulated activities, so Annex 22 and Annex 11 do not apply. Rests on Annex 11 (2011) Principle; EU AI Act Art. 6.
Pending clarification Annex 22 §1 Pending clarification: update any missing or conflicting details below The description does not give enough detail to decide whether the use is GMP-critical or what kind of model it is. The proposer answers the questions and resubmits, up to 3 rounds. Rests on Annex 22 (draft) §1.
The decision tree as text

Each question is answered by the AI's classification; the rules are checked in order and the first match wins. First question: Concrete AI use?

  • No (a question or request, not a concrete AI use): Not assessed: outside this tool's scope.
  • Yes (the text proposes a concrete AI use): next question, GMP relevance
    • Critical (GMP-critical): next question, Model type
      • Frozen trained model (a trained model, frozen in use): GMP-critical ML: proceed with full controls (Annex 22), rests on Annex 22 (draft) §1.
      • Self-learning or Generative AI / LLM or Probabilistic (a model that keeps learning; generative AI / an LLM; a probabilistic model): Should not proceed: not for GMP-critical use (Annex 22 §1), rests on Annex 22 (draft) §1.
      • Not ML (fixed rules, not ML): Not ML: proceed as a standard GMP system (Annex 11), rests on Annex 22 (draft) §1, Annex 11 (2011) Principle.
      • Unclear (not stated in the proposal): Pending clarification: update any missing or conflicting details below, rests on Annex 22 (draft) §1.
    • Non-critical (GMP, non-critical): next question, Model type
      • Frozen trained model or Self-learning or Probabilistic (a trained model, frozen in use; a model that keeps learning; a probabilistic model): Non-critical ML: proceed with risk-based controls (Annex 11, ICH Q9), rests on Annex 22 (draft) §1, Annex 11 (2011) §1, ICH Q9(R1) §3.
      • Generative AI / LLM (generative AI / an LLM): next question, Autonomy
        • Informs or A person approves each output (information only, a person decides; a person approves each output): Generative AI: proceed if a person approves each output (Annex 22), rests on Annex 22 (draft) §1.
        • Acts, people monitor or Acts, nobody checks (takes effect automatically, people monitor; takes effect automatically, nobody checks): Not as described: add human review of each output (Annex 22 §1), rests on Annex 22 (draft) §1, FDA warning letter 320-26-58.
        • Unclear (not stated in the proposal): Pending clarification: update any missing or conflicting details below, rests on Annex 22 (draft) §1.
      • Not ML (fixed rules, not ML): Not ML: proceed as a standard GMP system (Annex 11), rests on Annex 22 (draft) §1, Annex 11 (2011) Principle.
      • Unclear (not stated in the proposal): Pending clarification: update any missing or conflicting details below, rests on Annex 22 (draft) §1.
    • Not GMP (not GMP): Not GMP: proceed under normal IT rules (no Annex 22), rests on Annex 11 (2011) Principle, EU AI Act Art. 6.
    • Unclear (not stated in the proposal): Pending clarification: update any missing or conflicting details below, rests on Annex 22 (draft) §1.