joshuarauh commited on
Commit
c113d70
·
verified ·
1 Parent(s): 64d6a1c

question types update

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -109,16 +109,15 @@ def generate_test(subject):
109
 
110
  system_prompt = f"""You will write math exam questions. Follow these requirements EXACTLY:
111
  1. Write exactly 3 university-level questions focusing on these specific topics: {', '.join(selected_topics)}
112
- 2. ALL questions must be computational or proof-based problems. NO conceptual or explanation questions.
113
- 3. Each question must require mathematical work, calculations, or formal proofs
114
- 4. For LaTeX math formatting:
115
  - Use $ for simple inline math
116
  - For equations and solution steps, use $$ on separate lines
117
  - For multi-step solutions, put each step on its own line in $$ $$
118
  - DO NOT use \\begin{{aligned}} or any other environments
119
- 5. Number each question as 1), 2), 3)
120
- 6. Include detailed solutions after each question
121
- 7. Keep formatting simple and clear"""
122
 
123
  logger.debug("Sending request to Anthropic API")
124
  message = anthropic.messages.create(
 
109
 
110
  system_prompt = f"""You will write math exam questions. Follow these requirements EXACTLY:
111
  1. Write exactly 3 university-level questions focusing on these specific topics: {', '.join(selected_topics)}
112
+ 2. Include one of each of the following three types of question: computation, proof, application
113
+ 3. For LaTeX math formatting:
 
114
  - Use $ for simple inline math
115
  - For equations and solution steps, use $$ on separate lines
116
  - For multi-step solutions, put each step on its own line in $$ $$
117
  - DO NOT use \\begin{{aligned}} or any other environments
118
+ 4. Number each question as 1), 2), 3)
119
+ 5. Include detailed solutions after each question
120
+ 6. Keep formatting simple and clear"""
121
 
122
  logger.debug("Sending request to Anthropic API")
123
  message = anthropic.messages.create(