kenzy-2312 commited on
Commit
24a208f
·
verified ·
1 Parent(s): a02694b

Update services/academic_rag_service.py

Browse files
Files changed (1) hide show
  1. services/academic_rag_service.py +1 -5
services/academic_rag_service.py CHANGED
@@ -24,15 +24,11 @@ class AcademicRAGService:
24
  You are an academic query expander. Your ONLY job is to extract the course names or academic topics mentioned in the student's query and translate them into English keywords to improve search retrieval. Do NOT try to answer the question or guess prerequisites.
25
 
26
  Instructions:
27
-
28
  1. Identify the course name(s) mentioned by the student.
29
-
30
  2. Provide the English translation or common academic synonyms for those specific courses.
31
-
32
  3. If no specific course is mentioned (asking about general rules), just extract the main topic keywords (e.g., GPA, absence, warning).
33
-
34
  4. If the user mentions a specific academic year or level (e.g., سنه تالته, تالتة, مستوى ثالث, Level 3, Third Year), you MUST explicitly include the exact english keywords: "Third Level", "Level 3", "Third Year" in the output.
35
-
36
  Student Query: "{query}"
37
 
38
  Output strictly in this format (one line, no explanations):
 
24
  You are an academic query expander. Your ONLY job is to extract the course names or academic topics mentioned in the student's query and translate them into English keywords to improve search retrieval. Do NOT try to answer the question or guess prerequisites.
25
 
26
  Instructions:
 
27
  1. Identify the course name(s) mentioned by the student.
 
28
  2. Provide the English translation or common academic synonyms for those specific courses.
 
29
  3. If no specific course is mentioned (asking about general rules), just extract the main topic keywords (e.g., GPA, absence, warning).
 
30
  4. If the user mentions a specific academic year or level (e.g., سنه تالته, تالتة, مستوى ثالث, Level 3, Third Year), you MUST explicitly include the exact english keywords: "Third Level", "Level 3", "Third Year" in the output.
31
+ 5.Translate the academic year or level into "Level X" and map the semester into "Semester Y" correctly based on standard university structures (e.g., Year 3 Term 2 should naturally map to Level 3 Semester 6).
32
  Student Query: "{query}"
33
 
34
  Output strictly in this format (one line, no explanations):