Spaces:
Sleeping
Sleeping
Update rag.py
Browse files
rag.py
CHANGED
|
@@ -48,11 +48,12 @@ def get_best_answer(user_input):
|
|
| 48 |
|
| 49 |
# ๐ Check if question is about fee
|
| 50 |
if any(keyword in user_input_lower for keyword in ["fee", "fees", "charges", "semester fee"]):
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
Youโll find comprehensive information regarding tuition, admission charges, and other applicable fees there.\n"
|
| 54 |
-
|
| 55 |
-
|
|
|
|
| 56 |
|
| 57 |
# ๐ Continue with normal similarity-based logic
|
| 58 |
user_embedding = similarity_model.encode(user_input_lower, convert_to_tensor=True)
|
|
|
|
| 48 |
|
| 49 |
# ๐ Check if question is about fee
|
| 50 |
if any(keyword in user_input_lower for keyword in ["fee", "fees", "charges", "semester fee"]):
|
| 51 |
+
return (
|
| 52 |
+
"๐ฐ For complete and up-to-date fee details for this program, we recommend visiting the official University of Education fee structure page.\n"
|
| 53 |
+
"Youโll find comprehensive information regarding tuition, admission charges, and other applicable fees there.\n"
|
| 54 |
+
"๐ https://ue.edu.pk/allfeestructure.php"
|
| 55 |
+
)
|
| 56 |
+
|
| 57 |
|
| 58 |
# ๐ Continue with normal similarity-based logic
|
| 59 |
user_embedding = similarity_model.encode(user_input_lower, convert_to_tensor=True)
|