NiranjanSathish's picture
Update README.md
541c7f3 verified
---
title: Medical Drug QA Chatbot
emoji: πŸ’Š
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 4.44.0
app_file: Scripts/app.py
pinned: false
---
# πŸ’Š Medical Drug QA Chatbot
An intelligent chatbot that answers questions about medications using advanced NLP techniques.
## Features
- πŸ” **Smart Query Processing**: BioBERT-based NER for drug entity extraction
- πŸ“š **Hybrid Retrieval**: FAISS + BioBERT semantic reranking
- πŸ€– **AI-Powered Answers**: Groq Llama-4 for natural language generation
- πŸ’Ύ **Comprehensive Database**: Mayo Clinic drug information
## Usage
Simply ask questions about:
- Side effects and warnings
- Dosage and usage instructions
- Drug interactions
- Storage guidelines
- Precautions for specific conditions
## Example Questions
- "What are the side effects of Aspirin?"
- "How should I store Insulin?"
- "What precautions should I take with Lisinopril?"
- "Can I take Metformin with alcohol?"
## Tech Stack
- **Frontend**: Gradio
- **NER**: BioBERT (alvaroalon2/biobert_chemical_ner)
- **Embeddings**: MiniLM-V6, BioBERT
- **Vector DB**: FAISS
- **LLM**: Llama-4 via Groq API
## ⚠️ Disclaimer
This chatbot provides educational information only. Always consult healthcare professionals for medical advice.
## Setup
1. Clone the repository
2. Install dependencies: `pip install -r requirements.txt`
3. Set `GROQ_API_KEY` environment variable
4. Build FAISS index: `python Scripts/Retrieval.py`
5. Run: `python app.py`