Skip to content

keetrap/Medical_Chatbot_Llama2_and_Langchain

Repository files navigation

Medical_Chatbot_Llama2_and_Langchain

How to run?

STEPS:

Clone the repository Project repo:

https://github.com/keetrap/Medical_Chatbot_Llama2_and_Langchai

STEP 01- Create a virtual environment after opening the repository

python -m venv myenv
./myenv/Scripts/activate 

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"

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 localhost:5000

Techstack Used:

  • Python
  • LangChain
  • Flask
  • Meta Llama2
  • Pinecone

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published