This is a simple demo for MedRAG based on Streamlit
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)
You can get your own OpenAI API key by following the following instructions:
- Go to https://platform.openai.com/account/api-keys.
- Click on the
+ Create new secret keybutton. - Next, enter an identifier name (optional) and click on the
Create secret keybutton.
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'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'streamlit run Chatbot.py