Giter VIP home page Giter VIP logo

gyanbardhan / medichat Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 22.63 MB

MediChat: An AI-powered medical chatbot using the Llama-2-7B-Chat model for precise clinical responses. Integrates Chroma DB and all-MiniLM-L6-v2 embeddings trained on medical literature, including texts like Clinical Emergency Medicine and Gale Encyclopedia. Accurate, fast, and reliable for healthcare queries.

Home Page: https://drive.google.com/file/d/1Z2c27T0WiH8-AycAJbTcVged6y0ng6rG/view?usp=drive_link

Python 8.55% Jupyter Notebook 66.30% CSS 14.39% HTML 10.77%
all-minilm-l6-v2 chromadb generative-ai langchain llama2 llm llms meta sentence-transformers vector-database flask

medichat's Introduction

MediChat

MediChat is an advanced medical chatbot designed to assist with clinical queries and provide information based on medical literature. It leverages state-of-the-art models and embeddings to deliver accurate and reliable responses.

Features

Medical Expertise:

Provides information based on extensive training on medical literature.

Advanced Model:

Utilizes the Llama-2-7B-Chat model from Hugging Face.

Vector Database:

Incorporates Chroma DB for efficient data retrieval.

High-Quality Embeddings:

Uses sentence-transformers/all-MiniLM-L6-v2 embeddings from Hugging Face.

Model Details

Llama-2-7B-Chat Model:

  • Source: Link
  • Description: An open-source large language model optimized for chat-based interactions, capable of understanding and generating human-like text.

Database and Embeddings

Chroma DB:

A vector database that allows for efficient storage and retrieval of embeddings.

Embeddings Model:

  • Source: Link
  • Description: A small, fast, and high-quality embedding model that provides dense vector representations of text.

Training Data

MediChat is trained on embeddings derived from the following medical books:

  • Clinical Emergency Medicine (PDFDrive.com)
  • Current Essentials of Medicine
  • Gale Encyclopedia of Medicine Vol. 4 (N-S)

Installation

To set up MediChat, follow these steps:

Clone the Repository:

Install Dependencies:

  • pip install -r requirements.txt

Download the Model and Embeddings:

  • Llama-2-7B-Chat model: Download from Hugging Face and place it in the models directory.
  • Sentence-Transformers embeddings: Download from Hugging Face and place them in the embeddings directory.
  • Set Up Chroma DB

Run the MediChat application with the following command:

  • python app.py

Interact with MediChat via the provided interface, asking medical questions and receiving expert responses based on the embedded medical literature.

medichat's People

Contributors

gyanbardhan avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

violetz191

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.