Git Product home page Git Product logo

multi-agent-patient-letter-generation's Introduction

Agentic Workflows in Patient-Friendly Letter Generation

The application of Large Language Models (LLMs) in healthcare is expanding rapidly, with one potential use case being the translation of formal medical reports into patient-legible equivalents. Currently, LLM outputs often need to be edited and evaluated by a human to ensure both factual accuracy and comprehensibility, and this is true for the above use case. We aim to eliminate this step by proposing an agentic workflow using Reflexion, which uses iterative self-reflection to correct outputs from an LLM. This pipeline was tested and compared to zero-shot prompting on 16 randomized radiology reports. In our multi-agent approach, reports had an accuracy rate of 94.94%, when looking at verification of ICD-10 codes, compared to zero-shot prompted reports, which had an accuracy rate of 68.23%. Of the final reflected reports, 81.25% did not need to be corrected for accuracy or readability, compared to just 25% of zero-shot prompted patient reports that did not require any modifications. These results indicate that our approach is a feasible method for clinical findings to be communicated to patients in a quick, efficient and coherent manner whilst also retaining medical accuracy.

Running the Script

From the main Multi-Agent-Patient-Letter-Generation directory, navigate to the alfworld_runs folder where the script is located. Then, run the patient-letter-generation.py file by using the following command:

python alfworld_runs/patient-letter-generation.py

This command will start the multi-agent pipeline and generate the patient-friendly reports based on the given inputs. Remember to replace the OpenAI [API-KEY] value and the sample medical report with your own parameters.

multi-agent-patient-letter-generation's People

Contributors

malavikhasudarshan avatar

Stargazers

 avatar alittlefish avatar Chinmay Singhal 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.