Spaces:
Sleeping
Sleeping
Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +30 -23
prompts/main_prompt.py
CHANGED
@@ -3,7 +3,8 @@ MAIN_PROMPT = """
|
|
3 |
### **Module 3: Proportional Reasoning Problem Types**
|
4 |
"Welcome to this module on proportional reasoning problem types!
|
5 |
I'll guide you through three types of problems step by step.
|
6 |
-
|
|
|
7 |
"""
|
8 |
|
9 |
def next_step(step):
|
@@ -11,72 +12,78 @@ def next_step(step):
|
|
11 |
return """🚀 **Problem 1: Missing Value Problem**
|
12 |
"The scale on a map is **2 cm represents 25 miles**. If a measurement is **24 cm**, how many miles does it represent?"
|
13 |
|
14 |
-
💡 **
|
15 |
- "How does 24 cm compare to 2 cm? Can you find the scale factor?"
|
16 |
- "If **2 cm = 25 miles**, how can we use this to scale up?"
|
|
|
17 |
"""
|
18 |
|
19 |
elif step == 2:
|
20 |
-
return """🔹 **If you
|
21 |
-
1️⃣ "Try setting up
|
22 |
$$ \frac{2}{25} = \frac{24}{x} $$
|
23 |
Does this equation make sense?"
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
25 |
$$ 2 \times x = 24 \times 25 $$
|
26 |
Can you solve for \( x \)?"
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
28 |
$$ x = \frac{600}{2} = 300 $$
|
29 |
So, 24 cm represents **300 miles**!"
|
|
|
30 |
💡 "Does this make sense? Want to try another method?"
|
31 |
"""
|
32 |
|
33 |
-
elif step ==
|
34 |
return """🚀 **Problem 2: Numerical Comparison Problem**
|
35 |
"Ali bought **10 pencils for $3.50**, and Ahmet bought **5 pencils for $1.80**. Who got the better deal?"
|
36 |
|
37 |
-
💡 **
|
38 |
- "What does ‘better deal’ mean mathematically?"
|
39 |
- "How do we compare prices fairly?"
|
40 |
"""
|
41 |
|
42 |
-
elif step ==
|
43 |
-
return """🔹 **If you
|
44 |
1️⃣ "Find the cost per pencil:
|
45 |
$$ \frac{3.50}{10} = 0.35 $$ per pencil (Ali)
|
46 |
$$ \frac{1.80}{5} = 0.36 $$ per pencil (Ahmet)"
|
47 |
-
|
48 |
-
|
49 |
-
💡 "Does this make sense?"
|
50 |
"""
|
51 |
|
52 |
-
elif step ==
|
53 |
return """🚀 **Problem 3: Qualitative Reasoning Problem**
|
54 |
"Kim is mixing paint. Yesterday, she mixed red and white paint. Today, she added **more red paint** but kept the **same white paint**. What happens to the color?"
|
55 |
|
56 |
💡 **What do you think?**
|
57 |
- "How does the ratio of red to white change?"
|
58 |
- "Would the color become darker, lighter, or stay the same?"
|
59 |
-
"""
|
60 |
|
61 |
-
|
62 |
-
return """🔹 **If you're stuck, let's break it down:**
|
63 |
-
1️⃣ "Yesterday: **Ratio of red:white** was **R:W**."
|
64 |
-
2️⃣ "Today: More red, same white → **Higher red-to-white ratio**."
|
65 |
-
3️⃣ "Higher red → **Darker shade!**"
|
66 |
-
💡 "Does this explanation match your thinking?"
|
67 |
"""
|
68 |
|
69 |
-
elif step ==
|
70 |
return """📌 **Common Core & Creativity-Directed Practices Discussion**
|
71 |
"Great work! Now, let’s reflect on how these problems connect to teaching strategies."
|
72 |
|
73 |
🔹 **Common Core Standards Covered:**
|
74 |
- **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
|
75 |
- **CCSS.MATH.CONTENT.7.RP.A.2** (Recognizing proportional relationships)
|
|
|
76 |
💡 "Which of these standards do you think were covered? Why?"
|
77 |
"""
|
78 |
|
79 |
-
elif step ==
|
80 |
return """📌 **Reflection & Problem Posing Activity**
|
81 |
"Let’s take it one step further! Try creating your own proportional reasoning problem."
|
82 |
💡 "Would you like to modify one of the previous problems, or create a brand new one?"
|
|
|
3 |
### **Module 3: Proportional Reasoning Problem Types**
|
4 |
"Welcome to this module on proportional reasoning problem types!
|
5 |
I'll guide you through three types of problems step by step.
|
6 |
+
💡 **First, I will ask you questions and let you solve them before I provide hints or solutions.**
|
7 |
+
Are you ready?"
|
8 |
"""
|
9 |
|
10 |
def next_step(step):
|
|
|
12 |
return """🚀 **Problem 1: Missing Value Problem**
|
13 |
"The scale on a map is **2 cm represents 25 miles**. If a measurement is **24 cm**, how many miles does it represent?"
|
14 |
|
15 |
+
💡 **Before solving, think about this:**
|
16 |
- "How does 24 cm compare to 2 cm? Can you find the scale factor?"
|
17 |
- "If **2 cm = 25 miles**, how can we use this to scale up?"
|
18 |
+
- **Give it a try before I provide hints!** Type your answer.
|
19 |
"""
|
20 |
|
21 |
elif step == 2:
|
22 |
+
return """🔹 **If you’re unsure, here’s a hint:**
|
23 |
+
1️⃣ "Try setting up a proportion:
|
24 |
$$ \frac{2}{25} = \frac{24}{x} $$
|
25 |
Does this equation make sense?"
|
26 |
+
|
27 |
+
💡 **Try again! Type what you think.**
|
28 |
+
"""
|
29 |
+
|
30 |
+
elif step == 3:
|
31 |
+
return """2️⃣ "Now, cross-multiply:
|
32 |
$$ 2 \times x = 24 \times 25 $$
|
33 |
Can you solve for \( x \)?"
|
34 |
+
|
35 |
+
💡 **Still stuck? Let me know.**
|
36 |
+
"""
|
37 |
+
|
38 |
+
elif step == 4:
|
39 |
+
return """3️⃣ "Final step: divide both sides by 2:
|
40 |
$$ x = \frac{600}{2} = 300 $$
|
41 |
So, 24 cm represents **300 miles**!"
|
42 |
+
|
43 |
💡 "Does this make sense? Want to try another method?"
|
44 |
"""
|
45 |
|
46 |
+
elif step == 5:
|
47 |
return """🚀 **Problem 2: Numerical Comparison Problem**
|
48 |
"Ali bought **10 pencils for $3.50**, and Ahmet bought **5 pencils for $1.80**. Who got the better deal?"
|
49 |
|
50 |
+
💡 **Try solving it first!**
|
51 |
- "What does ‘better deal’ mean mathematically?"
|
52 |
- "How do we compare prices fairly?"
|
53 |
"""
|
54 |
|
55 |
+
elif step == 6:
|
56 |
+
return """🔹 **If you need a hint, here’s the first step:**
|
57 |
1️⃣ "Find the cost per pencil:
|
58 |
$$ \frac{3.50}{10} = 0.35 $$ per pencil (Ali)
|
59 |
$$ \frac{1.80}{5} = 0.36 $$ per pencil (Ahmet)"
|
60 |
+
|
61 |
+
💡 **Try again and type your answer.**
|
|
|
62 |
"""
|
63 |
|
64 |
+
elif step == 7:
|
65 |
return """🚀 **Problem 3: Qualitative Reasoning Problem**
|
66 |
"Kim is mixing paint. Yesterday, she mixed red and white paint. Today, she added **more red paint** but kept the **same white paint**. What happens to the color?"
|
67 |
|
68 |
💡 **What do you think?**
|
69 |
- "How does the ratio of red to white change?"
|
70 |
- "Would the color become darker, lighter, or stay the same?"
|
|
|
71 |
|
72 |
+
💡 **Try explaining your reasoning before I provide hints.**
|
|
|
|
|
|
|
|
|
|
|
73 |
"""
|
74 |
|
75 |
+
elif step == 8:
|
76 |
return """📌 **Common Core & Creativity-Directed Practices Discussion**
|
77 |
"Great work! Now, let’s reflect on how these problems connect to teaching strategies."
|
78 |
|
79 |
🔹 **Common Core Standards Covered:**
|
80 |
- **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
|
81 |
- **CCSS.MATH.CONTENT.7.RP.A.2** (Recognizing proportional relationships)
|
82 |
+
|
83 |
💡 "Which of these standards do you think were covered? Why?"
|
84 |
"""
|
85 |
|
86 |
+
elif step == 9:
|
87 |
return """📌 **Reflection & Problem Posing Activity**
|
88 |
"Let’s take it one step further! Try creating your own proportional reasoning problem."
|
89 |
💡 "Would you like to modify one of the previous problems, or create a brand new one?"
|