Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +76 -70
prompts/main_prompt.py
CHANGED
|
@@ -1,41 +1,45 @@
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
"Welcome to this module on proportional reasoning with percentages!
|
| 4 |
-
|
| 5 |
-
1οΈβ£ **Bar Models**
|
| 6 |
-
2οΈβ£ **Double Number Lines**
|
| 7 |
-
3οΈβ£ **Equations & Proportional Relationships**
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"""
|
| 13 |
|
| 14 |
def next_step(step):
|
| 15 |
if step == 1:
|
| 16 |
return """π **Step 1: Solve Using a Bar Model**
|
| 17 |
-
"
|
| 18 |
-
How can you use a bar model to solve this problem?"
|
| 19 |
|
| 20 |
-
π‘ **
|
| 21 |
-
- "
|
| 22 |
-
- "
|
|
|
|
| 23 |
|
| 24 |
-
πΉ **
|
| 25 |
"""
|
| 26 |
|
| 27 |
elif step == 2:
|
| 28 |
return """πΉ **Hint 1:**
|
| 29 |
-
"
|
| 30 |
-
-
|
| 31 |
-
-
|
| 32 |
|
| 33 |
-
|
| 34 |
"""
|
| 35 |
|
| 36 |
elif step == 3:
|
| 37 |
return """πΉ **Hint 2:**
|
| 38 |
-
"
|
|
|
|
| 39 |
\\[
|
| 40 |
\\text{Value of 1 part} = \\frac{1500}{6}
|
| 41 |
\\]
|
|
@@ -53,7 +57,7 @@ Can you calculate and explain your answer?"
|
|
| 53 |
|
| 54 |
elif step == 5:
|
| 55 |
return """β
**Solution:**
|
| 56 |
-
"
|
| 57 |
Now, multiplying by **10**:
|
| 58 |
\\[
|
| 59 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
|
@@ -68,88 +72,96 @@ So, the total investment by Orrin and Damen together is **$2,500.**"
|
|
| 68 |
|
| 69 |
elif step == 6:
|
| 70 |
return """π **Step 2: Solve Using a Double Number Line**
|
| 71 |
-
"
|
| 72 |
-
How would you set up a **double number line** to solve this?"
|
| 73 |
|
| 74 |
-
π‘ **
|
| 75 |
-
- "What
|
| 76 |
-
- "
|
|
|
|
| 77 |
|
| 78 |
-
πΉ **Try
|
| 79 |
"""
|
| 80 |
|
| 81 |
elif step == 7:
|
| 82 |
return """πΉ **Hint 1:**
|
| 83 |
-
"Start by labeling the
|
| 84 |
-
-
|
| 85 |
-
- The
|
| 86 |
-
- Since **60% = $1,500**, mark this point on both lines.
|
| 87 |
|
| 88 |
-
|
| 89 |
"""
|
| 90 |
|
| 91 |
elif step == 8:
|
| 92 |
return """πΉ **Hint 2:**
|
| 93 |
-
"
|
| 94 |
\\[
|
| 95 |
-
\\text{10%
|
| 96 |
\\]
|
| 97 |
-
|
|
|
|
| 98 |
"""
|
| 99 |
|
| 100 |
elif step == 9:
|
| 101 |
return """β
**Solution:**
|
| 102 |
-
"Now that we
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
So, the total investment
|
| 107 |
|
| 108 |
π‘ **Reflection:**
|
| 109 |
-
- "How does
|
| 110 |
-
|
|
|
|
| 111 |
"""
|
| 112 |
|
| 113 |
elif step == 10:
|
| 114 |
return """π **Step 3: Solve Using an Equation**
|
| 115 |
-
"
|
| 116 |
-
How can you set up an equation for this problem?"
|
| 117 |
|
| 118 |
-
π‘ **
|
| 119 |
-
- "
|
| 120 |
-
- "How can we
|
|
|
|
| 121 |
|
| 122 |
-
πΉ **Try setting
|
| 123 |
"""
|
| 124 |
|
| 125 |
elif step == 11:
|
| 126 |
return """πΉ **Hint 1:**
|
| 127 |
-
"Write the
|
| 128 |
\\[
|
| 129 |
\\frac{60}{100} = \\frac{1500}{x}
|
| 130 |
\\]
|
| 131 |
-
|
| 132 |
"""
|
| 133 |
|
| 134 |
elif step == 12:
|
| 135 |
-
return """
|
| 136 |
-
"
|
| 137 |
\\[
|
| 138 |
60x = 1500 \\times 100
|
| 139 |
\\]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
\\[
|
| 141 |
x = \\frac{1500 \\times 100}{60} = 2500
|
| 142 |
\\]
|
| 143 |
-
So, the total investment
|
| 144 |
|
| 145 |
π‘ **Reflection:**
|
| 146 |
-
- "
|
| 147 |
-
|
|
|
|
| 148 |
"""
|
| 149 |
|
| 150 |
-
elif step ==
|
| 151 |
-
return """π **Common Core
|
| 152 |
-
"Great job!
|
| 153 |
|
| 154 |
πΉ **Which Common Core Standards did we cover?**
|
| 155 |
- **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
|
|
@@ -157,24 +169,18 @@ So, the total investment by Orrin and Damen together is **$2,500.**"
|
|
| 157 |
- **CCSS.MATH.PRACTICE.MP1** (Making sense of problems & persevering)
|
| 158 |
- **CCSS.MATH.PRACTICE.MP4** (Modeling with mathematics)
|
| 159 |
|
| 160 |
-
π‘
|
| 161 |
"""
|
| 162 |
|
| 163 |
-
elif step ==
|
| 164 |
return """π **Creativity-Directed Practices Discussion**
|
| 165 |
-
"Throughout
|
| 166 |
-
β
|
| 167 |
-
β
|
| 168 |
-
β
|
| 169 |
|
| 170 |
-
π‘
|
| 171 |
-
|
| 172 |
-
"""
|
| 173 |
-
|
| 174 |
-
elif step == 15:
|
| 175 |
-
return """π **Problem-Posing Activity**
|
| 176 |
-
"Now, letβs take it one step further! Try creating your own proportional reasoning problem."
|
| 177 |
-
π‘ "Would you like to modify one of the previous problems, or create a brand new one?"
|
| 178 |
"""
|
| 179 |
|
| 180 |
return "π **You've completed the module! Would you like to review anything again?**"
|
|
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
"Welcome to this module on proportional reasoning with percentages!
|
| 4 |
+
Your task is to **solve a problem using different representations** and connect the proportional relationship to the meaning of the problem."
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 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 |
+
β
**Remember:**
|
| 12 |
+
- "Explain your thought process after solving each part."
|
| 13 |
+
- "Try your best before I give hints!"
|
| 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: Solve Using a Bar Model**
|
| 20 |
+
"How can we use a **bar model** to solve this problem?"
|
|
|
|
| 21 |
|
| 22 |
+
π‘ **OK! Let's hear your ideas first.**
|
| 23 |
+
- "What does the full bar represent?"
|
| 24 |
+
- "How might we divide the bar to show 60%?"
|
| 25 |
+
- "How can this help us find the total investment?"
|
| 26 |
|
| 27 |
+
πΉ **Share your thinking before I provide any hints!**
|
| 28 |
"""
|
| 29 |
|
| 30 |
elif step == 2:
|
| 31 |
return """πΉ **Hint 1:**
|
| 32 |
+
"Try drawing a **bar to represent the total investment**.
|
| 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 |
+
Does this setup make sense to you?"
|
| 37 |
"""
|
| 38 |
|
| 39 |
elif step == 3:
|
| 40 |
return """πΉ **Hint 2:**
|
| 41 |
+
"Now, letβs determine the value of one part.
|
| 42 |
+
- Since 6 sections represent **$1,500**, we divide:
|
| 43 |
\\[
|
| 44 |
\\text{Value of 1 part} = \\frac{1500}{6}
|
| 45 |
\\]
|
|
|
|
| 57 |
|
| 58 |
elif step == 5:
|
| 59 |
return """β
**Solution:**
|
| 60 |
+
"Nice work! You found that **1 part = $250**.
|
| 61 |
Now, multiplying by **10**:
|
| 62 |
\\[
|
| 63 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
|
|
|
| 72 |
|
| 73 |
elif step == 6:
|
| 74 |
return """π **Step 2: Solve Using a Double Number Line**
|
| 75 |
+
"How can a **double number line** help solve this problem?"
|
|
|
|
| 76 |
|
| 77 |
+
π‘ **OK! Let's hear your ideas first.**
|
| 78 |
+
- "What should the two number lines represent?"
|
| 79 |
+
- "What key points should we label on the number lines?"
|
| 80 |
+
- "How can we use this to find the total investment?"
|
| 81 |
|
| 82 |
+
πΉ **Try before I give hints!**
|
| 83 |
"""
|
| 84 |
|
| 85 |
elif step == 7:
|
| 86 |
return """πΉ **Hint 1:**
|
| 87 |
+
"Start by labeling the number lines:
|
| 88 |
+
- One represents **percentages**: **0%, 60%, and 100%**.
|
| 89 |
+
- The other represents **dollars**: **$0, $1,500, and the total investment**.
|
|
|
|
| 90 |
|
| 91 |
+
What values go in between?"
|
| 92 |
"""
|
| 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 |
\\]
|
| 100 |
+
Align this with **10% on the number line.**
|
| 101 |
+
Now, what is the value at 100%?"
|
| 102 |
"""
|
| 103 |
|
| 104 |
elif step == 9:
|
| 105 |
return """β
**Solution:**
|
| 106 |
+
"Now that weβve aligned the values:
|
| 107 |
+
- 10% = **$250**
|
| 108 |
+
- 100% = **$2500**
|
| 109 |
+
|
| 110 |
+
So, the total investment is **$2,500!**
|
| 111 |
|
| 112 |
π‘ **Reflection:**
|
| 113 |
+
- "How does this method compare to the bar model?"
|
| 114 |
+
- "Would this approach help students struggling with percentages?"
|
| 115 |
+
π "Now, let's try solving with an **equation!**"
|
| 116 |
"""
|
| 117 |
|
| 118 |
elif step == 10:
|
| 119 |
return """π **Step 3: Solve Using an Equation**
|
| 120 |
+
"How can we set up an **equation** to represent this problem?"
|
|
|
|
| 121 |
|
| 122 |
+
π‘ **OK! Let's hear your ideas first.**
|
| 123 |
+
- "What proportional relationship can we write?"
|
| 124 |
+
- "How can we express 60% mathematically?"
|
| 125 |
+
- "What unknown are we solving for?"
|
| 126 |
|
| 127 |
+
πΉ **Try setting up the equation before I provide hints!**
|
| 128 |
"""
|
| 129 |
|
| 130 |
elif step == 11:
|
| 131 |
return """πΉ **Hint 1:**
|
| 132 |
+
"Write the relationship as a proportion:
|
| 133 |
\\[
|
| 134 |
\\frac{60}{100} = \\frac{1500}{x}
|
| 135 |
\\]
|
| 136 |
+
How can we solve for \\(x\\)?"
|
| 137 |
"""
|
| 138 |
|
| 139 |
elif step == 12:
|
| 140 |
+
return """πΉ **Hint 2:**
|
| 141 |
+
"Use **cross-multiplication**:
|
| 142 |
\\[
|
| 143 |
60x = 1500 \\times 100
|
| 144 |
\\]
|
| 145 |
+
Now divide both sides by 60. What do you get?"
|
| 146 |
+
"""
|
| 147 |
+
|
| 148 |
+
elif step == 13:
|
| 149 |
+
return """β
**Solution:**
|
| 150 |
+
"Nice work! Solving the equation:
|
| 151 |
\\[
|
| 152 |
x = \\frac{1500 \\times 100}{60} = 2500
|
| 153 |
\\]
|
| 154 |
+
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 |
|
| 162 |
+
elif step == 14:
|
| 163 |
+
return """π **Common Core Standards Discussion**
|
| 164 |
+
"Great job! Letβs reflect on how this connects to teaching strategies."
|
| 165 |
|
| 166 |
πΉ **Which Common Core Standards did we cover?**
|
| 167 |
- **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
|
|
|
|
| 169 |
- **CCSS.MATH.PRACTICE.MP1** (Making sense of problems & persevering)
|
| 170 |
- **CCSS.MATH.PRACTICE.MP4** (Modeling with mathematics)
|
| 171 |
|
| 172 |
+
π‘ "Which of these standards do you think applied most? Why?"
|
| 173 |
"""
|
| 174 |
|
| 175 |
+
elif step == 15:
|
| 176 |
return """π **Creativity-Directed Practices Discussion**
|
| 177 |
+
"Throughout this module, we engaged in creativity-directed strategies, such as:
|
| 178 |
+
β
Using multiple solution methods
|
| 179 |
+
β
Encouraging deep reasoning
|
| 180 |
+
β
Connecting visual and numerical representations
|
| 181 |
|
| 182 |
+
π‘ "How do these strategies help students build deeper understanding?"
|
| 183 |
+
π "Now, letβs create your own problem!"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
"""
|
| 185 |
|
| 186 |
return "π **You've completed the module! Would you like to review anything again?**"
|