DrSyedFaizan commited on
Commit
c6fd2dc
Β·
verified Β·
1 Parent(s): c16e89f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -27
README.md CHANGED
@@ -7,59 +7,103 @@ license: mit
7
  language:
8
  - en
9
  metrics:
10
- - precision
11
- - recall
12
- - f1
 
 
13
  ---
14
 
15
- # πŸ₯ First Aid Assistant - Evaluation Results
16
 
17
- This repository contains the **evaluation results** for the `First Aid Assistant` chatbot, tested on **10 first-aid-related questions**.
 
 
 
 
 
18
 
19
  ## πŸ“’ **Ownership and Attribution**
20
  > **⚠️ Disclaimer:**
21
  > - The **First Aid Assistant chatbot** is the property of **Mysore Medical College and Research Institute**.
22
- > - 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**.
23
 
24
  ---
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  ## πŸ“Š Evaluation Metrics
27
- The chatbot's responses were evaluated using **Precision, Recall, F1 Score, and Cosine Similarity**.
 
 
 
 
 
 
 
 
28
 
29
- | Metric | Score |
30
- |-----------|--------|
31
- | Precision | **1.00** |
32
- | Recall | **1.00** |
33
- | F1 Score | **1.00** |
34
 
35
- > πŸ” Full evaluation results are available in **[`evaluation_results.txt`](./evaluation_results.txt)**.
36
 
37
  ## πŸ“ˆ Evaluation Visualization
38
- Below is a graphical representation of the chatbot’s performance.
 
 
39
 
40
- ![Evaluation Graph](./evaluation_plot.png)
41
 
42
  ---
43
 
44
- ## πŸ“– **Evaluation Method**
45
- - Used **TF-IDF + Cosine Similarity** to compare chatbot responses with expected answers.
46
- - Evaluated on **10 first-aid-related questions** covering:
47
- - High fever in infants
48
- - Low blood sugar treatment
49
- - First-aid steps for burns, seizures, choking, etc.
50
- - **Expected answers** were sourced from medical literature.
51
 
52
  ---
53
 
54
- ## πŸ“₯ **Download & Re-Evaluate**
55
  You can **re-evaluate the chatbot** by running the following:
56
 
57
  ```
58
  git clone https://huggingface.co/DrSyedFaizan/First_Aid_Assistant_Evaluation
59
  cd First_Aid_Assistant_Evaluation
60
- python eval.py # Runs evaluation on the chatbot
61
  ```
62
 
63
- ## πŸ“Œ **Author**
64
- πŸ‘¨β€βš• **Dr. Syed Faizan** | πŸ₯ Healthcare AI & Data Science
65
- πŸ”— **Hugging Face Repo**: [First_Aid_Assistant_Evaluation](https://huggingface.co/DrSyedFaizan/First_Aid_Assistant_Evaluation)
 
 
 
 
 
 
 
7
  language:
8
  - en
9
  metrics:
10
+ - faithfulness
11
+ - answer_relevancy
12
+ - context_recall
13
+ - answer_correctness
14
+ - semantic_similarity
15
  ---
16
 
17
+ # πŸ₯ First Aid Tutor
18
 
19
+ ![First Aid Tutor](https://github.com/SYEDFAIZAN1987/First-Aid-Tutor/blob/main/RAGGPT%20UI.png)
20
+
21
+ ## πŸ“˜ About the Project
22
+ 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.
23
+
24
+ This repository contains the **codebase** for the **First Aid Assistant** chatbot, tested on **10 first-aid-related questions**.
25
 
26
  ## πŸ“’ **Ownership and Attribution**
27
  > **⚠️ Disclaimer:**
28
  > - The **First Aid Assistant chatbot** is the property of **Mysore Medical College and Research Institute**.
29
+ > - 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**.
30
 
31
  ---
32
 
33
+ # πŸš‘ First Aid Tutor - RAG Chatbot
34
+
35
+ 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**.
36
+
37
+ ## 🎯 Features
38
+ βœ… **Evidence-Based Responses** - The chatbot only retrieves and generates answers based on the **First Aid PDF**.
39
+ βœ… **User-Friendly Interface** - Developed using **Gradio**, featuring a modern and intuitive UI.
40
+ βœ… **Medical Education Research** - Used for evaluating **RAG efficacy in medical education**.
41
+
42
+ ## πŸ”¬ How It Works
43
+ - Uses **TF-IDF + Cosine Similarity** for retrieving contextually relevant information.
44
+ - Queries are answered based strictly on **verified medical content**.
45
+ - Integrated with **Gradio UI** for an easy-to-use chatbot experience.
46
+
47
+ ## πŸ“Œ Live Demo
48
+ πŸš€ **[Try the First Aid Tutor Chatbot](https://huggingface.co/spaces/DrSyedFaizan/First_Aid_Assistant)**
49
+
50
+ ## πŸ“₯ How to Run Locally
51
+ You can run the chatbot locally using the following commands:
52
+
53
+ ```
54
+ git clone https://github.com/SYEDFAIZAN1987/First-Aid-Tutor
55
+ cd First-Aid-Tutor
56
+ pip install -r requirements.txt
57
+ python raggpt.py
58
+ ```
59
  ## πŸ“Š Evaluation Metrics
60
+ The chatbot's responses were evaluated using **faithfulness, answer relevancy, context recall, answer correctness, and semantic similarity**.
61
+
62
+ | Metric | Score |
63
+ |----------------------|--------|
64
+ | **Faithfulness** | **0.0900** |
65
+ | **Answer Relevancy** | **0.9609** |
66
+ | **Context Recall** | **1.0000** |
67
+ | **Answer Correctness** | **0.2689** |
68
+ | **Semantic Similarity** | **0.7756** |
69
 
70
+ πŸ” **[View Full Evaluation Report on WandB](https://api.wandb.ai/links/drsyedfaizan1987-northeastern-university/xrlfa4vq)**
 
 
 
 
71
 
72
+ ---
73
 
74
  ## πŸ“ˆ Evaluation Visualization
75
+ ### πŸ“Š Bar Chart of Evaluation Metrics
76
+ ![Heatmap](https://github.com/SYEDFAIZAN1987/First-Aid-Tutor/blob/main/metrics.png)
77
+
78
 
 
79
 
80
  ---
81
 
82
+ ## πŸ“– Evaluation Method
83
+ - Used **RAGAS evaluation framework with GPT-4** to assess **answer correctness, relevancy, and factual consistency**.
84
+ - Evaluated on **10 first-aid-related questions**, covering:
85
+ - βœ… High fever in infants
86
+ - βœ… Low blood sugar treatment
87
+ - βœ… First-aid steps for burns, seizures, choking, etc.
88
+ - **Expected answers** were sourced from **medical literature**.
89
 
90
  ---
91
 
92
+ ## πŸ“₯ Download & Re-Evaluate
93
  You can **re-evaluate the chatbot** by running the following:
94
 
95
  ```
96
  git clone https://huggingface.co/DrSyedFaizan/First_Aid_Assistant_Evaluation
97
  cd First_Aid_Assistant_Evaluation
98
+ python eval.py
99
  ```
100
 
101
+ ---
102
+
103
+ ## πŸ“Œ Author
104
+ πŸ‘¨β€βš• **Dr. Syed Faizan** | πŸ₯ **Healthcare AI & Data Science**
105
+ πŸ”— **Hugging Face Repo**: [First_Aid_Assistant_Evaluation](https://huggingface.co/DrSyedFaizan/First_Aid_Assistant_Evaluation)
106
+
107
+ πŸ“© **For collaborations, inquiries, or improvements, feel free to contribute or reach out!**
108
+
109
+