π₯ First Aid Tutor
π About the Project
First Aid Tutor is an AI-powered chatbot designed to evaluate the efficacy of Retrieval-Augmented Generation (RAG) in medical education for paramedical and medical students. It provides first-aid guidance based on medical literature to assess learning outcomes and response accuracy.
This repository contains the codebase for the First Aid Assistant chatbot, tested on 10 first-aid-related questions.
π’ Ownership and Attribution
β οΈ Disclaimer:
- The First Aid Assistant chatbot is the property of Mysore Medical College and Research Institute.
- The uploaded FIRST AID PDF that forms the basis of the Retrieval-Augmented Generation (RAG) process is an official course material and the property of Mysore Medical College and Research Institute.
π First Aid Tutor - RAG Chatbot
The First Aid Tutor is a Retrieval-Augmented Generation (RAG) chatbot designed to assist medical and paramedical students in learning first-aid protocols. It is strictly trained on a verified first-aid guide and only provides information present in the First Aid PDF.
π― Features
β
Evidence-Based Responses - The chatbot only retrieves and generates answers based on the First Aid PDF.
β
User-Friendly Interface - Developed using Gradio, featuring a modern and intuitive UI.
β
Medical Education Research - Used for evaluating RAG efficacy in medical education.
π¬ How It Works
- Uses TF-IDF + Cosine Similarity for retrieving contextually relevant information.
- Queries are answered based strictly on verified medical content.
- Integrated with Gradio UI for an easy-to-use chatbot experience.
π Live Demo
π Try the First Aid Tutor Chatbot
π₯ How to Run Locally
You can run the chatbot locally using the following commands:
git clone https://github.com/SYEDFAIZAN1987/First-Aid-Tutor
cd First-Aid-Tutor
pip install -r requirements.txt
python raggpt.py
π Evaluation Metrics
The chatbot's responses were evaluated using faithfulness, answer relevancy, context recall, answer correctness, and semantic similarity.
Metric | Score |
---|---|
Faithfulness | 0.0900 |
Answer Relevancy | 0.9609 |
Context Recall | 1.0000 |
Answer Correctness | 0.2689 |
Semantic Similarity | 0.7756 |
π View Full Evaluation Report on WandB
π Evaluation Method
- Used RAGAS evaluation framework with GPT-4 to assess answer correctness, relevancy, and factual consistency.
- Evaluated on 10 first-aid-related questions, covering:
- β High fever in infants
- β Low blood sugar treatment
- β First-aid steps for burns, seizures, choking, etc.
- Expected answers were sourced from medical literature.
π₯ Download & Re-Evaluate
You can re-evaluate the chatbot by running the following:
git clone https://huggingface.co/DrSyedFaizan/First_Aid_Assistant_Evaluation
cd First_Aid_Assistant_Evaluation
python eval.py
π Author
π¨ββ Dr. Syed Faizan | π₯ Healthcare AI & Data Science
π Hugging Face Repo: First_Aid_Assistant_Evaluation
π© For collaborations, inquiries, or improvements, feel free to contribute or reach out!