MediClick is a state-of-the-art medical chatbot built using Retrieval-Augmented Generation (RAG). It leverages LangChain, Pinecone, and OpenRouter (Claude 3 Haiku) to provide accurate medical information based on trusted medical literature.
- Premium UI: Modern, responsive interface with glassmorphism and smooth animations.
- RAG Powered: Fetches context from a specialized medical knowledge base (PDF).
- OpenRouter Integration: Uses Claude 3 Haiku for intelligent, cost-effective responses.
- Pinecone Vector DB: High-performance similarity search for medical context.
- Frontend: HTML5, CSS3 (Custom Premium Theme), JavaScript (jQuery)
- Backend: Flask (Python)
- LLM: Claude 3 Haiku (via OpenRouter)
- Orchestration: LangChain
- Vector Database: Pinecone
- Embeddings: HuggingFace (MiniLM-L6-v2)
- Python 3.10+
- Pip (Python Package Manager)
git clone https://github.com/chanchal6232/Medical-Chatbot.git
cd Medical-Chatbotpython -m venv venv- Windows:
.\venv\Scripts\activate
- Linux/Mac:
source venv/bin/activate
pip install -r requirements.txtCreate a .env file in the root directory and add your credentials:
PINECONE_API_KEY="your_pinecone_key"
OPENROUTER_API_KEY="your_openrouter_key"If you need to re-index the medical data from the data/ folder:
python store_index.pypython app.pyNow, open your browser and navigate to:
http://localhost:8080
app.py: Main Flask application.store_index.py: Script to upsert PDF embeddings to Pinecone.src/: Core logic, helpers, and prompts.static/: Modern CSS and assets.templates/: Chat interface HTML.data/: Source medical documents (PDFs).
Feel free to fork this project and submit pull requests for any enhancements!
This project is licensed under the MIT License.