Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -514,7 +514,8 @@ def generate_question(subject, difficulty, question_type):
|
|
514 |
|
515 |
system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
|
516 |
STRICT REQUIREMENTS:
|
517 |
-
1. Write exactly 1 {question_type} question on {subject} covering {selected_topic} that can be solved analytically
|
|
|
518 |
2. Difficulty Level Guidelines:
|
519 |
{difficulty_params['description'].upper()}
|
520 |
Follow these specific constraints:
|
@@ -538,7 +539,7 @@ STRICT REQUIREMENTS:
|
|
538 |
- When setting up differential equations either in calculus or differential equation applications
|
539 |
* carefully consider the direction of change in variables
|
540 |
* ensure integration bounds align with the physical direction of the process being modeled
|
541 |
-
- The solution must be analytical. It must not rely on numerical methods.
|
542 |
6. Maintain clear formatting
|
543 |
7. At the end of the solution output, print SymPy code that you would use to solve or verify the main equations in the question
|
544 |
8. Observe the folloiwng SymPy Guidelines
|
|
|
514 |
|
515 |
system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
|
516 |
STRICT REQUIREMENTS:
|
517 |
+
1. Write exactly 1 {question_type} question on {subject} covering {selected_topic} that can be solved analytically without numerical methods.
|
518 |
+
A question where any part of the solution must resort to numerical methdos is invalid.
|
519 |
2. Difficulty Level Guidelines:
|
520 |
{difficulty_params['description'].upper()}
|
521 |
Follow these specific constraints:
|
|
|
539 |
- When setting up differential equations either in calculus or differential equation applications
|
540 |
* carefully consider the direction of change in variables
|
541 |
* ensure integration bounds align with the physical direction of the process being modeled
|
542 |
+
- The solution must be analytical. It must not rely on numerical methods. NO part of the solution may resort to or be based on numerical analysis.
|
543 |
6. Maintain clear formatting
|
544 |
7. At the end of the solution output, print SymPy code that you would use to solve or verify the main equations in the question
|
545 |
8. Observe the folloiwng SymPy Guidelines
|