Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 1.6 KB

File metadata and controls

62 lines (51 loc) · 1.6 KB

🏥 Medical Chatbot using Ollama, LangChain & Pinecone

📌 Overview

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.

🚀 Features

  • 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

🛠️ Tech Stack

  • Python 3.10
  • Ollama (Gemma 3B)
  • LangChain
  • Pinecone
  • Flask
  • Sentence Transformers
  • pypdf (for document parsing)

🔧 Installation

1️⃣ Clone the Repository

git clone https://github.com/Hari-2782/medical-chatbot.git
cd medical-chatbot

2️⃣ Set Up Environment

conda create --name medic-chatbot-env python=3.10
conda activate medic-chatbot-env

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Install Ollama & Pull Model

curl -fsSL https://ollama.com/install.sh | sh  # For macOS/Linux
ollama pull gemma:3b

5️⃣ Set Up Pinecone

**Create a .env file and add:

PINECONE_API_KEY=your_pinecone_api_key

6️⃣ Run the Chatbot

python app.py

Access the chatbot at: http://localhost:8000

License

This project is licensed under the MIT License. See the LICENSE file for details.

📺 Demo Video

medical.chatbot.mp4