This project is a Generative AI Medical Chatbot that leverages Ollama (Gemma 3B), LangChain, Pinecone, and Flask to provide intelligent responses based on medical knowledge.
- Local LLM powered by Ollama (Gemma 3B)
- Vector search using Pinecone
- Retrieval-Augmented Generation (RAG) with LangChain
- Flask-based API for chatbot interaction
- Medical knowledge extraction from The Gale Encyclopedia of Medicine
- Python 3.10
- Ollama (Gemma 3B)
- LangChain
- Pinecone
- Flask
- Sentence Transformers
- pypdf (for document parsing)
git clone https://github.com/Hari-2782/medical-chatbot.git
cd medical-chatbotconda create --name medic-chatbot-env python=3.10
conda activate medic-chatbot-envpip install -r requirements.txtcurl -fsSL https://ollama.com/install.sh | sh # For macOS/Linux
ollama pull gemma:3b**Create a .env file and add:
PINECONE_API_KEY=your_pinecone_api_keypython app.pyAccess the chatbot at: http://localhost:8000
This project is licensed under the MIT License. See the LICENSE file for details.