Spaces:
Runtime error
Runtime error
File size: 1,478 Bytes
6cf6a92 541c7f3 6cf6a92 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | ---
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` |