alibicer commited on
Commit
3c55449
Β·
verified Β·
1 Parent(s): b1d645b

Update prompts/main_prompt.py

Browse files
Files changed (1) hide show
  1. 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
- Today, we will explore a **real-world investment scenario** and solve it using three different representations:
6
- 1️⃣ **Bar Model**
7
- 2️⃣ **Double Number Line**
8
- 3️⃣ **Equation & Proportional Relationship**
9
-
10
- πŸ’‘ **Your Task:** Solve the following problem using each representation.
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
- def bar_model_step(step):
 
20
  if step == 1:
21
  return """πŸš€ **Step 1: Solve Using a Bar Model**
22
- "A bar model is a great way to visualize proportions. How would you set it up for this problem?"
 
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 will represent **10%**).
34
- - Since 60% is **$1,500**, shade in **6 parts** of the bar.
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, multiply by **10** to find the total investment:
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
- def double_number_line_step(step):
61
- if step == 1:
62
- return """πŸš€ **Step 1: Solve Using a Double Number Line**
63
- "A double number line helps us align percentages with actual values. How might you set this up?"
 
64
 
65
  πŸ’‘ **Think before answering:**
66
- - "What labels should be on the number lines?"
67
- - "Where should we place **60%** and **$1,500**?"
68
 
69
  πŸ”Ή **Try setting it up before I provide hints!**
70
  """
71
- elif step == 2:
 
72
  return """πŸ”Ή **Hint 1:**
73
- "Start by drawing two horizontal lines:
74
- - The **top line** represents **percentages** (0% to 100%).
75
- - The **bottom line** represents **money** (starting from $0).
76
- Now, place **60%** above **$1,500**. What other values should be on the number line?"
 
 
77
  """
78
- elif step == 3:
 
79
  return """πŸ”Ή **Hint 2:**
80
- "Now, divide the bottom line into **equal increments of 10%**.
81
- - What is the value of **10%**?
82
- - Can you now find **100%**?"
 
 
83
  """
84
- elif step == 4:
 
85
  return """βœ… **Solution:**
86
- "We calculated that **10% = $250**. Now, we can find the total:
87
  \\[
88
  \\text{Total Investment} = 250 \\times 10 = 2500
89
  \\]
90
- So, Orrin and Damen invested **$2,500 together.**
91
 
92
  πŸ’‘ **Reflection:**
93
- - "How does the double number line compare to the bar model?"
94
- - "Which one do you think is more intuitive for students?"
95
- πŸš€ "Now, let's solve this problem using **equations!**"
96
  """
97
- def equation_step(step):
98
- if step == 1:
99
- return """πŸš€ **Step 1: Solve Using an Equation**
100
- "An equation can help us **set up a direct proportional relationship**. How might you write an equation for this problem?"
 
101
 
102
  πŸ’‘ **Think before answering:**
103
- - "How can we express **60%** in equation form?"
104
- - "What variable should represent the **total investment**?"
105
 
106
  πŸ”Ή **Try setting it up before I provide hints!**
107
  """
108
- elif step == 2:
 
109
  return """πŸ”Ή **Hint 1:**
110
- "Write an equation using **percent form**:
111
  \\[
112
- 0.60 \\times x = 1500
113
  \\]
114
- Now, how would you solve for **x**?"
115
  """
116
- elif step == 3:
117
- return """πŸ”Ή **Hint 2:**
118
- "To isolate **x**, divide both sides by **0.60**:
 
119
  \\[
120
- x = \\frac{1500}{0.60}
121
  \\]
122
- What do you get?"
123
- """
124
- elif step == 4:
125
- return """βœ… **Solution:**
126
- "Solving the equation:
127
  \\[
128
- x = \\frac{1500}{0.60} = 2500
129
  \\]
130
- So, the total investment by Orrin and Damen together is **$2,500.**
131
 
132
  πŸ’‘ **Reflection:**
133
- - "How does setting up an equation help in problem-solving?"
134
- - "How might you support students struggling to make sense of the equation?"
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
- πŸ’‘ **Which Common Core Practice Standards did we use?**
143
- - **CCSS.MATH.PRACTICE.MP1** (Make sense of problems & persevere)
144
- - **CCSS.MATH.PRACTICE.MP4** (Model with mathematics)
145
- - **CCSS.MATH.PRACTICE.MP7** (Look for and make use of structure)
146
 
147
- πŸ’‘ **Which Creativity-Directed Practices did we use?**
148
- - Encouraging multiple solution methods
149
- - Making connections across representations
150
- - Using real-world contexts for deeper understanding
 
151
 
152
- πŸš€ **Your Turn: Create a New Problem!**
153
- "Now, create your own proportional reasoning problem involving percentages!"
154
- - **What real-world scenario will you use?**
155
- - **What percentage and total values will you include?**
156
- - **How can students solve it using different representations?"**
 
 
 
 
157
 
158
- πŸ”Ή **Share your problem, and I'll give feedback!**
 
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?**"