An AI-powered comprehensive medicine database and drug interaction checker with special focus on Indian medicines and mental health medications. Built with FastAPI, React, and RAG (Retrieval-Augmented Generation) architecture.
- 45+ Medications including Indian brands
- 20+ Mental Health Drugs: Antidepressants, Anti-anxiety, Antipsychotics, Mood stabilizers
- Indian Medicines: Crocin, Combiflam, Pan 40, Ecosprin, and more
- Ayurvedic Options: Ashwagandha, Triphala, Tulsi
- Drug Interaction Checker: Check safety of drug combinations
- Pill Identifier: Identify pills by appearance
- Medicine by Condition: Browse drugs by health condition
- Voice Search: Search medicines using voice
- Price Information: Indian market prices in INR
- Prescription Status: Know which drugs need prescription
- Comprehensive information on psychotropic medications
- Controlled substance warnings
- Detailed side effects and interactions
- Dosage guidelines
- Python 3.8+
- Node.js 14+
- Git
- Clone the repository:
git clone https://github.com/yourusername/medicine-drug-advisor.git
cd medicine-drug-advisor- Set up Python virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install backend dependencies:
cd backend
pip install -r requirements.txt- Set up environment variables:
cp .env.example .env
# Add your OpenAI API key to .env (optional for enhanced features)- Run the backend server:
python enhanced_main.pyThe API will be available at http://localhost:8000
- Navigate to frontend directory:
cd ../frontend
npm install- Start the development server:
# Open the enhanced HTML file in your browser
open enhanced-index.html # On Mac
# Or simply double-click the enhanced-index.html filePOST /query- Process natural language queries about medicinesPOST /check-interaction- Check interactions between two drugsGET /drug/{drug_name}- Get detailed information about a specific drugGET /mental-health-drugs- List all mental health medicationsGET /search/{category}- Search drugs by categoryGET /all-drugs- Get complete drug list
# Check drug information
curl -X POST http://localhost:8000/query \
-H "Content-Type: application/json" \
-d '{"query": "What are the side effects of sertraline?"}'
# Check drug interaction
curl -X POST http://localhost:8000/check-interaction \
-H "Content-Type: application/json" \
-d '{"drug1": "alprazolam", "drug2": "alcohol"}'- Antidepressants: Sertraline (Zoloft), Fluoxetine (Prozac), Escitalopram (Lexapro)
- Anti-anxiety: Alprazolam (Xanax), Clonazepam (Klonopin), Lorazepam (Ativan)
- Antipsychotics: Quetiapine (Seroquel), Olanzapine (Zyprexa), Risperidone (Risperdal)
- Mood Stabilizers: Lithium, Valproate (Depakote), Carbamazepine (Tegretol)
- Pain/Fever: Crocin, Dolo 650, Combiflam
- Acid/Gastric: Pan 40, Omez
- Antibiotics: Azithral, Augmentin
- Heart/BP: Ecosprin, Amlodipine
medicine-drug-advisor/
βββ backend/
β βββ enhanced_main.py # FastAPI application
β βββ comprehensive_drug_database.py # Drug database
β βββ rag_pipeline.py # RAG implementation
β βββ vector_db.py # FAISS vector database
β βββ requirements.txt
βββ frontend/
β βββ enhanced-index.html # Main UI (dark theme)
β βββ index.html # Alternative UI
βββ README.md
- Backend: FastAPI, Python, LangChain, FAISS
- Frontend: HTML5, Tailwind CSS, JavaScript
- Database: In-memory comprehensive drug database
- APIs: FDA OpenFDA, RxNorm (optional)
This tool is for educational and informational purposes only. Always consult with qualified healthcare professionals before making any medical decisions.
Some medications in the database are controlled substances. These require special prescriptions and have strict regulations.
- FDA approved drug information
- Indian pharmaceutical databases
- Clinical drug interaction databases
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- FDA OpenFDA for drug label data
- RxNorm for drug interaction data
- Indian pharmaceutical companies for drug information
- Open source community for amazing tools
Your Name - @yourtwitter
Project Link: [[https://github.com/sumankrsh/medicine-drug-advisor]