https://github.com/msparihar/medical-chatbot-using-llama2
Turn your health guide into a conversational buddy! This AI chatbot answers questions based on a medical PDF.
https://github.com/msparihar/medical-chatbot-using-llama2
flask langchain llama2 llm pinecone python
Last synced: about 1 month ago
JSON representation
Turn your health guide into a conversational buddy! This AI chatbot answers questions based on a medical PDF.
- Host: GitHub
- URL: https://github.com/msparihar/medical-chatbot-using-llama2
- Owner: Msparihar
- License: mit
- Created: 2024-01-04T06:12:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-03T18:09:22.000Z (over 2 years ago)
- Last Synced: 2024-07-26T15:52:32.102Z (almost 2 years ago)
- Topics: flask, langchain, llama2, llm, pinecone, python
- Language: Python
- Homepage:
- Size: 10.3 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Medical Chatbot using Llama2
## Features
The Medical Chatbot offers the following features:
1. **Chatbot:**
2. **User-friendly Interface:**
3. **Answer questions using user's data**
## Application interface

## Techstack Used:
- Python
- LangChain
- Flask
- Meta Llama2
- Pinecone
## How to run?
### STEPS:
Clone the repository
```bash
git clone https://github.com/Msparihar/Medical-Chatbot-using-Llama2.git
```
### STEP 01- Create a conda environment after opening the repository
```bash
conda create -n mchatbot python=3.8 -y
```
```bash
conda activate mchatbot
```
### STEP 02- install the requirements
```bash
pip install -r requirements.txt
```
### Create a `.env` file in the root directory and add your Pinecone credentials as follows:
```ini
PINECONE_API_KEY = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
PINECONE_API_ENV = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
```
### Download the quantized model from the link provided in the model folder & keep the model in the model directory:
```ini
## 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
```
```bash
# run the following command
python store_index.py
```
```bash
# Finally run the following command
python app.py
```
Now,
```bash
open up localhost:
```
## Contribution
Contributions to the Fire Detection project are welcome! If you'd like to contribute, please follow these steps:
1. Fork the repository on GitHub.
2. Create a new branch from the `main` branch.
3. Make your modifications and enhancements.
4. Test your changes thoroughly.
5. Commit and push your changes to your forked repository.
6. Submit a pull request to the main repository, describing your changes in detail.
Please ensure your contributions adhere to the project's coding standards and guidelines.
## ## License
This project is licensed under the [MIT License](LICENSE). Feel free to modify and distribute it according to the terms of the license.
## Contact
If you have any questions, suggestions, or feedback regarding this project, please contact the project maintainer at manishsparihar2020@gmail.com
I really appreciate your interest in this project and hope you found this project helpful! Keep Exploring!