Skip to main content

Hospital Search Assistant

A search assistant that answers patients' questions about a hospital from the hospital's own published content, with citations.

Documentation of a PXL University College AI Technology Architect graduation project by SOFT4U BV, built as a pilot for Ziekenhuis Oost-Limburg (ZOL). Not an official ZOL publication.

Answers from the hospital's own content

Retrieval Augmented Generation (RAG) first looks up the hospital's published pages and brochures, then writes a short answer from them with citations, instead of matching keywords.

Knowledge graph

A knowledge graph, stored in PostgreSQL, records which doctors work in which departments and which departments treat which conditions, so questions like "who treats this, and where?" can be answered.

Medical safety

Questions asking for dosing, diagnosis or treatment choice are refused with a link to the hospital's validated brochure. This policy follows a dose-advice failure in June 2026, described openly on the Safety page.

How it is built

The system combines several techniques. Each design choice is recorded, with its reasons, in the decision log.

  • Retrieval Augmented Generation answers from the hospital's published content and cites its sources
  • Knowledge graph records the relations between doctors, departments, conditions and campuses
  • Layered safety checks refuse requests for medical advice; the chat shows a standing AI notice
  • Evaluation on the project's own question sets (self-reported)
View the system overview
Front end
Web chat (React + TypeScript) and a phone channel
Application server
Python (FastAPI) with streamed answers
Answer pipeline
Intent, retrieval, generation, safety checks
Data
PostgreSQL with pgvector, Redis, object storage