Code Monkey home page Code Monkey logo

patient-vignette-simulator's Introduction

Simulating Diverse Patient Populations Using Patient Vignettes and Large Language Models

This repository contains source code, data, and results for the paper "Simulating Diverse Patient Populations Using Patient Vignettes and Large Language Models", presented at the CL4Health Workshop at LREC-COLING 2024.

Files and folders

  • ./data/input: Contains the pre-defined patient vignettes.
  • ./data/output: Contains the results of the model predictions, comparing the answers based on each of the three vignettes.

Set-up

  1. Install pdm on your machine.
  2. Run pdm install to install the dependencies.
  3. Create an account at OpenAI and get an API key.
  4. Run pdm run-app to spin-up a local server.

Using the tool

  1. Open your browser and navigate to http://localhost:8501.
  2. Enter the API key you received from OpenAI.
  3. Select one of the two OpenAI models. More details to be found here.
  4. Select one of the pre-defined patient vignettes or create your own.
  5. Interact with the model.

Deployment of UI

  1. Export dependencies with pdm export -o requirements.txt --without-hashes (Streamlit does currently not support pdm).
  2. Build docker image.
  3. Run docker container. Server port: 8501.

patient-vignette-simulator's People

Contributors

darebfh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.