This project leverages advanced AI agents to assist doctors in diagnosing medical conditions and recommending treatment plans based on patient-reported symptoms and medical history. The solution uses Streamlit for the user interface and crewAI library to define and manage AI agents and tasks.
- Symptom Analysis: Collects patient symptoms and medical history.
- Preliminary Diagnosis: Provides a preliminary diagnosis with a list of possible conditions.
- Treatment Recommendations: Offers detailed treatment plans tailored to individual patient needs.
- Document Generation: Generates a downloadable document with diagnosis and treatment recommendations.
- Clone the repository:
git clone https://github.com/shaadclt/Doctor-Assist-crewAI.git
cd Doctor-Assist-crewAI
- Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`
- Install the dependencies:
pip install -r requirements.txt
- Set up environment variables:
- Create a .env file in the project directory with the following content:
OPENAI_API_KEY=your_openai_api_key
SERPER_API_KEY=your_serper_api_key
GROQ_API_KEY=your_groq_api_key
- Run the Streamlit app:
streamlit run app_openi.py or streamlit run app_groq.py
- Use the application:
- Open the provided local URL in your web browser.
- Enter the patient's gender, age, symptoms, and medical history.
- Click the "Get Diagnosis and Treatment Plan" button.
- View and download the generated diagnosis and treatment plan.
- app.py: The main application script that defines the Streamlit UI and integrates the AI agents.
- requirements.txt: A list of required Python packages.
- .env: Environment variables for API keys (not included in the repository).
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
- OpenAI for the powerful language models.
- Streamlit for the easy-to-use UI framework.
- CrewAI for the agent and task management tools.
For any questions or suggestions, please contact Mohamed Shaad at [email protected].