github-actions[bot] commited on
Commit
e95b583
·
1 Parent(s): bdf8f9d

🚀 Auto-deploy backend from GitHub (cea3040)

Browse files
Files changed (1) hide show
  1. routes/practice.py +2 -2
routes/practice.py CHANGED
@@ -192,7 +192,7 @@ def _parse_questions_response(raw: str, count: int) -> List[Dict[str, Any]]:
192
 
193
  def _build_question_prompt(subject: str, competency: str, difficulty: str, count: int) -> tuple[str, str]:
194
  system_prompt = (
195
- "You are an expert Filipino math educator. "
196
  "Generate exactly " + str(count) + " multiple-choice math questions "
197
  "for the subject \"" + subject + "\" focused on competency: \"" + competency + "\". "
198
  "Difficulty level: " + difficulty + ". "
@@ -202,7 +202,7 @@ def _build_question_prompt(subject: str, competency: str, difficulty: str, count
202
  "\"correct_index\": 0-3, \"explanation\": \"...\", "
203
  "\"competency\": \"...\", \"difficulty\": \"...\", "
204
  "\"bloomsLevel\": \"Remember|Understand|Apply|Analyze|Evaluate|Create\" }] }. "
205
- "Use Filipino context where appropriate. Make questions clear and unambiguous."
206
  )
207
  user_message = (
208
  f"Generate {count} multiple-choice math questions for {subject}, "
 
192
 
193
  def _build_question_prompt(subject: str, competency: str, difficulty: str, count: int) -> tuple[str, str]:
194
  system_prompt = (
195
+ "You are an expert math educator for Filipino Senior High School students. "
196
  "Generate exactly " + str(count) + " multiple-choice math questions "
197
  "for the subject \"" + subject + "\" focused on competency: \"" + competency + "\". "
198
  "Difficulty level: " + difficulty + ". "
 
202
  "\"correct_index\": 0-3, \"explanation\": \"...\", "
203
  "\"competency\": \"...\", \"difficulty\": \"...\", "
204
  "\"bloomsLevel\": \"Remember|Understand|Apply|Analyze|Evaluate|Create\" }] }. "
205
+ "All questions and options MUST be written in English. Make questions clear and unambiguous."
206
  )
207
  user_message = (
208
  f"Generate {count} multiple-choice math questions for {subject}, "