Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +103 -82
prompts/main_prompt.py
CHANGED
|
@@ -1,25 +1,21 @@
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
"Welcome to this module on proportional reasoning with percentages!
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
π‘ **
|
| 11 |
-
|
| 12 |
-
π **Problem Statement:**
|
| 13 |
-
Orrin and Damen decided to invest money in a local ice cream shop. Orrin invests **$1,500**, which is **60% of their total investment**.
|
| 14 |
-
|
| 15 |
-
**How much do Orrin and Damen invest together?**
|
| 16 |
-
|
| 17 |
-
βοΈ **Try to solve this problem using your preferred method first. Then, we will compare different representations step by step!**
|
| 18 |
"""
|
| 19 |
-
|
|
|
|
| 20 |
if step == 1:
|
| 21 |
return """π **Step 1: Solve Using a Bar Model**
|
| 22 |
-
"
|
|
|
|
| 23 |
|
| 24 |
π‘ **Think before answering:**
|
| 25 |
- "How can we represent the **total investment** as a bar?"
|
|
@@ -27,14 +23,16 @@ def bar_model_step(step):
|
|
| 27 |
|
| 28 |
πΉ **Try setting it up before I provide hints!**
|
| 29 |
"""
|
|
|
|
| 30 |
elif step == 2:
|
| 31 |
return """πΉ **Hint 1:**
|
| 32 |
"Start by drawing a rectangle to represent the **total investment**.
|
| 33 |
-
- Divide it into **10 equal sections** (since each section
|
| 34 |
-
- Since 60%
|
| 35 |
|
| 36 |
Now, can you determine how much **1 part** represents?"
|
| 37 |
"""
|
|
|
|
| 38 |
elif step == 3:
|
| 39 |
return """πΉ **Hint 2:**
|
| 40 |
"If 6 parts correspond to **$1,500**, find the value of **one part** by dividing:
|
|
@@ -43,10 +41,20 @@ Now, can you determine how much **1 part** represents?"
|
|
| 43 |
\\]
|
| 44 |
What do you get?"
|
| 45 |
"""
|
|
|
|
| 46 |
elif step == 4:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
return """β
**Solution:**
|
| 48 |
"We found that **1 part = $250**.
|
| 49 |
-
Now,
|
| 50 |
\\[
|
| 51 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
| 52 |
\\]
|
|
@@ -57,103 +65,116 @@ So, the total investment by Orrin and Damen together is **$2,500.**"
|
|
| 57 |
- "Would this be useful for students struggling with percentages?"
|
| 58 |
π "Now, let's solve this problem using a **double number line!**"
|
| 59 |
"""
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
return """π **Step
|
| 63 |
-
"A double number line
|
|
|
|
| 64 |
|
| 65 |
π‘ **Think before answering:**
|
| 66 |
-
- "What labels
|
| 67 |
-
- "
|
| 68 |
|
| 69 |
πΉ **Try setting it up before I provide hints!**
|
| 70 |
"""
|
| 71 |
-
|
|
|
|
| 72 |
return """πΉ **Hint 1:**
|
| 73 |
-
"Start by
|
| 74 |
-
- The **top line** represents **percentages** (0%
|
| 75 |
-
- The **bottom line** represents **
|
| 76 |
-
|
|
|
|
|
|
|
| 77 |
"""
|
| 78 |
-
|
|
|
|
| 79 |
return """πΉ **Hint 2:**
|
| 80 |
-
"
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
| 83 |
"""
|
| 84 |
-
|
|
|
|
| 85 |
return """β
**Solution:**
|
| 86 |
-
"
|
| 87 |
\\[
|
| 88 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
| 89 |
\\]
|
| 90 |
-
So, Orrin and Damen
|
| 91 |
|
| 92 |
π‘ **Reflection:**
|
| 93 |
-
- "How does the double number line
|
| 94 |
-
|
| 95 |
-
π "Now, let's solve this problem using **equations!**"
|
| 96 |
"""
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
return """π **Step
|
| 100 |
-
"An equation
|
|
|
|
| 101 |
|
| 102 |
π‘ **Think before answering:**
|
| 103 |
-
- "How can we
|
| 104 |
-
- "
|
| 105 |
|
| 106 |
πΉ **Try setting it up before I provide hints!**
|
| 107 |
"""
|
| 108 |
-
|
|
|
|
| 109 |
return """πΉ **Hint 1:**
|
| 110 |
-
"Write
|
| 111 |
\\[
|
| 112 |
-
|
| 113 |
\\]
|
| 114 |
-
Now,
|
| 115 |
"""
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
"
|
|
|
|
| 119 |
\\[
|
| 120 |
-
|
| 121 |
\\]
|
| 122 |
-
What do you get?"
|
| 123 |
-
"""
|
| 124 |
-
elif step == 4:
|
| 125 |
-
return """β
**Solution:**
|
| 126 |
-
"Solving the equation:
|
| 127 |
\\[
|
| 128 |
-
x = \\frac{1500}{
|
| 129 |
\\]
|
| 130 |
-
So, the total investment by Orrin and Damen together is **$2,500.**
|
| 131 |
|
| 132 |
π‘ **Reflection:**
|
| 133 |
-
- "How does
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
π "Now, letβs **compare and reflect** on these representations!"
|
| 137 |
"""
|
| 138 |
-
def reflection_and_problem_posing():
|
| 139 |
-
return """π **Final Reflection & Problem Posing**
|
| 140 |
-
"Now that we've solved the problem using three different representations, let's reflect on our learning!"
|
| 141 |
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
- **CCSS.MATH.PRACTICE.MP7** (Look for and make use of structure)
|
| 146 |
|
| 147 |
-
|
| 148 |
-
-
|
| 149 |
-
-
|
| 150 |
-
-
|
|
|
|
| 151 |
|
| 152 |
-
|
| 153 |
-
"
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 157 |
|
| 158 |
-
|
|
|
|
| 159 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
"Welcome to this module on proportional reasoning with percentages!
|
| 4 |
+
In this module, you will explore different representations of proportional thinking:
|
| 5 |
+
1οΈβ£ **Bar Models**
|
| 6 |
+
2οΈβ£ **Double Number Lines**
|
| 7 |
+
3οΈβ£ **Equations & Proportional Relationships**
|
| 8 |
+
|
| 9 |
+
π‘ **You will solve the given problem using different strategies and explain your reasoning.**
|
| 10 |
+
π‘ **The AI will guide you through hints if neededβtry solving before asking for help!**
|
| 11 |
+
π **Letβs begin!**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
"""
|
| 13 |
+
|
| 14 |
+
def next_step(step):
|
| 15 |
if step == 1:
|
| 16 |
return """π **Step 1: Solve Using a Bar Model**
|
| 17 |
+
"Orrin invests **$1,500**, which is **60%** of their total investment.
|
| 18 |
+
How can you use a bar model to solve this problem?"
|
| 19 |
|
| 20 |
π‘ **Think before answering:**
|
| 21 |
- "How can we represent the **total investment** as a bar?"
|
|
|
|
| 23 |
|
| 24 |
πΉ **Try setting it up before I provide hints!**
|
| 25 |
"""
|
| 26 |
+
|
| 27 |
elif step == 2:
|
| 28 |
return """πΉ **Hint 1:**
|
| 29 |
"Start by drawing a rectangle to represent the **total investment**.
|
| 30 |
+
- Divide it into **10 equal sections** (since each section represents **10%** of the total).
|
| 31 |
+
- Since **60% corresponds to $1,500**, shade in **6 parts** of the bar.
|
| 32 |
|
| 33 |
Now, can you determine how much **1 part** represents?"
|
| 34 |
"""
|
| 35 |
+
|
| 36 |
elif step == 3:
|
| 37 |
return """πΉ **Hint 2:**
|
| 38 |
"If 6 parts correspond to **$1,500**, find the value of **one part** by dividing:
|
|
|
|
| 41 |
\\]
|
| 42 |
What do you get?"
|
| 43 |
"""
|
| 44 |
+
|
| 45 |
elif step == 4:
|
| 46 |
+
return """πΉ **Hint 3:**
|
| 47 |
+
"Now that we know the value of **one part**, we can find the total investment by multiplying by 10:
|
| 48 |
+
\\[
|
| 49 |
+
\\text{Total Investment} = \\text{Value of 1 part} \\times 10
|
| 50 |
+
\\]
|
| 51 |
+
Can you calculate and explain your answer?"
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
elif step == 5:
|
| 55 |
return """β
**Solution:**
|
| 56 |
"We found that **1 part = $250**.
|
| 57 |
+
Now, multiplying by **10**:
|
| 58 |
\\[
|
| 59 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
| 60 |
\\]
|
|
|
|
| 65 |
- "Would this be useful for students struggling with percentages?"
|
| 66 |
π "Now, let's solve this problem using a **double number line!**"
|
| 67 |
"""
|
| 68 |
+
|
| 69 |
+
elif step == 6:
|
| 70 |
+
return """π **Step 2: Solve Using a Double Number Line**
|
| 71 |
+
"A double number line is another great way to visualize this problem.
|
| 72 |
+
How would you set up a **double number line** to solve this?"
|
| 73 |
|
| 74 |
π‘ **Think before answering:**
|
| 75 |
+
- "What labels would you use for the two number lines?"
|
| 76 |
+
- "How can you align percentages with dollar values?"
|
| 77 |
|
| 78 |
πΉ **Try setting it up before I provide hints!**
|
| 79 |
"""
|
| 80 |
+
|
| 81 |
+
elif step == 7:
|
| 82 |
return """πΉ **Hint 1:**
|
| 83 |
+
"Start by labeling the two number lines:
|
| 84 |
+
- The **top line** represents **percentages** (0%, 10%, 20%, β¦, 100%).
|
| 85 |
+
- The **bottom line** represents **dollars** ($0, $?, $?, β¦, Total Investment).
|
| 86 |
+
- Since **60% = $1,500**, mark this point on both lines.
|
| 87 |
+
|
| 88 |
+
Can you determine what **10%** would be?"
|
| 89 |
"""
|
| 90 |
+
|
| 91 |
+
elif step == 8:
|
| 92 |
return """πΉ **Hint 2:**
|
| 93 |
+
"To find **10%**, divide **$1,500 by 6**:
|
| 94 |
+
\\[
|
| 95 |
+
\\text{10% Value} = \\frac{1500}{6} = 250
|
| 96 |
+
\\]
|
| 97 |
+
Now, use this to determine **100%**!"
|
| 98 |
"""
|
| 99 |
+
|
| 100 |
+
elif step == 9:
|
| 101 |
return """β
**Solution:**
|
| 102 |
+
"Now that we know **10% = $250**, we can multiply by 10:
|
| 103 |
\\[
|
| 104 |
\\text{Total Investment} = 250 \\times 10 = 2500
|
| 105 |
\\]
|
| 106 |
+
So, the total investment by Orrin and Damen together is **$2,500.**"
|
| 107 |
|
| 108 |
π‘ **Reflection:**
|
| 109 |
+
- "How does the double number line help in understanding the proportional relationship?"
|
| 110 |
+
π "Now, let's solve this using **an equation!**"
|
|
|
|
| 111 |
"""
|
| 112 |
+
|
| 113 |
+
elif step == 10:
|
| 114 |
+
return """π **Step 3: Solve Using an Equation**
|
| 115 |
+
"An equation allows us to solve proportions algebraically.
|
| 116 |
+
How can you set up an equation for this problem?"
|
| 117 |
|
| 118 |
π‘ **Think before answering:**
|
| 119 |
+
- "How can we represent 60% in fractional form?"
|
| 120 |
+
- "How can we write a proportion to find the total investment?"
|
| 121 |
|
| 122 |
πΉ **Try setting it up before I provide hints!**
|
| 123 |
"""
|
| 124 |
+
|
| 125 |
+
elif step == 11:
|
| 126 |
return """πΉ **Hint 1:**
|
| 127 |
+
"Write the proportion as:
|
| 128 |
\\[
|
| 129 |
+
\\frac{60}{100} = \\frac{1500}{x}
|
| 130 |
\\]
|
| 131 |
+
Now, can you **cross-multiply** and solve for **x**?"
|
| 132 |
"""
|
| 133 |
+
|
| 134 |
+
elif step == 12:
|
| 135 |
+
return """β
**Solution:**
|
| 136 |
+
"Using cross-multiplication:
|
| 137 |
\\[
|
| 138 |
+
60x = 1500 \\times 100
|
| 139 |
\\]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
\\[
|
| 141 |
+
x = \\frac{1500 \\times 100}{60} = 2500
|
| 142 |
\\]
|
| 143 |
+
So, the total investment by Orrin and Damen together is **$2,500.**"
|
| 144 |
|
| 145 |
π‘ **Reflection:**
|
| 146 |
+
- "How does solving with an equation compare to visual methods?"
|
| 147 |
+
π "Now, let's reflect on teaching strategies!"
|
|
|
|
|
|
|
| 148 |
"""
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
+
elif step == 13:
|
| 151 |
+
return """π **Common Core & Creativity-Directed Practices Discussion**
|
| 152 |
+
"Great job! Now, letβs reflect on how these problems connect to teaching strategies."
|
|
|
|
| 153 |
|
| 154 |
+
πΉ **Which Common Core Standards did we cover?**
|
| 155 |
+
- **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
|
| 156 |
+
- **CCSS.MATH.CONTENT.7.RP.A.2** (Recognizing proportional relationships)
|
| 157 |
+
- **CCSS.MATH.PRACTICE.MP1** (Making sense of problems & persevering)
|
| 158 |
+
- **CCSS.MATH.PRACTICE.MP4** (Modeling with mathematics)
|
| 159 |
|
| 160 |
+
π‘ **Which of these standards do you think applied most to the problems we solved? Why?**
|
| 161 |
+
"""
|
| 162 |
+
|
| 163 |
+
elif step == 14:
|
| 164 |
+
return """π **Creativity-Directed Practices Discussion**
|
| 165 |
+
"Throughout these problems, we engaged in creativity-directed strategies, such as:
|
| 166 |
+
β
Encouraging multiple solution methods
|
| 167 |
+
β
Using real-world contexts
|
| 168 |
+
β
Thinking critically about proportional relationships
|
| 169 |
|
| 170 |
+
π‘ **Which of these strategies did you use while solving the problems?**
|
| 171 |
+
π‘ **How do you think encouraging creativity helps students develop deeper understanding?**
|
| 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?**"
|