Healthcare AI Model Utilizes Capabilities of Llama2 LLM and Langchain with RAG for summarization of the possiblity of Disease a patient has depending on his current symptoms.
- app.py is for flask server that serves as a backend for our telemedicine kiosk
- index.html serves as main web app page for the application
- STMP utilized for sending mail to the patient with probable medication and severity with the disease that the user is infected with.
Requirements:-
- Ollama
- llama2
- nomic-embed-text
flask, langchain, langchain_community, flask_cors, email, smtplib, chromadb
How to Use:-
- Install Ollama
ollama run llama2
- Exit the llama2 model and the pull nomic-embed-text using
ollama pull nomic-embed-text
- Once done with the download rerun
ollama run llama2
- Navigate to the HAI folder
cd ~/PATH/HAI-main
- install all the requirements from requirements.txt
- run application using following command
python app.py
- Once server starts Open
index.html
from the directory on web Browser. - Select any prompt from
prompt.txt
or any similar to context of provided prompts. - Wait for model to work and you get all the information for disease a patient has.