The app is a conversational interface allowing users to ask medical questions and receive answers from the Gale Encyclopedia of Medicine. Under the hood, the system uses the large language model LLama2-7b to understand the question and formulate an appropriate response. It searches through the Gale encyclopedia text to find the most relevant section to the user's query. This information is distilled into a natural language answer, with the source cited at the end. The interactive Streamlit interface creates a smooth conversation flow for diagnosing medical concerns. Users can ask follow-up questions and clarify specifics to get the necessary information. With the reliability of a medical reference book and the convenience of a chatbot, this app makes it easy to get answers to medical questions conversationally.
To deploy this project run
1:
git clone https://github.com/AminHaghdadi/Medical_ChatBot.git
2: install requirements:
pip install -r requirement.txt
3: Download the llama2-7b model from this link : Llama-2-7B
4: Add model to llama2-7b folder
5: Run in Terminal
streamlit run main.py