Skip to main content

Project overview

About this documentation

This site documents a graduation project for the AI Technology Architect programme at PXL University College (Hasselt, Belgium). It was written by SOFT4U BV and the project team. The system was built as a pilot for Ziekenhuis Oost-Limburg (ZOL).

This is not an official ZOL publication, and ZOL has not endorsed its content. Older pages use the project's working name, "ZOL Intelligent Search". Security-sensitive implementation detail (code locations, interfaces, infrastructure) has been left out of this public edition.

New here? Start with For reviewers.

Business context​

Ziekenhuis Oost-Limburg (ZOL) is a hospital in the Belgian province of Limburg with several campuses. According to the project brief of January 2026, the hospital website receives more than 100,000 visitors a month and about 25,000 site searches a month. It offers about 1,000 brochures and descriptions of more than 700 conditions and treatments. These figures come from that brief; this project did not measure them.

The content exists, but patients struggle to find what they need.

Problem statement​

According to the same brief, the existing site search uses Elasticsearch keyword matching. Keyword search works well for catalogue-style lookups but poorly for the way people ask about their health. Consider a patient who types:

"Ik heb al weken last van mijn knie en het wordt niet beter" (I've been having trouble with my knee for weeks and it's not getting better)

A keyword engine splits this into separate words (knie, weken, beter) and looks for pages containing them. It cannot work out that this patient is probably looking for the orthopaedics department, its consultation hours, or which campus offers the service.

Keyword search fails on hospital questions for three structural reasons. A later part of the system is designed to address each one:

  1. Vocabulary gap. Patients use everyday Dutch ("suikerziekte") while the content uses clinical terms ("Diabetes Mellitus"). (Addressed by SNOMED CT synonym expansion.)
  2. Relations. A question such as "which doctor treats this condition, and at which campus" needs links between doctors, departments, conditions and campuses, which ranking documents cannot provide. (Addressed by the knowledge graph.)
  3. Authority. The system must tell an authoritative listing (the official doctor directory) from a passing mention (a name in a brochure). (Addressed by golden-page seeding.)

The approach: Retrieval Augmented Generation​

The system replaces keyword matching with Retrieval Augmented Generation (RAG) (Lewis et al., 2020). It first retrieves relevant passages from the hospital's content, then a language model writes a short answer from those passages and cites them.

Instead of matching words, the system turns questions and content into numerical representations of their meaning, called embeddings (see the embedding decision). This lets it recognise that "pijn in mijn knie" (pain in my knee) is related to "orthopedische consultatie" (orthopaedic consultation), even though the two phrases share no words.

Meaning alone misses exact terms. A doctor's surname or a specific procedure name such as "cardioversie" should return exact matches. A keyword search runs alongside the meaning-based search, and the two result lists are merged by rank (Reciprocal Rank Fusion). See Hybrid search.

Knowledge graph​

A knowledge graph stored in PostgreSQL records which doctors work in which departments, which departments treat which conditions, and which campuses offer which services. A question like "Who is the orthopaedic surgeon at this campus?" needs these explicit relations, not text similarity.

Medical safety​

The system must not give medical advice. Questions that ask for dosing, self-medication, diagnosis or treatment choice are refused with a link to the hospital's validated brochure (the refuse-and-link policy). The web chat shows a standing notice that it is an AI assistant and gives no medical advice.

This policy was tightened after a failure. From 15 May 2026 the pilot gave dosing advice, including on 1 June during the live jury demonstration, after an earlier design decision had allowed dosing information from brochures. What happened, and what was changed, is described in the incident record.

Success criteria​

The January 2026 project brief set these targets:

CriterionTarget in the briefStatus
Search relevanceMeasurable improvement over the current search (+20% mentioned in one source document)No measurement against the existing search is reported on this site
Load on the telephone switchboardFewer simple questions (−15% mentioned in one source document)No measurement is reported on this site
Medical-advice incidentsZeroNot met. See the June 2026 dose incident. Refusal is now checked by the project's own automated tests and a post-deployment probe; these checks have had gaps, described on the Safety page.
Content-gap identificationSystematic surfacing of missing or under-performing content through loggingSee Evaluation

Where to go next​