An AI-powered healthcare chatbot combining Llama 3.1 for generation and DistilBERT for intent classification, deployable via Streamlit/Flask or AWS infrastructure.
- 🩺 Medical-Specific Responses: Context-aware healthcare answers
- 🧠 Dual-Model Pipeline:
- Intent classification (DistilBERT)
- Answer generation (T5/Llama-3)
- 🚀 Flexible Deployment:
- Streamlit prototype
- Flask REST API
- AWS EC2 + S3 (production)
git clone https://github.com/yourusername/MediChat-AI.git
cd MediChat-AI
pip install -r requirements.txt
# Set API key (get from https://together.ai)
echo "TOGETHER_API_KEY=your_key_here" > .env
# Run Streamlit demo
streamlit run app.py├── app.py # Streamlit interface
├── chatbot_webapp.py # Flask API
├── llm.py # Together.ai LLM wrapper
├── requirements.txt # Python dependencies
├── /models # For local model storage
│ ├── intent_classifier_minimal
│ └── generator_minimal
streamlit run app.py # Demo on http://localhost:8501
python chatbot_webapp.py # Flask API on :5000graph LR
A[EC2 Instance] -->|Load| B(S3 Models)
A -->|Serve| C(API Gateway)
D[User] -->|HTTPS| C
Requirements:
- EC2 instance (GPU recommended)
- S3 bucket for models
- IAM roles with S3 access
sequenceDiagram
User->>UI: Ask question
UI->>Intent Classifier: Get focus area
Intent Classifier->>Answer Engine: Structured prompt
Answer Engine->>LLM: Augmented request
LLM->>User: Verified response
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit changes (
git commit -m 'Add feature') - Push (
git push origin feature/amazing-feature) - Open a Pull Request
Apache 2.0 - See LICENSE

