A Chatbot can help you with good medical advice.
Chatbot can help you:
If you upload your Prescription. Please choose language of question the same with prescription and upload image (PNG,JPG...)
OCR: OCR extracts text from prescription -> feeds into chatbot
Embedding: Converts text into vector format to feed into RAG, and from RAG retrieves context
Translation: Translates from Korean -> English and vice versa English -> Korean
Chat: used to give answers based on context and answers from 2 finetuned models. Finetune 2 models for deep data and general data, to give the best answer
Grounded Check: Checks if the information is correct in context
Layout Analysis: Analyzes PDF files to convert to text, then embeds into Vector DB
Use Python version 3.11 is the best
cd app
pip install -r requirements.txt
PREDIBASE_API_TOKEN="PREDIBASE_API_TOKEN"
UPSTAGE_API_KEY="UPSTAGE_API_KEY"
TAVILY_API_KEY="TAVILY_API_KEY"
MONGODB_ATLAS_CLUSTER_URI="MONGODB_ATLAS_CLUSTER_URI"
Make sure you are in app/ folder
gradio gradio_demo.py
And then go to : http://127.0.0.1:7860
or you can go to: https://huggingface.co/spaces/tqhuyen/MedNow for test without rerun
