Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +48 -48
prompts/main_prompt.py
CHANGED
@@ -6,80 +6,83 @@ Your task is to **solve a problem using different representations** and connect
|
|
6 |
π **Problem:**
|
7 |
Orrin and Damen decided to invest money in a local ice cream shop. Orrin invests **$1,500**, which is **60%** of their total investment.
|
8 |
π‘ **How much do they invest together?**
|
9 |
-
π‘ **Solve using a Bar Model, Double Number Line, or Equations.**
|
10 |
|
11 |
-
β
**
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
14 |
π **Letβs begin! Which method would you like to use first?**
|
15 |
"""
|
16 |
|
17 |
def next_step(step):
|
18 |
if step == 1:
|
19 |
-
return """π **Step 1:
|
20 |
-
"
|
21 |
|
22 |
-
π‘ **
|
23 |
-
-
|
24 |
-
-
|
25 |
-
-
|
26 |
|
27 |
-
πΉ **
|
|
|
28 |
"""
|
29 |
|
30 |
elif step == 2:
|
31 |
-
return """
|
32 |
-
"
|
33 |
-
- Since 60% = **$1,500**, divide the bar into **10 equal sections** (each representing 10%).
|
34 |
-
- Shade in **6 sections** to represent Orrinβs 60%.
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
37 |
"""
|
38 |
|
39 |
elif step == 3:
|
40 |
-
return """πΉ **Hint
|
41 |
-
"
|
42 |
-
- Since
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
What do you get?"
|
47 |
"""
|
48 |
|
49 |
elif step == 4:
|
50 |
-
return """πΉ **Hint
|
51 |
-
"Now
|
52 |
\\[
|
53 |
-
\\text{
|
54 |
\\]
|
55 |
-
|
56 |
"""
|
57 |
|
58 |
elif step == 5:
|
59 |
return """β
**Solution:**
|
60 |
-
"
|
61 |
-
Now, multiplying by **10**:
|
62 |
\\[
|
63 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
64 |
\\]
|
65 |
So, the total investment by Orrin and Damen together is **$2,500.**"
|
66 |
|
67 |
π‘ **Reflection:**
|
68 |
-
- "How
|
69 |
-
|
70 |
-
π "Now, let's solve this problem using a **double number line!**"
|
71 |
"""
|
72 |
|
73 |
elif step == 6:
|
74 |
-
return """π **Step
|
75 |
-
"
|
76 |
|
77 |
-
π‘ **
|
78 |
-
- "
|
79 |
-
- "What key points should
|
80 |
-
- "How can
|
81 |
|
82 |
-
πΉ **
|
83 |
"""
|
84 |
|
85 |
elif step == 7:
|
@@ -93,7 +96,7 @@ What values go in between?"
|
|
93 |
|
94 |
elif step == 8:
|
95 |
return """πΉ **Hint 2:**
|
96 |
-
"Now, divide $1,500 by 6 to find 10
|
97 |
\\[
|
98 |
\\text{Value of 10\\%} = \\frac{1500}{6} = 250
|
99 |
\\]
|
@@ -111,16 +114,14 @@ So, the total investment is **$2,500!**
|
|
111 |
|
112 |
π‘ **Reflection:**
|
113 |
- "How does this method compare to the bar model?"
|
114 |
-
|
115 |
-
π "Now, let's try solving with an **equation!**"
|
116 |
"""
|
117 |
|
118 |
elif step == 10:
|
119 |
-
return """π **Step
|
120 |
-
"
|
121 |
|
122 |
-
π‘ **
|
123 |
-
- "What proportional relationship can we write?"
|
124 |
- "How can we express 60% mathematically?"
|
125 |
- "What unknown are we solving for?"
|
126 |
|
@@ -147,7 +148,7 @@ Now divide both sides by 60. What do you get?"
|
|
147 |
|
148 |
elif step == 13:
|
149 |
return """β
**Solution:**
|
150 |
-
"
|
151 |
\\[
|
152 |
x = \\frac{1500 \\times 100}{60} = 2500
|
153 |
\\]
|
@@ -155,7 +156,6 @@ So, the total investment is **$2,500!**
|
|
155 |
|
156 |
π‘ **Reflection:**
|
157 |
- "Which method do you prefer: Bar Model, Double Number Line, or Equation?"
|
158 |
-
- "How can we help students connect all three approaches?"
|
159 |
π "Now, letβs reflect on the **Common Core practices** we used."
|
160 |
"""
|
161 |
|
|
|
6 |
π **Problem:**
|
7 |
Orrin and Damen decided to invest money in a local ice cream shop. Orrin invests **$1,500**, which is **60%** of their total investment.
|
8 |
π‘ **How much do they invest together?**
|
|
|
9 |
|
10 |
+
β
**Choose a method to solve:**
|
11 |
+
1οΈβ£ **Bar Model**
|
12 |
+
2οΈβ£ **Double Number Line**
|
13 |
+
3οΈβ£ **Equations**
|
14 |
+
|
15 |
+
π‘ **Explain your thought process before I provide any hints!**
|
16 |
π **Letβs begin! Which method would you like to use first?**
|
17 |
"""
|
18 |
|
19 |
def next_step(step):
|
20 |
if step == 1:
|
21 |
+
return """π **Step 1: Choose Your Method**
|
22 |
+
"Which method would you like to use to solve this problem?"
|
23 |
|
24 |
+
π‘ **Select one method:**
|
25 |
+
- **Bar Model**
|
26 |
+
- **Double Number Line**
|
27 |
+
- **Equation**
|
28 |
|
29 |
+
πΉ **Once you choose a method, explain your approach first.**
|
30 |
+
πΉ **Try your best before I provide guidance!**
|
31 |
"""
|
32 |
|
33 |
elif step == 2:
|
34 |
+
return """π **Step 2: Solve Using a Bar Model**
|
35 |
+
"Great choice! Let's use a bar model to visualize the problem."
|
|
|
|
|
36 |
|
37 |
+
π‘ **How do you think a bar model can help?**
|
38 |
+
- "How will you divide the bar to represent percentages?"
|
39 |
+
- "What should each section represent?"
|
40 |
+
- "How will you calculate the total investment?"
|
41 |
+
|
42 |
+
πΉ **Explain your reasoning before I provide hints!**
|
43 |
"""
|
44 |
|
45 |
elif step == 3:
|
46 |
+
return """πΉ **Hint 1:**
|
47 |
+
"Try drawing a **bar representing 100% of the total investment**.
|
48 |
+
- Since 60% = **$1,500**, divide the bar into **10 equal sections** (each representing 10%).
|
49 |
+
- Shade in **6 sections** to represent Orrinβs 60%.
|
50 |
+
|
51 |
+
Does this setup make sense?"
|
|
|
52 |
"""
|
53 |
|
54 |
elif step == 4:
|
55 |
+
return """πΉ **Hint 2:**
|
56 |
+
"Now, find the value of **1 part** by dividing **$1,500 by 6**:
|
57 |
\\[
|
58 |
+
\\text{Value of 1 part} = \\frac{1500}{6} = 250
|
59 |
\\]
|
60 |
+
What is the total investment?"
|
61 |
"""
|
62 |
|
63 |
elif step == 5:
|
64 |
return """β
**Solution:**
|
65 |
+
"Great job! Since **1 part = $250**, multiplying by **10** gives:
|
|
|
66 |
\\[
|
67 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
68 |
\\]
|
69 |
So, the total investment by Orrin and Damen together is **$2,500.**"
|
70 |
|
71 |
π‘ **Reflection:**
|
72 |
+
- "How did the bar model help in understanding this problem?"
|
73 |
+
π "Would you like to try another method, such as a **double number line**?"
|
|
|
74 |
"""
|
75 |
|
76 |
elif step == 6:
|
77 |
+
return """π **Step 3: Solve Using a Double Number Line**
|
78 |
+
"Now, let's try solving this using a **double number line**."
|
79 |
|
80 |
+
π‘ **Before I provide hints, explain your approach:**
|
81 |
+
- "How will you set up the two number lines?"
|
82 |
+
- "What key points should be labeled?"
|
83 |
+
- "How can you use it to find the total investment?"
|
84 |
|
85 |
+
πΉ **Think about it and explain before I provide guidance!**
|
86 |
"""
|
87 |
|
88 |
elif step == 7:
|
|
|
96 |
|
97 |
elif step == 8:
|
98 |
return """πΉ **Hint 2:**
|
99 |
+
"Now, divide $1,500 by 6 to find **10%**:
|
100 |
\\[
|
101 |
\\text{Value of 10\\%} = \\frac{1500}{6} = 250
|
102 |
\\]
|
|
|
114 |
|
115 |
π‘ **Reflection:**
|
116 |
- "How does this method compare to the bar model?"
|
117 |
+
π "Would you like to try solving with an **equation**?"
|
|
|
118 |
"""
|
119 |
|
120 |
elif step == 10:
|
121 |
+
return """π **Step 4: Solve Using an Equation**
|
122 |
+
"Now, let's try setting up an **equation** to represent the problem."
|
123 |
|
124 |
+
π‘ **Before I provide hints, explain your approach:**
|
|
|
125 |
- "How can we express 60% mathematically?"
|
126 |
- "What unknown are we solving for?"
|
127 |
|
|
|
148 |
|
149 |
elif step == 13:
|
150 |
return """β
**Solution:**
|
151 |
+
"Great job! Solving the equation:
|
152 |
\\[
|
153 |
x = \\frac{1500 \\times 100}{60} = 2500
|
154 |
\\]
|
|
|
156 |
|
157 |
π‘ **Reflection:**
|
158 |
- "Which method do you prefer: Bar Model, Double Number Line, or Equation?"
|
|
|
159 |
π "Now, letβs reflect on the **Common Core practices** we used."
|
160 |
"""
|
161 |
|