aicodingfun commited on
Commit
faf18df
·
verified ·
1 Parent(s): 746e204

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
75
  print(f"Retrieved {len(raw_questions)} document(s)")
76
 
77
  # 隨機選取並限制字串長度的題庫內容
78
- input_question_bank = random_questions_with_limit(raw_questions, 1000)
79
 
80
  # 系統訊息 (system) 與使用者要求 (user) 的對話內容
81
  # 說明給模型:要產生新的英文題目,保持難度與風格類似,但不要直接抄題庫原文
@@ -101,7 +101,7 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
101
  - Clearly distinguish the new question and the answer.
102
  - If multiple questions are generated, number them sequentially.
103
  - Ensure clarity and correctness in all generated content.
104
- - Respond only in English."""
105
  },
106
  {
107
  "role": "user",
 
75
  print(f"Retrieved {len(raw_questions)} document(s)")
76
 
77
  # 隨機選取並限制字串長度的題庫內容
78
+ input_question_bank = random_questions_with_limit(raw_questions, 1500)
79
 
80
  # 系統訊息 (system) 與使用者要求 (user) 的對話內容
81
  # 說明給模型:要產生新的英文題目,保持難度與風格類似,但不要直接抄題庫原文
 
101
  - Clearly distinguish the new question and the answer.
102
  - If multiple questions are generated, number them sequentially.
103
  - Ensure clarity and correctness in all generated content.
104
+ - Respond only in **English**."""
105
  },
106
  {
107
  "role": "user",