joshuarauh commited on
Commit
daafad3
·
verified ·
1 Parent(s): 2171ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -183,7 +183,16 @@ Example contexts might include:
183
  - Business applications (profit maximization, inventory management)
184
  - Social science applications (demographic models, social network analysis)
185
  - Data science applications (regression, statistical analysis)
186
- """
 
 
 
 
 
 
 
 
 
187
  if difficulty == 5:
188
  system_prompt = f"""You are an expert mathematics professor creating a graduate-level exam question.
189
  STRICT REQUIREMENTS:
@@ -200,6 +209,7 @@ STRICT REQUIREMENTS:
200
  Follow these specific constraints:
201
  {chr(10).join(f' - {c}' for c in difficulty_params['constraints'])}
202
  {application_addition}
 
203
  3. Style Reference:
204
  Question should be {difficulty_params['example_style']}
205
  4. The question MUST:
@@ -226,6 +236,7 @@ STRICT REQUIREMENTS:
226
  Follow these specific constraints:
227
  {chr(10).join(f' - {c}' for c in difficulty_params['constraints'])}
228
  {application_addition}
 
229
  3. Style Reference:
230
  Question should be {difficulty_params['example_style']}
231
  4. For LaTeX formatting:
 
183
  - Business applications (profit maximization, inventory management)
184
  - Social science applications (demographic models, social network analysis)
185
  - Data science applications (regression, statistical analysis)
186
+ """
187
+ if question_type == "proof":
188
+ proof_addition = """
189
+ The proof question MUST:
190
+ - Require a formal mathematical proof
191
+ - Ask to prove the truth of a mathematical statement
192
+ - Focus on demonstrating logical reasoning
193
+ - Require justification for each step
194
+ - Emphasize theoretical understanding
195
+ """
196
  if difficulty == 5:
197
  system_prompt = f"""You are an expert mathematics professor creating a graduate-level exam question.
198
  STRICT REQUIREMENTS:
 
209
  Follow these specific constraints:
210
  {chr(10).join(f' - {c}' for c in difficulty_params['constraints'])}
211
  {application_addition}
212
+ {proof_addition}
213
  3. Style Reference:
214
  Question should be {difficulty_params['example_style']}
215
  4. The question MUST:
 
236
  Follow these specific constraints:
237
  {chr(10).join(f' - {c}' for c in difficulty_params['constraints'])}
238
  {application_addition}
239
+ {proof_addition}
240
  3. Style Reference:
241
  Question should be {difficulty_params['example_style']}
242
  4. For LaTeX formatting: