Skip to content

Hassan123j/MediBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

MediBot

MediBot is a healthcare-focused AI chatbot that lets you query PDF documents such as clinical reports, medical papers, or patient records using Retrieval-Augmented Generation (RAG). Powered by LangChain, Groq LLM, HuggingFace embeddings, and ChromaDB, MediBot delivers fast, reliable, and context-aware answers directly from your documents.


Overview

MediBot transforms static medical PDFs into an interactive Q&A experience. Whether you're a healthcare professional, researcher, or student, you can upload documents and ask questions in natural languageβ€”getting grounded answers instantly.

It uses:

  • Sentence embeddings via HuggingFace
  • Fast inference through Groq LLM
  • Vector-based semantic search to retrieve relevant content chunks

Demo: LinkedIn Demo


Features

  • Upload and parse medical or general PDFs
  • Automatic document chunking and indexing
  • Semantic search with HuggingFace all-MiniLM-L12-v2
  • Fast, context-aware answers using Groq LLM
  • Simple and clean UI with Streamlit
  • API key management via .env

Tech Stack

Component Tool/Service
LLM Groq API
Embeddings HuggingFace
Framework LangChain
Frontend Streamlit
Vector DB ChromaDB via LangChain

Setup

Clone the repo:

git clone https://github.com/Hassan123j/medibot.git
cd medibot

Install the required packages:

pip install -r requirements.txt

Set your Groq API key via environment variable:

export GROQ_API_KEY=your_api_key_here

Or add it to a .env file:

GROQ_API_KEY=your_api_key_here

Run the App

streamlit run app.py

This will launch the MediBot interface in your browser. Upload a PDF, ask a question, and receive medically grounded responses.


Project Structure

medibot/
β”œβ”€β”€ app.py            # Main Streamlit app
β”œβ”€β”€ requirements.txt  # Python dependencies
β”œβ”€β”€ .env              # Optional: API key
└── README.md         # Project documentation

Contributing

We welcome contributions! Open an issue or submit a pull request with improvements, bug fixes, or suggestions.

About

MediBot is an AI-powered healthcare assistant that extracts relevant information from medical PDFs. Using Retrieval-Augmented Generation (RAG), LangChain, and Groq LLM, MediBot allows users to upload documents and ask questions, providing instant, context-aware answers from clinical papers, research, and patient records.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages