Matching Tenders Against a Product Portfolio With an Ontology and a Knowledge Graph
Back to Blog
AI

Matching Tenders Against a Product Portfolio With an Ontology and a Knowledge Graph

How we match medical product documents against tenders: AI extraction, an ontology that fixes what things are and how they relate, a knowledge graph built on it, and validation against real tenders.

For a healthcare and laboratory supplier we built a platform that answers a question bid teams ask every week: which of our products cover this tender, and what is missing? The case study shows what it does. This post explains how: AI that reads the documents, an ontology that fixes what things are and how they relate, and a knowledge graph built on top of it. And why we did not build a chatbot over a pile of PDFs.

Structured data first, AI second

The tempting shortcut is to put every document in a vector store and let a language model answer questions. It demos well and it fails quietly: an answer that sounds right but mixes up two kits, or misses that a requirement is brand-locked. A bid team cannot work with that.

So the platform is built as a structured data platform supported by AI. AI does the reading, classification and matching. Data integrity, entity resolution and the validation of relationships are controlled by deterministic logic and human review. Every fact has a source.

One pass per document

An instructions-for-use document turned into a structured product profile
An instructions-for-use document turned into a structured product profile

Each document goes through a single AI call in JSON mode that returns three things at once:

  • The product profile: name, catalogue number, manufacturer, intended use, technology, regulatory status, storage, shelf life and pack size.
  • Extracted fields such as performance claims (limit of detection, sensitivity, specificity), each with its source page, the raw snippet and a confidence score.
  • Entities and relationships: every organism, instrument, consumable, method, gene and sample type mentioned, and how the product relates to each.

Doing it in one call keeps profile, entities and relationships consistent, because they come from the same reading of the same document. It also keeps the cost per document down.

Not every document deserves the same treatment. An instructions-for-use leaflet contains targets, performance and compatibility. A certificate or a safety data sheet contains regulatory and safety metadata, but no performance data, so it is stored and linked to the product without technical extraction. Instrument manuals describe hardware, capacity and compatible assays, not organisms. The platform recognises the document type, and scanned PDFs go through OCR first.

Three names, one instrument

Three name variants resolved into one canonical entity
Three name variants resolved into one canonical entity

The value of the graph depends on entity resolution. Every extracted entity is checked against the entities that already exist: exact matches, known aliases, and fuzzy matching with trigram similarity in PostgreSQL to catch name variants. "PCR Analyser 5000", "Analyser-5K system" and "the 5000 platform" become one record with three aliases.

There is a subtle trap here. A pathogen that is a target in one kit's leaflet can appear in another kit's cross-reactivity section, where the point is that the kit does not react to it. Same entity, opposite meaning. The relationship type has to capture that difference, or the matching will happily offer a kit for exactly the organism it is designed to ignore.

The ontology underneath

"Ontology" has become a buzzword, so it is worth saying what it means and what it does here. In computer science the term goes back to Tom Gruber, who defined an ontology in 1993 as "an explicit specification of a conceptualization" [1]. Studer, Benjamins and Fensel later sharpened that to "a formal, explicit specification of a shared conceptualization" [2]. In plain terms: an agreed, written-down model of the things in a domain, the names they go by and the ways they can relate to each other, precise enough for software to work with.

That is not the same as a knowledge graph, although the two are often mixed up. The ontology is the schema and the vocabulary: which kinds of things exist and which relations are allowed between them. The knowledge graph is the data that follows those rules: this kit, that analyser, and the edge that says one runs on the other [3].

Our ontology is deliberately small and practical:

  • Classes: product, organism, instrument, consumable, method, gene marker and sample type.
  • Relations with a fixed meaning and fixed ends: a product detects an organism, runs on an instrument, requires a consumable, supports a sample type, is certified by a body. The cross-reactivity trap above is exactly why "is a target" and "is mentioned for cross-reactivity" have to be different relations.
  • One concept, many names: every concept has one preferred name and any number of alternative names, the same idea as the preferred and alternative labels in the W3C SKOS standard [4]. "PCR Analyser 5000" is the concept; the three spellings are its labels.

This is what makes the AI useful instead of merely fluent:

  • One shared language for two different sources. The language model reads a supplier's leaflet and a hospital's tender, but it has to express both in the terms of the ontology: every entity mapped to a class and a concept, every relationship to one of the allowed relations. Only then can the two be compared exactly.
  • Guard rails for the model. Because each relation has a defined meaning and connects defined classes, an extracted edge that does not fit, say a kit that "runs on" a swab, can be caught by deterministic validation or human review instead of silently entering the graph.
  • Questions no single document answers. Which kits detect all four organisms in this tender, which instrument does each need, and which consumables does that instrument use? That is a walk through the graph, and it only works if every step means the same thing everywhere.

None of this is new, and that is the point. Noy and McGuinness's "Ontology Development 101" [5] is still the most readable guide to building one. Biomedicine has a long tradition of shared ontologies and terminologies, from the OBO Foundry [6] to the Unified Medical Language System [7] and the NCBI Taxonomy for organisms [8]. Ours is a lightweight, domain-specific ontology built around this supplier's portfolio and tender questions, not a full biomedical standard; where standard identifiers exist, an ontology like this can be linked to them. Combining language models with knowledge graphs is an active research field in its own right [9]: language models are good at reading messy text, knowledge graphs at keeping facts consistent and explainable. This platform puts each where it is strongest.

