Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available:
6.6.0
metadata
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
- Clone the repository
- Install dependencies:
pip install -r requirements.txt - Set
GROQ_API_KEYenvironment variable - Build FAISS index:
python Scripts/Retrieval.py - Run:
python app.py