Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +13 -6
prompts/main_prompt.py
CHANGED
@@ -7,39 +7,46 @@ Your goal is to solve a real-world problem using different representations:
|
|
7 |
3️⃣ **Equation-Based Approach**
|
8 |
|
9 |
🚀 **Here’s the problem:**
|
10 |
-
Orrin and Damen decided to invest money in a local ice cream shop. Orrin invests
|
11 |
|
12 |
💡 **Before receiving guidance, choose a method and explain your reasoning.**
|
13 |
🚀 **Which method would you like to use first?**
|
14 |
(Type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed.)
|
15 |
"""
|
16 |
|
17 |
-
# Function to prompt user based on chosen method
|
18 |
def get_prompt_for_method(method):
|
19 |
if method.lower() == "bar model":
|
20 |
return """
|
21 |
### **Bar Model Approach**
|
22 |
Great choice! The Bar Model is a useful way to visualize proportions and percentages.
|
23 |
-
|
|
|
|
|
|
|
24 |
"""
|
25 |
|
26 |
elif method.lower() == "double number line":
|
27 |
return """
|
28 |
### **Double Number Line Approach**
|
29 |
Great choice! The Double Number Line helps align percentage values with real-world quantities.
|
30 |
-
|
|
|
|
|
|
|
31 |
"""
|
32 |
|
33 |
elif method.lower() == "equation":
|
34 |
return """
|
35 |
### **Equation-Based Approach**
|
36 |
Great choice! Setting up an equation is a powerful way to represent proportional relationships.
|
37 |
-
|
|
|
|
|
|
|
38 |
"""
|
39 |
|
40 |
return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
|
41 |
|
42 |
-
# Function to provide feedback on teacher responses
|
43 |
def get_feedback_for_method(method, teacher_response):
|
44 |
if method.lower() == "bar model":
|
45 |
if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
|
|
|
7 |
3️⃣ **Equation-Based Approach**
|
8 |
|
9 |
🚀 **Here’s the problem:**
|
10 |
+
Orrin and Damen decided to invest money in a local ice cream shop. Orrin invests $1,500, which is 60% of their total investment. How much do Orrin and Damen invest together?
|
11 |
|
12 |
💡 **Before receiving guidance, choose a method and explain your reasoning.**
|
13 |
🚀 **Which method would you like to use first?**
|
14 |
(Type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed.)
|
15 |
"""
|
16 |
|
|
|
17 |
def get_prompt_for_method(method):
|
18 |
if method.lower() == "bar model":
|
19 |
return """
|
20 |
### **Bar Model Approach**
|
21 |
Great choice! The Bar Model is a useful way to visualize proportions and percentages.
|
22 |
+
📌 **Now, please apply the Bar Model and explain your approach.**
|
23 |
+
- How would you represent the total investment in the bar model?
|
24 |
+
- How would you use it to find the unknown amount?
|
25 |
+
✏️ **Go ahead and describe your approach first.** I will provide feedback after hearing your reasoning.
|
26 |
"""
|
27 |
|
28 |
elif method.lower() == "double number line":
|
29 |
return """
|
30 |
### **Double Number Line Approach**
|
31 |
Great choice! The Double Number Line helps align percentage values with real-world quantities.
|
32 |
+
📌 **Now, please apply the Double Number Line and explain your approach.**
|
33 |
+
- How would you structure the number lines?
|
34 |
+
- How would you align percentages with dollar amounts?
|
35 |
+
✏️ **Describe your reasoning first, and I will provide feedback before offering any hints.**
|
36 |
"""
|
37 |
|
38 |
elif method.lower() == "equation":
|
39 |
return """
|
40 |
### **Equation-Based Approach**
|
41 |
Great choice! Setting up an equation is a powerful way to represent proportional relationships.
|
42 |
+
📌 **Now, please write an equation and explain your thought process.**
|
43 |
+
- How would you set up the equation for this problem?
|
44 |
+
- What steps would you take to solve for the unknown value?
|
45 |
+
✏️ **Describe your approach first, and I will provide feedback before offering any hints.**
|
46 |
"""
|
47 |
|
48 |
return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
|
49 |
|
|
|
50 |
def get_feedback_for_method(method, teacher_response):
|
51 |
if method.lower() == "bar model":
|
52 |
if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
|