Skip to content

MediBot – AI-powered healthcare assistant that answers medical queries using natural language processing and vector search. Built with LangChain, LLMs, and real-time retrieval for accurate, context-aware responses.

License

Notifications You must be signed in to change notification settings

biswajeetyadavv/GenAI-Medibot

Repository files navigation

GenAI-Medibot: Healthcare Query System using Vector Search and LLMs

Medibot is a context-aware medical chatbot that leverages large language models (LLMs) with FAISS-based vector memory to provide relevant, data-driven responses. It allows persistent memory and conversational context management, designed for efficiency and adaptability in healthcare-oriented environments.

Features

  • Integrates LLMs with vector memory for enhanced contextual conversation.
  • Utilizes FAISS for efficient semantic search on embedded medical documents.
  • Modular design for memory creation, connection, and inference.

Project Structure

data/                        - Data directory for medical documents
vectorstore/db_faiss/       - FAISS vector database files
connect_memory_with_llm.py  - Loads memory and connects with LLM for inference
create_memory_for_llm.py    - Embeds documents and creates FAISS vector store
medibot.py                  - Main execution script for chatbot
requirements.txt            - Required Python packages
Pipfile / Pipfile.lock      - Pipenv environment configuration
LICENSE                     - Project license (MIT)
README.md                   - Project overview and setup instructions

Setup Instructions

  1. Clone the Repository
git clone https://github.com/biswajeetyadavv/medibot.git
cd medibot
  1. Install Dependencies
pip install -r requirements.txt

or using pipenv:

pipenv install
pipenv shell
  1. Prepare the Data
Place your medical documents (PDF or text files) inside the data/ folder
  1. Create Vector Memory Run the following script to embed the documents and generate the FAISS vector store:
python create_memory_for_llm.py
  1. Launch the Chatbot Start the chatbot interface that uses the embedded memory and connects to the LLM:
python connect_memory_with_llm.py

Tech Stack

  • Python 3.8+
  • FAISS – for efficient vector similarity search
  • OpenAI / compatible LLMs – for natural language understanding
  • LangChain (if used) – for chaining memory and language tools
  • Streamlit or Flask (optional frontend integration)

##Notes

  • Ensure API keys or access tokens (e.g., OpenAI keys) are managed securely and excluded via .gitignore.
  • The project supports easy extension for custom documents, additional tools, and deployment options.

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

You can now paste this directly into your `README.md` file — it's compact, professional, and well-structured for viewers on GitHub or recruiters checking your profile. Let me know if you want to add **screenshots**, a **demo section**, or **badges** (like Python version, license, or build status).

About

MediBot – AI-powered healthcare assistant that answers medical queries using natural language processing and vector search. Built with LangChain, LLMs, and real-time retrieval for accurate, context-aware responses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages