Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +23 -8
prompts/main_prompt.py
CHANGED
@@ -19,19 +19,28 @@ def get_prompt_for_method(method):
|
|
19 |
return """
|
20 |
### **Bar Model Approach**
|
21 |
Great choice! The Bar Model is a useful way to visualize proportions and percentages.
|
22 |
-
Before we go further, please **explain how you would apply the Bar Model to solve this problem.**
|
|
|
|
|
|
|
23 |
|
24 |
elif method.lower() == "double number line":
|
25 |
return """
|
26 |
### **Double Number Line Approach**
|
27 |
Great choice! The Double Number Line helps align percentage values with real-world quantities.
|
28 |
-
Before we proceed, please **explain how you would apply the Double Number Line to solve this problem.**
|
|
|
|
|
|
|
29 |
|
30 |
elif method.lower() == "equation":
|
31 |
return """
|
32 |
### **Equation-Based Approach**
|
33 |
Great choice! Setting up an equation is a powerful way to represent proportional relationships.
|
34 |
-
Before we proceed, please **explain how you would write an equation to represent this problem.**
|
|
|
|
|
|
|
35 |
|
36 |
return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
|
37 |
|
@@ -39,16 +48,22 @@ def get_feedback_for_method(method, teacher_response):
|
|
39 |
if method.lower() == "bar model":
|
40 |
if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
|
41 |
return "Great start! You recognized that the bar should be divided into parts representing percentages. Now, can you calculate how much each part represents?"
|
42 |
-
|
|
|
|
|
43 |
|
44 |
elif method.lower() == "double number line":
|
45 |
if "label" in teacher_response.lower() and "percentages" in teacher_response.lower():
|
46 |
-
return "Nice work! You’ve set up the number line correctly.
|
|
|
|
|
47 |
return "No worries! Try labeling your number line with 0%, 60%, and 100% on one side and the corresponding dollar amounts on the other. How do the values align?"
|
48 |
-
|
49 |
elif method.lower() == "equation":
|
50 |
if "60/100" in teacher_response.lower() and "$1500/x" in teacher_response.lower():
|
51 |
-
return "You're on the right track! Now,
|
|
|
|
|
52 |
return "Try writing the proportion as (60/100) = (1500/x). What steps would you take to solve for x?"
|
53 |
-
|
54 |
return "Interesting approach! Could you clarify your reasoning a bit more?"
|
|
|
19 |
return """
|
20 |
### **Bar Model Approach**
|
21 |
Great choice! The Bar Model is a useful way to visualize proportions and percentages.
|
22 |
+
Before we go further, please **explain how you would apply the Bar Model to solve this problem.**
|
23 |
+
- How would you set up the model?
|
24 |
+
- How would you represent the percentages?
|
25 |
+
- What steps do you think are needed to find the total investment?"""
|
26 |
|
27 |
elif method.lower() == "double number line":
|
28 |
return """
|
29 |
### **Double Number Line Approach**
|
30 |
Great choice! The Double Number Line helps align percentage values with real-world quantities.
|
31 |
+
Before we proceed, please **explain how you would apply the Double Number Line to solve this problem.**
|
32 |
+
- How would you structure the number lines?
|
33 |
+
- What values would you place on each line?
|
34 |
+
- How do you think this will help you find the total investment?"""
|
35 |
|
36 |
elif method.lower() == "equation":
|
37 |
return """
|
38 |
### **Equation-Based Approach**
|
39 |
Great choice! Setting up an equation is a powerful way to represent proportional relationships.
|
40 |
+
Before we proceed, please **explain how you would write an equation to represent this problem.**
|
41 |
+
- What variables would you use?
|
42 |
+
- How would you set up the proportion?
|
43 |
+
- What would be your first step in solving for the total investment?"""
|
44 |
|
45 |
return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
|
46 |
|
|
|
48 |
if method.lower() == "bar model":
|
49 |
if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
|
50 |
return "Great start! You recognized that the bar should be divided into parts representing percentages. Now, can you calculate how much each part represents?"
|
51 |
+
elif "10%" in teacher_response.lower():
|
52 |
+
return "Good thinking! Since 10% is one part of the bar, what happens if you multiply that by 10 to get the full investment?"
|
53 |
+
return "It looks like you might need some help. Remember, the bar represents the total investment. Try dividing it into 10 equal parts, with 6 parts representing Orrin’s 60%. How much does one part represent? Then, how can we find the total?"
|
54 |
|
55 |
elif method.lower() == "double number line":
|
56 |
if "label" in teacher_response.lower() and "percentages" in teacher_response.lower():
|
57 |
+
return "Nice work! You’ve set up the number line correctly. Now, can you match the percentage values with the corresponding dollar amounts?"
|
58 |
+
elif "find 100%" in teacher_response.lower():
|
59 |
+
return "That's a key step! If you have 60% labeled, what do you need to do to determine 100%?"
|
60 |
return "No worries! Try labeling your number line with 0%, 60%, and 100% on one side and the corresponding dollar amounts on the other. How do the values align?"
|
61 |
+
|
62 |
elif method.lower() == "equation":
|
63 |
if "60/100" in teacher_response.lower() and "$1500/x" in teacher_response.lower():
|
64 |
+
return "You're on the right track! Now, what would you do to solve for x?"
|
65 |
+
elif "cross multiply" in teacher_response.lower():
|
66 |
+
return "Good step! Can you complete the cross multiplication and solve for x?"
|
67 |
return "Try writing the proportion as (60/100) = (1500/x). What steps would you take to solve for x?"
|
68 |
+
|
69 |
return "Interesting approach! Could you clarify your reasoning a bit more?"
|