monarch-initiative / pheval.llm

Analysis of LLMs for Clinical Observations
https://monarch-initiative.github.io/pheval.llm/
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link
biomedical-ontologies clinical-diagnosis hpo large-language-models monarchinitiative phenopackets rare-diseases

pheval.llm

Contributors Stars Licence Issues

Evaluate LLMs' capability at performing differential diagnosis for rare genetic diseases through medical-vignette-like prompts created with phenopacket2prompt.

Description

To systematically assess and evaluate an LLM's ability to perform differential diagnostics tasks, we employed prompts programatically created with phenopacket2prompt, thereby avoiding any patient privacy issues. The original data are phenopackets located at phenopacket-store. A programmatic approach for scoring and grounding results is also developed, made possible thanks to the ontological structure of the Mondo Disease Ontology.

Two main analyses are carried out:

Formerly MALCO, Multilingual Analysis of LLMs for Clinical Observations. Built using the PhEval runner template.

Usage

Before starting a run take care of editing the run parameters as follows:

At this point one can install and run the code by doing

poetry install
poetry shell
mkdir outputdirectory
cp -r /path/to/promptdir inputdir/
pheval run -i inputdir -r "malcorunner" -o outputdirectory -t tests