This application allows users to input medical questions and receive answers based on information gathered from PubMed. The answers are generated using the GPT-4 Turbo model, which provides responses in the form of an assay. The app utilizes the Streamlit framework for the user interface and requires access to the OpenAI API for model inference.
To run the application locally, follow these steps:
- Clone this repository to your local machine.
- Install the required dependencies using pip:
pip install -r requirements.txt
- Set up your OpenAI API key by creating a secrets.toml file in the root directory of the project and adding your key:
[streamlit]
OPENAI_API_KEY = "your_openai_api_key"
- Run the Streamlit app:
streamlit run app.py
Once the application is running, users can enter their medical questions into the provided text box and click the "Answer" button to receive a response. The app will use the GPT-4 Turbo model to generate answers based on information retrieved from PubMed.
- This application relies on the LangChain library for natural language processing tasks.
- The GPT-4 Turbo model is provided by OpenAI.
- PubMed is used as a source of medical information.
This project is licensed under the Apache License 2.0