Spaces:
Sleeping
Sleeping
MarwanZaineldeen commited on
548
Browse files- Requirements.md +0 -54
Requirements.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
| 1 |
-
NLP Final Task 2026
|
| 2 |
-
RAG-Based Mental Health Support Chatbot
|
| 3 |
-
Introduction
|
| 4 |
-
This project requires designing and implementing a Retrieval-Augmented Generation (RAG)
|
| 5 |
-
based chatbot for a mental health support system. The chatbot must provide grounded,
|
| 6 |
-
empathetic, and context-aware responses to queries related to anxiety, depression, stress,
|
| 7 |
-
and crisis support.
|
| 8 |
-
The system integrates multiple NLP techniques into a single pipeline, where each component
|
| 9 |
-
plays a critical role in improving overall system performance.
|
| 10 |
-
Prerequisites
|
| 11 |
-
Before starting this project, complete the following course:
|
| 12 |
-
• Retrieval Augmented Generation (RAG) @ deeplearning.ai
|
| 13 |
-
ONLY the first 4 modules. 5th module is extra.
|
| 14 |
-
System Overview
|
| 15 |
-
The chatbot system is composed of multiple interconnected modules. Each module
|
| 16 |
-
contributes directly to the performance of the final system, making this a fully integrated,
|
| 17 |
-
end-to-end project rather than isolated tasks.
|
| 18 |
-
Project Modules
|
| 19 |
-
1) Language Detection
|
| 20 |
-
Build a multi-class classifier using Traditional NLP such as: Count Vectorizer or TF-IDF
|
| 21 |
-
Vectorizer. Train ML model to classify the language of the user’s question. This module is very
|
| 22 |
-
important for the entire system for searching right in the knowledgebase in addition to replying in
|
| 23 |
-
the same language and so on.
|
| 24 |
-
2) Emotion Classifier
|
| 25 |
-
Build a multi-class classifier using either Recurrent Neural Networks OR Transformers. Feel
|
| 26 |
-
free to choose as you like. Train model to classify emotion of the user’s question. This module is
|
| 27 |
-
very important for optimizing the final chatbot response depending on the user’s emotion to be
|
| 28 |
-
able to handle his different emotions. This is a key factor in the success of the system.
|
| 29 |
-
3) Intent Classifier
|
| 30 |
-
Build a multi-class classifier using either zero shot or few shot LLM prompting to classify the
|
| 31 |
-
intent of the user’s question. Intent is one of the following: greeting, goodbye, gratitude,
|
| 32 |
-
asking_mental_health_question, out_of_scope. This module is very important for routing the
|
| 33 |
-
entire system to the best route for answering. For example: - If the user is greeting, there is no need for RAG and answer directly. - If the user is asking a mental health question, you must use RAG to answer.
|
| 34 |
-
4) Q&A RAG
|
| 35 |
-
Build RAG pipeline using the mental health counseling dataset to answer the upcoming user’s
|
| 36 |
-
questions. Feel free to use the suitable framework you prefer or build from scratch, as you like.
|
| 37 |
-
You need to follow these components: - For vector database, use free cloud qdrant. - For embeddings, use senetence transformer. - For LLM, use free groq account and gpt-oss-120b or gpt-oss-20b.
|
| 38 |
-
Datasets
|
| 39 |
-
1) Language Identification Dataset
|
| 40 |
-
2) Emotion Dataset
|
| 41 |
-
3) Mental Health Counseling Conversations
|
| 42 |
-
Guidelines
|
| 43 |
-
• You must use python.
|
| 44 |
-
• Choose the most suitable data pre-processing techniques.
|
| 45 |
-
• Use Flask or FastAPI or any suitable web framework to deploy the model locally.
|
| 46 |
-
Deliverables
|
| 47 |
-
• Four module-specific notebooks.
|
| 48 |
-
• Deployment scripts.
|
| 49 |
-
• Any additional files/documentation you need.
|
| 50 |
-
Notes
|
| 51 |
-
• In the assessment phase, you’ll be asked to run your models locally, furthermore, you’ll
|
| 52 |
-
be asked in any technical decision/implementation you’ve made, so be well prepared,
|
| 53 |
-
and avoid overcomplicated approaches you don’t fully grasp.
|
| 54 |
-
• Early submission doesn’t affect your grade, take your time.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|