Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +57 -29
prompts/main_prompt.py
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
-
"Welcome to this module on proportional reasoning with percentages!
|
| 4 |
-
Your
|
| 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 |
|
| 10 |
-
|
| 11 |
1️⃣ **Bar Model**
|
| 12 |
2️⃣ **Double Number Line**
|
| 13 |
3️⃣ **Equations**
|
| 14 |
|
| 15 |
-
💡 **
|
| 16 |
🚀 **Which method would you like to use first?**
|
| 17 |
"""
|
| 18 |
|
|
@@ -21,7 +21,7 @@ def next_step(step):
|
|
| 21 |
return """🚀 **Step 1: Choose Your Method**
|
| 22 |
"Which method would you like to use to solve this problem?"
|
| 23 |
|
| 24 |
-
💡 **Select one
|
| 25 |
- **Bar Model**
|
| 26 |
- **Double Number Line**
|
| 27 |
- **Equation**
|
|
@@ -31,9 +31,9 @@ def next_step(step):
|
|
| 31 |
|
| 32 |
elif step == 2:
|
| 33 |
return """🚀 **Step 2: Bar Model**
|
| 34 |
-
"Great choice! Let’s
|
| 35 |
|
| 36 |
-
💡 **Before I
|
| 37 |
- "How would you divide the bar to represent percentages?"
|
| 38 |
- "What part of the bar represents Orrin’s investment?"
|
| 39 |
- "How would you use this to find the total investment?"
|
|
@@ -47,20 +47,35 @@ def next_step(step):
|
|
| 47 |
- **Step 2:** Since **60% = $1,500**, shade in 6 parts of the bar.
|
| 48 |
- **Step 3:** How much is **1 part** worth?
|
| 49 |
|
| 50 |
-
💡 **
|
| 51 |
"""
|
| 52 |
|
| 53 |
elif step == 4:
|
| 54 |
return """✅ **Solution Using Bar Model**
|
| 55 |
"Let’s confirm the answer together!"
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
💡 **Reflection:**
|
| 66 |
- "How did the bar model help your understanding?"
|
|
@@ -75,7 +90,7 @@ def next_step(step):
|
|
| 75 |
- "How would you set up the number lines?"
|
| 76 |
- "What values should go at 0%, 60%, and 100%?"
|
| 77 |
|
| 78 |
-
🔹 **Try
|
| 79 |
"""
|
| 80 |
|
| 81 |
elif step == 6:
|
|
@@ -89,9 +104,15 @@ def next_step(step):
|
|
| 89 |
|
| 90 |
elif step == 7:
|
| 91 |
return """✅ **Solution Using Double Number Line**
|
| 92 |
-
|
| 93 |
-
-
|
| 94 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
|
| 96 |
💡 **Reflection:**
|
| 97 |
- "How does this method compare to the bar model?"
|
|
@@ -122,15 +143,22 @@ def next_step(step):
|
|
| 122 |
|
| 123 |
elif step == 10:
|
| 124 |
return """✅ **Solution Using an Equation**
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
|
| 135 |
💡 **Reflection:**
|
| 136 |
- "Which method—Bar Model, Double Number Line, or Equation—helped you most?"
|
|
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
+
"Welcome to this module on **proportional reasoning with percentages**!
|
| 4 |
+
Your goal is to solve a real-world problem using **different representations** and connect proportional relationships 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 |
|
| 10 |
+
🚀 **Choose a method to solve:**
|
| 11 |
1️⃣ **Bar Model**
|
| 12 |
2️⃣ **Double Number Line**
|
| 13 |
3️⃣ **Equations**
|
| 14 |
|
| 15 |
+
💡 **First, try solving the problem on your own before I provide guidance!**
|
| 16 |
🚀 **Which method would you like to use first?**
|
| 17 |
"""
|
| 18 |
|
|
|
|
| 21 |
return """🚀 **Step 1: Choose Your Method**
|
| 22 |
"Which method would you like to use to solve this problem?"
|
| 23 |
|
| 24 |
+
💡 **Select one:**
|
| 25 |
- **Bar Model**
|
| 26 |
- **Double Number Line**
|
| 27 |
- **Equation**
|
|
|
|
| 31 |
|
| 32 |
elif step == 2:
|
| 33 |
return """🚀 **Step 2: Bar Model**
|
| 34 |
+
"Great choice! Let’s use a **bar model**."
|
| 35 |
|
| 36 |
+
💡 **Before I provide any hints, describe your approach:**
|
| 37 |
- "How would you divide the bar to represent percentages?"
|
| 38 |
- "What part of the bar represents Orrin’s investment?"
|
| 39 |
- "How would you use this to find the total investment?"
|
|
|
|
| 47 |
- **Step 2:** Since **60% = $1,500**, shade in 6 parts of the bar.
|
| 48 |
- **Step 3:** How much is **1 part** worth?
|
| 49 |
|
| 50 |
+
💡 **What do you think? Try calculating it before I continue!**
|
| 51 |
"""
|
| 52 |
|
| 53 |
elif step == 4:
|
| 54 |
return """✅ **Solution Using Bar Model**
|
| 55 |
"Let’s confirm the answer together!"
|
| 56 |
+
|
| 57 |
+
📌 **Bar Model Representation**
|
| 58 |
+
Understanding the Problem:
|
| 59 |
+
- Orrin invests **$1,500**, which is **60%** of the total investment.
|
| 60 |
+
- We need to find **100% of the total investment**.
|
| 61 |
+
|
| 62 |
+
📌 **Creating the Bar Model**
|
| 63 |
+
- Draw a **horizontal bar** and divide it into **10 equal parts**.
|
| 64 |
+
- Label **6 parts** as Orrin’s 60% ($1,500).
|
| 65 |
+
- The remaining **4 parts** represent Damen’s investment (40%).
|
| 66 |
+
|
| 67 |
+
📌 **Calculating the Total Investment**
|
| 68 |
+
Since Orrin’s $1,500 represents **60%**, we set up the proportion:
|
| 69 |
+
\\[
|
| 70 |
+
\\text{Total Investment} = \\frac{1500}{0.6}
|
| 71 |
+
\\]
|
| 72 |
+
Solving for total investment:
|
| 73 |
+
\\[
|
| 74 |
+
\\text{Total Investment} = 2500
|
| 75 |
+
\\]
|
| 76 |
+
|
| 77 |
+
📌 **Conclusion:**
|
| 78 |
+
The total investment made by Orrin and Damen together is **$2,500**.
|
| 79 |
|
| 80 |
💡 **Reflection:**
|
| 81 |
- "How did the bar model help your understanding?"
|
|
|
|
| 90 |
- "How would you set up the number lines?"
|
| 91 |
- "What values should go at 0%, 60%, and 100%?"
|
| 92 |
|
| 93 |
+
🔹 **Try setting up the number line first before I provide hints!**
|
| 94 |
"""
|
| 95 |
|
| 96 |
elif step == 6:
|
|
|
|
| 104 |
|
| 105 |
elif step == 7:
|
| 106 |
return """✅ **Solution Using Double Number Line**
|
| 107 |
+
📌 **Double Number Line Representation**
|
| 108 |
+
- Mark key points on two parallel lines:
|
| 109 |
+
- **0%, 60%, 100%** on one line.
|
| 110 |
+
- **$0, $1,500, and Total Investment** on the other.
|
| 111 |
+
- Since **$1,500 represents 60%**, divide by **6** to get **10% = $250**.
|
| 112 |
+
- Multiply by **10** to get **100% = $2,500**.
|
| 113 |
+
|
| 114 |
+
📌 **Conclusion:**
|
| 115 |
+
The total investment is **$2,500**.
|
| 116 |
|
| 117 |
💡 **Reflection:**
|
| 118 |
- "How does this method compare to the bar model?"
|
|
|
|
| 143 |
|
| 144 |
elif step == 10:
|
| 145 |
return """✅ **Solution Using an Equation**
|
| 146 |
+
📌 **Equation Representation**
|
| 147 |
+
Using a proportion:
|
| 148 |
+
\\[
|
| 149 |
+
\\frac{60}{100} = \\frac{1500}{x}
|
| 150 |
+
\\]
|
| 151 |
+
Cross-multiply:
|
| 152 |
+
\\[
|
| 153 |
+
60x = 1500 \\times 100
|
| 154 |
+
\\]
|
| 155 |
+
Divide both sides by **60**:
|
| 156 |
+
\\[
|
| 157 |
+
x = 2500
|
| 158 |
+
\\]
|
| 159 |
+
|
| 160 |
+
📌 **Conclusion:**
|
| 161 |
+
The total investment is **$2,500**.
|
| 162 |
|
| 163 |
💡 **Reflection:**
|
| 164 |
- "Which method—Bar Model, Double Number Line, or Equation—helped you most?"
|