HOME / CASE STUDIES / LLM KNOWLEDGE-GRAPH TOOL VALIDATION

Case study · AI validation · GxP

Validating an AI-powered biomedical knowledge-graph tool

Researchers wanted to ask a large biomedical knowledge graph questions in plain English and get answers from an LLM. Before anyone relied on those answers, the tool had to be validated like any other computerised system.

GAMP 5 · CSA
INDUSTRY
Biomedical research · Drug discovery
SERVICES
AI validation · LLM evaluation
FRAMEWORKS
GAMP 5 · CSA · 21 CFR Part 11 principles
OUR ROLE
Validation lead, from plan to summary report
~200Kbiomedical concepts in the graph
~20Mlinked facts the answers draw on
Every claimchecked back to a source
01

Business challenge

LLMs write fluent answers whether or not they are right. For a tool that scientists use to choose drug targets, a confident but unsupported answer is worse than no answer. The core question was simple: how can a researcher trust an answer generated by an LLM connected to a biomedical knowledge graph?

Can we show, with documented evidence, that every answer the tool gives is grounded in the knowledge graph, traceable to its source, and fit for its intended use?
02

Solution

We treated the application as a GxP-style computerised system with an AI component. The tool was designed to answer only from evidence it retrieves, through read-only, safety-checked queries, and to link every gene, drug and disease it mentions back to its source. Our job was to define what “fit for use” meant for that design and then establish it with planned, documented testing against predefined acceptance criteria.

  • Intended use written down: research decision support, not clinical or patient-level decisions
  • Validation scope covering the LLM layer, the query tools, the knowledge graph data and the user interface
  • Risk-based effort: the deepest testing went to the failure modes that could mislead a scientist
03

Validation approach

  1. Intended-use assessmentDefined users, questions in scope and out of scope, and the decisions the answers may support.
  2. Risk assessmentRated AI-specific failure modes: invented facts, unsupported claims, wrong tool choice, inconsistent answers, stale data.
  3. Requirements & traceabilityWrote requirements for grounding, citation, access control and logging, and traced each to a test.
  4. Functional testingTested look-ups, path-finding, clustering and ranking tools against known results in the graph.
  5. Accuracy & grounding evaluationChecked LLM answers against the source data: is each statement backed by retrieved evidence, and does each link resolve?
  6. Audit trail assessmentConfirmed the questions, plans, tool calls and answers are recorded so any result can be reconstructed and reviewed.
  7. Deviation managementLogged failures as deviations, assessed impact, fixed and re-tested before closing them.
  8. Change control & periodic reviewSet rules for re-testing when the model, prompts or graph data change, so the tool stays validated.
04

Deliverables

Validation plan
Intended-use & AI risk assessment
Requirements specification
Traceability matrix
Test protocols & executed records
Grounding evaluation test set
Deviation log
Validation summary report
Change control & periodic review procedure
05

Outcome

The tool was assessed against acceptance criteria agreed before testing began, and its validated state was documented in a summary report that ties each requirement to its evidence. Because the answers are only as good as the evidence behind them, the validation focused on grounding and traceability rather than on the exact wording an LLM produces, which can vary from run to run.

Acceptance criteria

  • Every factual statement in an answer is supported by evidence the tool retrieved
  • Every gene, drug and disease mentioned links back to its source record
  • The tool only reads from the knowledge graph and cannot change it
  • The full chain of question, plan, tool calls and answer is logged for review

Limitations we documented

  • Answers are limited to what the knowledge graph contains; gaps in the graph are gaps in the answer
  • The tool supports research decisions and is not validated for clinical or patient-level use
  • LLM wording can vary between runs, so acceptance is based on evidence and citations, not identical text

Corrective & preventive actions

  • Answers that included statements not backed by retrieved evidence were raised as deviations, corrected through tighter answer rules, and re-tested
  • Model, prompt and data updates go through change control with a defined regression test set

Client, employer and partner names are withheld for confidentiality. Figures are rounded.

Have a validation backlog or an AI system to validate?

Tell us what you need. We reply within 3 business days with a practical first step and an indicative quote.

Request a proposal →