IDEAS home Printed from https://ideas.repec.org/a/gam/jftint/v18y2026i3p139-d1882612.html

Implementation and Evaluation of an Open-Source Chatbot for Patient Information Leaflets

Author

Listed:
  • Lisa Heiler

    (Institute of eHealth, University of Applied Sciences—FH Joanneum, 8020 Graz, Austria)

  • Katharina Kirchsteiger

    (Institute of eHealth, University of Applied Sciences—FH Joanneum, 8020 Graz, Austria)

  • Sten Hanke

    (Institute of eHealth, University of Applied Sciences—FH Joanneum, 8020 Graz, Austria)

  • Markus Bödenler

    (Institute of eHealth, University of Applied Sciences—FH Joanneum, 8020 Graz, Austria)

Abstract

Accessing and understanding medication information can be challenging for many people, especially when patient information leaflets (PILs) are long, complex, and printed in small font. This study presents MediChat, an open-source, locally executable chatbot designed to provide reliable, easy-to-read answers to medication-related questions based exclusively on official PILs. MediChat follows a retrieval-augmented generation (RAG) architecture: PILs from the Austrian Medicinal Product Index are received via API, converted to text, split into overlapping chunks, embedded, and stored in a Chroma vector database. From there the top-k relevant chunks are retrieved, and Llama 3.1 generates German responses based on this evidence. The system was evaluated using a hybrid framework. Quantitatively, 200 yes/no questions across ten drugs were answered with 80% accuracy, overall precision 0.977, recall 0.686, F1-score 0.806, and a mean response time of 727 ms. Qualitatively, two personas were used in eight simulated dialogues. Response times were around 1.1–1.3 s, and task completion exceeded 85% with high ratings for relevance and quantity. These results indicate that an open-source RAG chatbot can deliver leaflet-grounded, user-friendly medication information and provide a reproducible template for future healthcare chatbot evaluations.

Suggested Citation

  • Lisa Heiler & Katharina Kirchsteiger & Sten Hanke & Markus Bödenler, 2026. "Implementation and Evaluation of an Open-Source Chatbot for Patient Information Leaflets," Future Internet, MDPI, vol. 18(3), pages 1-16, March.
  • Handle: RePEc:gam:jftint:v:18:y:2026:i:3:p:139-:d:1882612
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1999-5903/18/3/139/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1999-5903/18/3/139/
    Download Restriction: no
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jftint:v:18:y:2026:i:3:p:139-:d:1882612. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager The email address of this maintainer does not seem to be valid anymore. Please ask MDPI Indexing Manager to update the entry or send us the correct address (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.