The graph, in two tables

The knowledge graph lives in PostgreSQL in two core tables. Entities holds the normalised organisms, instruments, methods, consumables, gene markers and sample types, each with a canonical name, a type, aliases and the document that first introduced it. Product relationships holds the typed edges: detects, runs on, requires, uses, compatible with, supports sample, certified by. Every edge carries its source document, a confidence score and a review status.

At this scale PostgreSQL handles the graph queries well, and the schema is designed so it can move to a dedicated graph database when the questions get more complex.

Reading the tender

A tender spreadsheet split into typed requirements with quality flags
A tender spreadsheet split into typed requirements with quality flags

Tenders mostly arrive as Excel compliance matrices, sometimes as PDFs. The platform parses the structure, finds the requirement rows and extracts each requirement with its verbatim text, a category (technical, commercial, compliance or submission), a priority (mandatory, optional or unclear) and the entities it mentions, with a page and section reference.

The AI also flags quality issues: ambiguous wording ("results in under one hour": per sample or per run?), missing quantities, brand-locked language and requirements that contradict each other. Bid teams can reclassify, edit and annotate before matching.

Coverage, gaps and dependencies

Coverage matrix of requirements against products
Coverage matrix of requirements against products

The requirement entities are resolved against the same ontology and the graph is queried for every product. Each product gets a coverage score, classified as a full, partial or no match, and for anything incomplete the platform lists exactly which entities are missing. For a matched product, its direct dependencies are in view, so the team sees which instrument and consumables a complete offer needs.

When two documents for the same product disagree, for example a brochure listing fewer targets than the leaflet, the discrepancy is flagged for a person rather than resolved automatically.

Ask, with sources

Question and answer with citations to source pages
Question and answer with citations to source pages

On top of the graph sits a conversational interface. Questions like "which requirements in this tender are not covered by any product?" get answers that combine several documents and relationships, and every factual claim links to the document, page and extracted evidence. When evidence is uncertain or conflicting, the answer says so.

How you know it works

We validated against reality, not against our own expectations. Extraction accuracy is measured by comparing a subset of extracted profiles with the source documents: the share of target organisms found, the share of instrument and consumable relationships captured, and the rate of false duplicate entities. Tender matching is measured against a tender the supplier had already answered: for every requirement they marked as compliant, the platform should find at least one matching product, and for requirements marked as non-compliant it should produce no false positives.

The single most valuable activity in the whole project was a domain expert reviewing those results with us. No metric replaces someone who knows the products.

Security from day one

The platform handles commercially sensitive data, so the governance layer is not an afterthought: role-based and attribute-based access control (down to product segment and document class), an append-only audit log of every upload, approval, edit and login, tenant isolation at the application and database level, and GDPR by design.

Beyond healthcare

The pattern travels well: any company that answers tenders or customer requirements from a large body of technical documentation, such as industrial components, building products or lab equipment, has the same problem. Read the tender-matching case, see the other AI cases, or book a 30-minute call to talk about your documents.

References

  1. [1]Gruber, T. R. (1993). A translation approach to portable ontology specifications. Knowledge Acquisition, 5(2), 199–220.
  2. [2]Studer, R., Benjamins, V. R., & Fensel, D. (1998). Knowledge engineering: Principles and methods. Data & Knowledge Engineering, 25(1–2), 161–197.
  3. [3]Hogan, A., et al. (2021). Knowledge graphs. ACM Computing Surveys, 54(4), Article 71. https://doi.org/10.1145/3447772
  4. [4]W3C (2009). SKOS Simple Knowledge Organization System Reference. W3C Recommendation. https://www.w3.org/TR/skos-reference/
  5. [5]Noy, N. F., & McGuinness, D. L. (2001). Ontology Development 101: A guide to creating your first ontology. Stanford Knowledge Systems Laboratory, Technical Report KSL-01-05.
  6. [6]Smith, B., et al. (2007). The OBO Foundry: coordinated evolution of ontologies to support biomedical data integration. Nature Biotechnology, 25(11), 1251–1255.
  7. [7]Bodenreider, O. (2004). The Unified Medical Language System (UMLS): integrating biomedical terminology. Nucleic Acids Research, 32(Database issue), D267–D270.
  8. [8]Federhen, S. (2012). The NCBI Taxonomy database. Nucleic Acids Research, 40(D1), D136–D143.
  9. [9]Pan, S., Luo, L., Wang, Y., Chen, C., Wang, J., & Wu, X. (2024). Unifying large language models and knowledge graphs: A roadmap. IEEE Transactions on Knowledge and Data Engineering, 36(7), 3580–3599. https://doi.org/10.1109/TKDE.2024.3352100

About the Author

Evarest Schoofs

About Evarest Schoofs

CEO of OneBonsai, the AI and software company in Leuven that builds VR training, training simulators and production AI. He is driven by technology and how it gets put to work: he loves new gadgets, builds his own tools, and is always looking for ways to make systems work better with tech.

Evarest Schoofs on LinkedIn

Ready to talk it through?

Let's discuss how this applies to your organization