Delete README.md
Browse files
README.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
| 1 |
-
# π©Ί AI Healthcare Assistant
|
| 2 |
-
|
| 3 |
-
A production-ready multi-agent AI healthcare assistant built with LangGraph, LangChain, Groq LLM, and Tavily API.
|
| 4 |
-
|
| 5 |
-
## β¨ Features
|
| 6 |
-
|
| 7 |
-
- **5 Intelligent Agents** working in collaboration:
|
| 8 |
-
- π§ Symptom Analyzer - Analyzes symptoms and identifies possible conditions
|
| 9 |
-
- π Medication Agent - Suggests medications with safety information
|
| 10 |
-
- πΏ Home Remedies Agent - Provides natural treatment options
|
| 11 |
-
- π₯ Diet & Lifestyle Advisor - Offers nutritional and lifestyle guidance
|
| 12 |
-
- π¨ββοΈ Doctor Recommendation Agent - Suggests relevant specialists
|
| 13 |
-
|
| 14 |
-
- **Real-time Verified Data** via Tavily API
|
| 15 |
-
- **Modern Streamlit UI** with collapsible cards and responsive design
|
| 16 |
-
- **LangGraph Workflow** for seamless agent coordination
|
| 17 |
-
- **Comprehensive Error Handling** and safety disclaimers
|
| 18 |
-
|
| 19 |
-
## π Quick Start
|
| 20 |
-
|
| 21 |
-
### 1. Install Dependencies
|
| 22 |
-
|
| 23 |
-
```bash
|
| 24 |
-
pip install -r requirements.txt
|
| 25 |
-
```
|
| 26 |
-
|
| 27 |
-
### 2. Set Up Environment Variables
|
| 28 |
-
|
| 29 |
-
Create a `.env` file in the project root:
|
| 30 |
-
|
| 31 |
-
```env
|
| 32 |
-
GROQ_API_KEY=your_groq_key_here
|
| 33 |
-
TAVILY_API_KEY=your_tavily_key_here
|
| 34 |
-
```
|
| 35 |
-
|
| 36 |
-
**Get your API keys:**
|
| 37 |
-
- Groq API: https://console.groq.com/
|
| 38 |
-
- Tavily API: https://tavily.com/
|
| 39 |
-
|
| 40 |
-
### 3. Run the Application
|
| 41 |
-
|
| 42 |
-
```bash
|
| 43 |
-
streamlit run app.py
|
| 44 |
-
```
|
| 45 |
-
|
| 46 |
-
The app will open in your browser at `http://localhost:8501`
|
| 47 |
-
|
| 48 |
-
## π Requirements
|
| 49 |
-
|
| 50 |
-
- Python 3.8+
|
| 51 |
-
- Groq API key
|
| 52 |
-
- Tavily API key
|
| 53 |
-
|
| 54 |
-
## ποΈ Project Structure
|
| 55 |
-
|
| 56 |
-
The project is organized into modular components:
|
| 57 |
-
|
| 58 |
-
```
|
| 59 |
-
HealthCare Chatbot/
|
| 60 |
-
βββ app.py # Main entry point - orchestrates UI and agents
|
| 61 |
-
βββ agents.py # All agent definitions and LangGraph workflow
|
| 62 |
-
βββ ui.py # Streamlit UI components and styling
|
| 63 |
-
βββ config.py # API client initialization and configuration
|
| 64 |
-
βββ requirements.txt # Python dependencies
|
| 65 |
-
βββ README.md # Project documentation
|
| 66 |
-
```
|
| 67 |
-
|
| 68 |
-
## π Architecture
|
| 69 |
-
|
| 70 |
-
```
|
| 71 |
-
User Input (UI)
|
| 72 |
-
β
|
| 73 |
-
app.py (Main Orchestrator)
|
| 74 |
-
β
|
| 75 |
-
agents.py (LangGraph Workflow)
|
| 76 |
-
βββ Symptom Analyzer Agent
|
| 77 |
-
βββ Medication Agent
|
| 78 |
-
βββ Home Remedies Agent
|
| 79 |
-
βββ Diet & Lifestyle Advisor Agent
|
| 80 |
-
βββ Doctor Recommendation Agent
|
| 81 |
-
β
|
| 82 |
-
Results Display (UI)
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
### Component Responsibilities
|
| 86 |
-
|
| 87 |
-
- **`app.py`**: Main entry point that initializes clients, manages session state, and coordinates between UI and agents
|
| 88 |
-
- **`agents.py`**: Contains all 5 agent functions, state definition, Tavily search helper, and LangGraph workflow creation
|
| 89 |
-
- **`ui.py`**: All Streamlit UI components including header, sidebar, input forms, results display, and styling
|
| 90 |
-
- **`config.py`**: Handles environment variable loading and API client initialization (Groq LLM and Tavily)
|
| 91 |
-
|
| 92 |
-
## β οΈ Important Disclaimer
|
| 93 |
-
|
| 94 |
-
This AI Healthcare Assistant is designed for **informational and educational purposes only**. It does not provide medical diagnosis, treatment, or professional medical advice. Always consult with a qualified healthcare provider for any health concerns or before making any medical decisions.
|
| 95 |
-
|
| 96 |
-
## π οΈ Technology Stack
|
| 97 |
-
|
| 98 |
-
- **LangGraph** - Multi-agent workflow coordination
|
| 99 |
-
- **LangChain** - LLM orchestration
|
| 100 |
-
- **Groq LLM (Llama-3-70b)** - Reasoning and responses
|
| 101 |
-
- **Tavily API** - Real-time health data retrieval
|
| 102 |
-
- **Streamlit** - Interactive frontend
|
| 103 |
-
|
| 104 |
-
## π License
|
| 105 |
-
|
| 106 |
-
This project is for educational purposes.
|
| 107 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|