Skip to content

Latest commit

 

History

History
73 lines (49 loc) · 1.45 KB

README.md

File metadata and controls

73 lines (49 loc) · 1.45 KB

Medical Chatbot using Llama-2

Medical Chatbot Logo

The development of the Medical Chatbot using Llama 2 signifies a significant advancement in AI-driven healthcare solutions. By providing accurate and timely medical information, the chatbot aims to empower users in navigating their health concerns while improving overall accessibility to healthcare services .

Steps to run the project

Clone the repository

Project repo: https://github.com/

STEP 01- Create a conda environment after opening the repository

conda create -n mchatbot2 python=3.9 -y   
conda activate mchatbot2  

STEP 02- install the requirements

pip install -r requirements.txt   

Create a .env file in the root directory and add your Pinecone credentials as follows:

PINECONE_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
PINECONE_API_ENV = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Download the quantize model from the link provided in model folder & keep the model in the model directory:

## Download the Llama 2 Model:

llama-2-7b-chat.ggmlv3.q4_0.bin


## From the following link:
https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/tree/main
# run the following command
python store_index.py
# Finally run the following command
python app.py

Now,

open up localhost:

Techstack Used :

  • Python
  • LangChain
  • Flask
  • Meta Llama2
  • Pinecone