πŸ₯ 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!

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model is not currently available via any of the supported third-party Inference Providers, and HF Inference API was unable to determine this model's library.