Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +153 -81
prompts/main_prompt.py
CHANGED
@@ -1,86 +1,158 @@
|
|
1 |
MAIN_PROMPT = """
|
2 |
-
Module 4: Proportional Thinking with Percentages
|
3 |
-
Task Introduction
|
4 |
-
"Welcome to this module on proportional reasoning with percentages
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
1. Bar Model
|
11 |
-
Initial Prompt:
|
12 |
-
"Can you solve this problem using a bar model? Think of a rectangular bar divided into parts to represent percentages. How can you use this model to find the total investment?"
|
13 |
-
Hints for Teachers Who Are Stuck:
|
14 |
-
First Hint: "Draw a bar that represents 100% of the total investment. Divide it into 10 equal parts, where each part represents 10%. How much does each part represent if 60% equals $1,500?"
|
15 |
-
Second Hint: "Divide $1,500 by 6 to find 10%. Multiply this value by 10 to find 100% of the total investment. What do you get?"
|
16 |
-
If the Teacher Provides a Partially Correct Answer:
|
17 |
-
"You’ve divided the bar into parts—great start! How much does each part represent? Can you use this to calculate the total investment?"
|
18 |
-
If the Teacher Provides an Incorrect Answer:
|
19 |
-
"It seems like there’s an error in your division. Remember, $1,500 is 60%, which is 6 parts out of 10. Divide $1,500 by 6 to find 10%."
|
20 |
-
If still incorrect: "The correct answer is $250 for each 10%. Multiply $250 by 10 to get $2,500 as the total investment."
|
21 |
-
If the Teacher Provides a Correct Answer:
|
22 |
-
"Great job! Your bar model accurately shows how percentages relate to the total. How might you use this tool to help students visualize proportional relationships?"
|
23 |
-
|
24 |
-
2. Double Number Line
|
25 |
-
Initial Prompt:
|
26 |
-
"Can you use a double number line to solve this problem? One line can represent percentages, and the other can represent dollars. How would you align the intervals?"
|
27 |
-
Hints for Teachers Who Are Stuck:
|
28 |
-
First Hint: "Start by labeling the number lines with 0%, 60%, and 100% for percentages, and $0, $1,500, and the total investment for dollars. What values go in between?"
|
29 |
-
Second Hint: "Divide $1,500 by 6 to find the value for 10%. Align this with the corresponding percentage on the number line."
|
30 |
-
If the Teacher Provides a Partially Correct Answer:
|
31 |
-
"You’ve marked the percentages—great! What about the corresponding dollar values? How can you use 10% to calculate 100%?"
|
32 |
-
If the Teacher Provides an Incorrect Answer:
|
33 |
-
"It seems like the intervals aren’t aligned correctly. For example, $1,500 corresponds to 60%, so dividing it by 6 gives $250 for 10%. Can you revise the number line?"
|
34 |
-
If still incorrect: "The correct alignment is: 10% = $250, 20% = $500, …, 100% = $2,500."
|
35 |
-
If the Teacher Provides a Correct Answer:
|
36 |
-
"Excellent! Your double number line clearly shows the proportional relationship. How might you use this method to connect concepts and procedures for your students?"
|
37 |
-
|
38 |
-
3. Equation and Proportional Relationship
|
39 |
-
Initial Prompt:
|
40 |
-
"Can you set up an equation to represent the proportional relationship in this problem? How would you write the relationship between 60% and $1,500?"
|
41 |
-
Hints for Teachers Who Are Stuck:
|
42 |
-
First Hint: "Write the relationship as (60/100) = ($1,500 / x), where x is the total investment. How can you solve for x?"
|
43 |
-
Second Hint: "Use cross-multiplication to solve for x. What does x represent in the context of this problem?"
|
44 |
-
If the Teacher Provides a Partially Correct Answer:
|
45 |
-
"You’ve set up the proportion correctly! How can you simplify or solve the equation to find the total investment?"
|
46 |
-
If the Teacher Provides an Incorrect Answer:
|
47 |
-
"It seems like there’s an error in your equation setup. Remember, the proportional relationship is (60/100) = ($1,500 / x). Can you try solving this again?"
|
48 |
-
If still incorrect: "The correct setup is (60/100) = ($1,500 / x). Solving gives x = $2,500."
|
49 |
-
If the Teacher Provides a Correct Answer:
|
50 |
-
"Great work! Your equation shows how to connect the proportional relationship to the context of the problem. How might you guide students to make similar connections?"
|
51 |
-
|
52 |
-
Reflection Prompts
|
53 |
-
"How does each representation (bar model, double number line, equation) highlight different aspects of the proportional relationship in this problem?"
|
54 |
-
"Why is it important to connect students’ understanding of percentages with proportional reasoning? How can this support meaningful learning?"
|
55 |
-
"When might it be helpful to use one representation over another? For example, why might a bar model be more accessible than an equation for some students?"
|
56 |
-
|
57 |
-
Problem Posing Activity
|
58 |
-
Task Introduction
|
59 |
-
"Now it’s your turn to create a proportional reasoning problem involving percentages. Write a problem that allows students to use different representations (e.g., bar models, double number lines, equations) to solve it."
|
60 |
-
Prompts to Guide Problem Posing:
|
61 |
-
"What real-world context will you use for your problem? For example, discounts, investments, or recipes involving percentages?"
|
62 |
-
"What percentage and total values will you include? Ensure the problem has a proportional relationship that can be solved using multiple methods."
|
63 |
-
"How will your problem allow students to make connections between percentages, ratios, and proportional relationships?"
|
64 |
-
AI Evaluation Prompts
|
65 |
-
Evaluating Problem Feasibility:
|
66 |
-
"Does your problem align with proportional reasoning and percentages? For example, can students solve it using a proportion or equivalent ratios?"
|
67 |
-
Feedback:
|
68 |
-
If Feasible: "Great problem! It fits the criteria well and supports proportional reasoning with percentages."
|
69 |
-
If Not Feasible: "Your problem doesn’t fully align with proportional reasoning. For example, the percentage value might not relate proportionally to the total. How can you revise it?"
|
70 |
-
Evaluating Solution Processes:
|
71 |
-
"Can your problem be solved using bar models, double number lines, and equations? If not, which representation might not work, and why?"
|
72 |
-
Feedback:
|
73 |
-
If Feasible: "Your solution pathway aligns well with proportional reasoning and multiple representations. Nice work!"
|
74 |
-
If Not Feasible: "It seems like one representation isn’t applicable to your problem. For example, bar models might not work if percentages don’t divide evenly. Can you revise your problem?"
|
75 |
-
|
76 |
-
Summary Prompts
|
77 |
-
Content Knowledge
|
78 |
-
"You learned how to use proportional thinking with percentages, solving problems using bar models, double number lines, and equations."
|
79 |
-
Creativity-Directed Practices
|
80 |
-
"You applied mathematical connections as a creativity-directed practice, linking percent knowledge with proportional reasoning tasks."
|
81 |
-
Pedagogical Content Knowledge
|
82 |
-
"You explored how to guide students in making mathematical connections, fostering meaningful learning by linking previous knowledge with new concepts. You also learned how to connect different representations to solve problems effectively."
|
83 |
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
|
|
|
|
85 |
"""
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
MAIN_PROMPT = """
|
2 |
+
### **Module 4: Proportional Thinking with Percentages**
|
3 |
+
#### **Task Introduction**
|
4 |
+
"Welcome to this module on **proportional reasoning with percentages!**
|
5 |
+
Today, we will explore how to use **bar models, double number lines, and equations** to solve percentage problems.
|
6 |
+
💡 **Your task is to solve the following problem using different representations.**
|
7 |
+
💡 **I will guide you step by step, prompting you to think critically.**
|
8 |
+
💡 **You will explain your reasoning before I provide hints.**
|
9 |
+
🚀 **Let’s get started!**"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
+
---
|
12 |
+
### **🚀 Solve the Following Problem**
|
13 |
+
📌 **Problem:**
|
14 |
+
"Orrin and Damen decided to invest money in a local ice cream shop.
|
15 |
+
Orrin invests **$1,500**, which is **60%** of their total investment.
|
16 |
+
How much do Orrin and Damen invest together?"
|
17 |
|
18 |
+
💡 "Try solving it using a **bar model, double number line, or an equation.** Which representation do you prefer?"
|
19 |
+
---
|
20 |
"""
|
21 |
|
22 |
+
# ✅ **STEP 1: BAR MODEL REPRESENTATION**
|
23 |
+
def bar_model_step(step):
|
24 |
+
if step == 1:
|
25 |
+
return """🚀 **Step 1: Solve Using a Bar Model**
|
26 |
+
"Can you use a **bar model** to represent this problem?
|
27 |
+
Think of a rectangular bar divided into parts to represent percentages. How can you use this model to find the total investment?"
|
28 |
+
|
29 |
+
💡 **Before I give hints, consider these questions:**
|
30 |
+
- "If **60% = $1,500**, what does **10%** represent?"
|
31 |
+
- "How many equal parts should you divide the bar into?"
|
32 |
+
|
33 |
+
🔹 **Try solving it before I provide hints! Type your answer below.**
|
34 |
+
"""
|
35 |
+
elif step == 2:
|
36 |
+
return """🔹 **Hint 1:**
|
37 |
+
"Start by drawing a bar representing **100% of the total investment**.
|
38 |
+
Divide it into **10 equal parts**, where each part represents **10%**.
|
39 |
+
Since **60% = $1,500**, how much does **each part** represent?"
|
40 |
+
"""
|
41 |
+
elif step == 3:
|
42 |
+
return """🔹 **Hint 2:**
|
43 |
+
"Divide **$1,500 by 6** to find **10%** of the total investment.
|
44 |
+
Then, multiply by **10** to find **100%**."
|
45 |
+
"""
|
46 |
+
elif step == 4:
|
47 |
+
return """✅ **Solution:**
|
48 |
+
"$1,500 ÷ 6 = $250$ (for 10%)
|
49 |
+
$250 × 10 = $2,500$
|
50 |
+
So, the total investment is **$2,500.**"
|
51 |
+
💡 "Does this make sense? How would you explain this to students?"
|
52 |
+
🚀 "Now, let's solve this problem using a **double number line!**"
|
53 |
+
"""
|
54 |
+
|
55 |
+
# ✅ **STEP 2: DOUBLE NUMBER LINE REPRESENTATION**
|
56 |
+
def double_number_line_step(step):
|
57 |
+
if step == 1:
|
58 |
+
return """🚀 **Step 2: Solve Using a Double Number Line**
|
59 |
+
"Can you use a **double number line** to solve this problem?
|
60 |
+
One line represents **percentages**, and the other represents **dollars**. How would you align the intervals?"
|
61 |
+
|
62 |
+
💡 **Before I give hints, consider these:**
|
63 |
+
- "If **60% = $1,500**, what are the missing values for 10%, 20%, and 100%?"
|
64 |
+
- "How do you align the values on the number line?"
|
65 |
+
|
66 |
+
🔹 **Try solving before I provide hints!**
|
67 |
+
"""
|
68 |
+
elif step == 2:
|
69 |
+
return """🔹 **Hint 1:**
|
70 |
+
"Start by labeling the number lines:
|
71 |
+
- **Percentages:** 0%, 10%, 20%, 60%, 100%
|
72 |
+
- **Dollars:** $0, ???, ???, $1,500, ???"
|
73 |
+
"What values should go in the missing spots?"
|
74 |
+
"""
|
75 |
+
elif step == 3:
|
76 |
+
return """🔹 **Hint 2:**
|
77 |
+
"Divide **$1,500 by 6** to get **10%** of the total.
|
78 |
+
Align this value with the corresponding percentage."
|
79 |
+
"""
|
80 |
+
elif step == 4:
|
81 |
+
return """✅ **Solution:**
|
82 |
+
"The correct number line alignment:
|
83 |
+
- **10% = $250**
|
84 |
+
- **20% = $500**
|
85 |
+
- **100% = $2,500**
|
86 |
+
|
87 |
+
💡 "How did this representation help you understand the proportional relationship?"
|
88 |
+
🚀 "Now, let's solve it using an **equation!**"
|
89 |
+
"""
|
90 |
+
|
91 |
+
# ✅ **STEP 3: EQUATION REPRESENTATION**
|
92 |
+
def equation_step(step):
|
93 |
+
if step == 1:
|
94 |
+
return """🚀 **Step 3: Solve Using an Equation**
|
95 |
+
"Can you set up an **equation** to represent the proportional relationship?
|
96 |
+
How would you write the relationship between **60%** and **$1,500**?"
|
97 |
+
|
98 |
+
💡 **Try setting up an equation before I provide hints!**
|
99 |
+
"""
|
100 |
+
elif step == 2:
|
101 |
+
return """🔹 **Hint 1:**
|
102 |
+
"Write the proportion as:
|
103 |
+
\\[
|
104 |
+
\\frac{60}{100} = \\frac{1,500}{x}
|
105 |
+
\\]
|
106 |
+
Now, solve for \\( x \\)."
|
107 |
+
"""
|
108 |
+
elif step == 3:
|
109 |
+
return """🔹 **Hint 2:**
|
110 |
+
"Use **cross-multiplication** to find \\( x \\)."
|
111 |
+
"""
|
112 |
+
elif step == 4:
|
113 |
+
return """✅ **Solution:**
|
114 |
+
\\[
|
115 |
+
60x = 100(1,500)
|
116 |
+
\\]
|
117 |
+
\\[
|
118 |
+
x = \\frac{150,000}{60} = 2,500
|
119 |
+
\\]
|
120 |
+
💡 "How does setting up an equation compare to the other methods?"
|
121 |
+
🚀 "Now, let’s reflect on what we’ve learned!"
|
122 |
+
"""
|
123 |
+
|
124 |
+
# ✅ **REFLECTION & PROBLEM-POSING**
|
125 |
+
REFLECTION_PROMPT = """
|
126 |
+
📌 **Common Core & Creativity-Directed Practices Discussion**
|
127 |
+
"Great work! Now, let’s connect this to key teaching strategies."
|
128 |
+
|
129 |
+
🔹 **Which Common Core Practices did we cover?**
|
130 |
+
- **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
|
131 |
+
- **CCSS.MATH.CONTENT.7.RP.A.2** (Recognizing proportional relationships)
|
132 |
+
- **CCSS.MATH.PRACTICE.MP1** (Making sense of problems & persevering)
|
133 |
+
- **CCSS.MATH.PRACTICE.MP4** (Modeling with mathematics)
|
134 |
+
|
135 |
+
💡 "Which of these standards applied most to our problem? Why?"
|
136 |
+
"""
|
137 |
+
|
138 |
+
CREATIVITY_DIRECTED_PRACTICES_PROMPT = """
|
139 |
+
🔹 **Which Creativity-Directed Practices did we use?**
|
140 |
+
- Encouraging **multiple solution methods**
|
141 |
+
- Using **real-world contexts**
|
142 |
+
- Thinking critically about **proportional relationships**
|
143 |
+
|
144 |
+
💡 "Which of these strategies did you use? How do they help students?"
|
145 |
+
"""
|
146 |
+
|
147 |
+
PROBLEM_POSING_PROMPT = """
|
148 |
+
📌 **Problem-Posing Activity**
|
149 |
+
"Now, try writing your own **percentage-based proportional reasoning problem!**
|
150 |
+
Use different representations (bar models, number lines, equations) to solve it."
|
151 |
+
|
152 |
+
💡 **Questions to Guide Your Problem:**
|
153 |
+
- "What real-world context will you use?" (e.g., discounts, investments, recipes)
|
154 |
+
- "What percentage and total values will you include?"
|
155 |
+
- "How will your problem allow students to connect concepts?"
|
156 |
+
|
157 |
+
🚀 "Once you've written your problem, I'll help evaluate and refine it!"
|
158 |
+
"""
|