Spaces:
Running
Running
question types update
Browse files
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.
|
113 |
-
3.
|
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 |
-
|
120 |
-
|
121 |
-
|
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(
|