Skip to content

Hari-2782/Medical-Chatbot-Generative-_Ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏥 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

About

A generative AI chatbot built for answering medical queries using trusted data. It uses LangChain, Pinecone, and Flask to deliver relevant, accurate responses. Designed for easy deployment with a focus on helpful, real-time guidance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages