Skip to content

SYannL/MedRAG_Demo

Repository files navigation

🎈 MedRAG Demo

This is a simple demo for MedRAG based on Streamlit

Overview of the App

This app showcases three funcionabilities in the Paper.

funtions include:

  • Q&A by typing
  • Diagnose based on uploaded EHR file
  • Diagnose based on STT (Speech-to-Text)

How to Use

Get an OpenAI API key

You can get your own OpenAI API key by following the following instructions:

  1. Go to https://platform.openai.com/account/api-keys.
  2. Click on the + Create new secret key button.
  3. Next, enter an identifier name (optional) and click on the Create secret key button.

Set up OpenAI API key

To set the OpenAI API key as an environment variable, please enter the OpenAI API key in file auth_api.py

openai_api_key='xxxxxxxxxx'

Set up Google Cloud Credentials

To use monitoring functino of MedRAG, please enter the correct Google Cloud Credentials in file monitor.py

os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'path_to_your_Google_XXXX.json'

Run it locally

streamlit run Chatbot.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages