alibicer commited on
Commit
704c1ec
·
verified ·
1 Parent(s): de0457f

Update prompts/main_prompt.py

Browse files
Files changed (1) hide show
  1. prompts/main_prompt.py +110 -67
prompts/main_prompt.py CHANGED
@@ -1,6 +1,6 @@
 
1
  MAIN_PROMPT = """
2
  ### **Module 3: Proportional Reasoning Problem Types**
3
- #### **Task Introduction**
4
  "Welcome to this module on proportional reasoning problem types!
5
  Today, we will explore three fundamental types of proportional reasoning problems:
6
  1️⃣ **Missing Value Problems**
@@ -8,77 +8,120 @@ Today, we will explore three fundamental types of proportional reasoning problem
8
  3️⃣ **Qualitative Reasoning Problems**
9
  Your goal is to **solve and compare** these problems, **identify their characteristics**, and finally **create your own examples** for each type.
10
  💡 **Throughout this module, I will guide you step by step.**
11
- 💡 **You will be encouraged to explain your reasoning.**
12
  💡 **If you’re unsure, I will provide hints rather than giving direct answers.**
13
  🚀 **Let’s begin! First, try solving each problem on your own. Then, I will help you refine your thinking step by step.**
14
- ---
15
- ### **🚀 Solve the Following Three Problems**
16
- 📌 **Problem 1: Missing Value Problem**
17
- *"The scale on a map is **2 cm represents 25 miles**. If a given measurement on the map is **24 cm**, how many miles are represented?"*
18
- 📌 **Problem 2: Numerical Comparison Problem**
19
- *"Ali and Ahmet purchased pencils. Ali bought **10 pencils for $3.50**, and Ahmet purchased **5 pencils for $1.80**. Who got the better deal?"*
20
- 📌 **Problem 3: Qualitative Reasoning Problem**
21
- *"Kim is mixing paint. Yesterday, she combined **red and white paint** in a certain ratio. Today, she used **more red paint** but kept the **same amount of white paint**. How will today’s mixture compare to yesterday’s in color?"*
22
  """
23
 
24
- MISSING_VALUE_PROMPT = """
25
- ### **🚀 Step 1: Missing Value Problem**
26
- 🔹 **Let's explore the problem together!**
27
- *"The scale on a map is **2 cm represents 25 miles**. If a measurement is **24 cm**, how many miles does it represent?"*
28
- 💡 **Before I give hints, try to answer these questions:**
29
- - "What is the relationship between **2 cm** and **24 cm**? How many times larger is 24 cm?"
30
- - "If **2 cm = 25 miles**, how can we scale up proportionally?"
31
- - "How would you set up a proportion to find the missing value?"
32
- 🔹 **If you're unsure, let's break it down!**
33
- - *Hint 1:* "Try writing the given information as a proportion:
34
- $$ \\frac{2 \\text{ cm}}{25 \\text{ miles}} = \\frac{24 \\text{ cm}}{x} $$
35
- How can we solve for **x**?"
36
- - *Hint 2:* "Divide 24 by 2 to determine the **scaling factor**. What do you get?"
37
- - *Hint 3:* "Now, multiply that factor by **25 miles**. What is your result?"
38
- 🔹 **If you provided a correct answer, AI continues engaging:**
39
- - "Great! You found **300 miles**. Can you explain your reasoning step by step?"
40
- - "Could we also solve this using a **ratio table or a double number line**? Would that be helpful?"
41
- - "If a student struggles with setting up the proportion, how would you guide them?"
42
- 🔹 **Once you've explained your reasoning, AI transitions naturally:**
43
- *"Now that we've solved this, let’s compare different proportional relationships. How about we analyze the **numerical comparison problem** next?"*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  """
45
 
46
- NUMERICAL_COMPARISON_PROMPT = """
47
- ### **🚀 Step 2: Numerical Comparison Problem**
48
- 🔹 **Let's compare unit prices!**
49
- *"Ali bought **10 pencils for $3.50**, and Ahmet purchased **5 pencils for $1.80**. Who got the better deal?"*
50
- 💡 **Before I give hints, try to answer these questions:**
51
- - "What does 'better deal' mean mathematically?"
52
- - "How can we calculate the **cost per pencil** for each person?"
53
- - "Why is unit price useful for comparison?"
54
- 🔹 **If you're unsure, let's break it down!**
55
- - *Hint 1:* "Find the cost per pencil for each person:
56
- $$ \\frac{3.50}{10} $$
57
- $$ \\frac{1.80}{5} $$
58
- What do you get?"
59
- - *Hint 2:* "Which value is smaller? What does that tell you about who got the better deal?"
60
- 🔹 **If you provided a correct answer, AI continues engaging:**
61
- - "Nice work! You found Ali's price per pencil is **$0.35**, and Ahmet's is **$0.36**. Why does this comparison matter?"
62
- - "Would this always be the best way to compare purchases, or are there cases where other factors matter?"
63
- - "How would you help students understand the importance of unit rates?"
64
- 🔹 **AI transitions naturally to the final problem:**
65
- *"Great! Now that we've analyzed numerical comparisons, let’s apply our reasoning skills to a **qualitative proportionality** problem!"*
66
  """
67
 
68
- QUALITATIVE_REASONING_PROMPT = """
69
- ### **🚀 Step 3: Qualitative Reasoning Problem**
70
- 🔹 **Let’s reason through this!**
71
- *"Kim is making paint. Yesterday, she mixed white and red paint together. Today, she used **more red paint** but kept the **same amount of white paint**. How will today’s mixture compare to yesterday’s in color?"*
72
- 💡 **Before I give hints, try to answer these questions:**
73
- - "If the amount of white paint stays the same, but the red paint increases, what happens to the ratio of red to white?"
74
- - "Would today’s mixture be darker, lighter, or stay the same?"
75
- - "How would you explain this concept without using numbers?"
76
- 🔹 **If you're unsure, let’s break it down!**
77
- - *Hint 1:* "Imagine yesterday’s ratio was **1 part red : 1 part white**. If we increase the red, what happens?"
78
- - *Hint 2:* "If the ratio of red to white increases, does the color become more red or less red?"
79
- 🔹 **If you provided a correct answer, AI continues engaging:**
80
- - "Great! You correctly said today’s mixture is **more red**. But why does that happen?"
81
- - "Could you think of a real-life example where changing a ratio affects an outcome?"
82
- - "How would you help a student struggling with this type of reasoning?"
83
- 🚀 **Great job! Now, let's reflect on what we've learned.**
84
- """
 
1
+ ### 🚀 MAIN PROMPT ###
2
  MAIN_PROMPT = """
3
  ### **Module 3: Proportional Reasoning Problem Types**
 
4
  "Welcome to this module on proportional reasoning problem types!
5
  Today, we will explore three fundamental types of proportional reasoning problems:
6
  1️⃣ **Missing Value Problems**
 
8
  3️⃣ **Qualitative Reasoning Problems**
9
  Your goal is to **solve and compare** these problems, **identify their characteristics**, and finally **create your own examples** for each type.
10
  💡 **Throughout this module, I will guide you step by step.**
11
+ 💡 **You will be encouraged to explain your reasoning before receiving hints.**
12
  💡 **If you’re unsure, I will provide hints rather than giving direct answers.**
13
  🚀 **Let’s begin! First, try solving each problem on your own. Then, I will help you refine your thinking step by step.**
 
 
 
 
 
 
 
 
14
  """
15
 
16
+ def next_step(step):
17
+ if step == 1:
18
+ return """🚀 **Problem 1: Missing Value Problem**
19
+ "The scale on a map is **2 cm represents 25 miles**. If a measurement is **24 cm**, how many miles does it represent?"
20
+
21
+ 💡 **Before solving, think about this:**
22
+ - "How does 24 cm compare to 2 cm? Can you find the scale factor?"
23
+ - "If **2 cm = 25 miles**, how can we use this to scale up?"
24
+
25
+ 🔹 **Try solving it before I provide hints! Type your answer below.**
26
+ """
27
+
28
+ elif step == 2:
29
+ return """🔹 **Hint 1:**
30
+ 1️⃣ "Try setting up a proportion:
31
+ $$ \\frac{2}{25} = \\frac{24}{x} $$
32
+ Does this equation make sense?"
33
+
34
+ 💡 **Try answering before moving forward.**
35
+ """
36
+
37
+ elif step == 3:
38
+ return """🔹 **Hint 2:**
39
+ 2️⃣ "Now, cross-multiply:
40
+ $$ 2 \\times x = 24 \\times 25 $$
41
+ Can you solve for \( x \)?"
42
+
43
+ 💡 **Give it a shot!**
44
+ """
45
+
46
+ elif step == 4:
47
+ return """✅ **Solution:**
48
+ "Final step: divide both sides by 2:
49
+ $$ x = \\frac{600}{2} = 300 $$
50
+ So, 24 cm represents **300 miles**!"
51
+
52
+ 💡 "Does this answer make sense? Want to try another method?"
53
+ """
54
+
55
+ elif step == 5:
56
+ return """🚀 **Problem 2: Numerical Comparison Problem**
57
+ "Ali bought **10 pencils for $3.50**, and Ahmet bought **5 pencils for $1.80**. Who got the better deal?"
58
+
59
+ 💡 **Try solving it before I provide hints!**
60
+ """
61
+
62
+ elif step == 6:
63
+ return """🔹 **Hint 1:**
64
+ 1️⃣ "Find the cost per pencil:
65
+ $$ \\frac{3.50}{10} = 0.35 $$ per pencil (Ali)
66
+ $$ \\frac{1.80}{5} = 0.36 $$ per pencil (Ahmet)"
67
+
68
+ 💡 **Try calculating it before moving forward!**
69
+ """
70
+
71
+ elif step == 7:
72
+ return """✅ **Solution:**
73
+ "Which is cheaper?
74
+ - **Ali pays less per pencil** (35 cents vs. 36 cents).
75
+ So, **Ali got the better deal!**"
76
+
77
+ 💡 "Does this make sense? Would you like to discuss unit rates more?"
78
+ """
79
+
80
+ elif step == 8:
81
+ return """🚀 **Problem 3: Qualitative Reasoning Problem**
82
+ "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?"
83
+
84
+ 💡 **Think before answering:**
85
+ - "How does the ratio of red to white change?"
86
+ - "Would the color become darker, lighter, or stay the same?"
87
+
88
+ 🔹 **Try explaining before I provide hints!**
89
+ """
90
+
91
+ elif step == 9:
92
+ return """🔹 **Hint 1:**
93
+ 1️⃣ "Yesterday: **Ratio of red:white** was **R:W**."
94
+ 2️⃣ "Today: More red, same white → **Higher red-to-white ratio**."
95
+ 3️⃣ "Higher red → **Darker shade!**"
96
+
97
+ 💡 "Does this explanation match your thinking?"
98
+ """
99
+
100
+ elif step == 10:
101
+ return """📌 **Common Core & Creativity-Directed Practices Discussion**
102
+ "Great job! Now, let’s reflect on how these problems connect to teaching strategies."
103
+
104
+ 🔹 **Common Core Standards Covered:**
105
+ - **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
106
+ - **CCSS.MATH.CONTENT.7.RP.A.2** (Recognizing proportional relationships)
107
+
108
+ 💡 "Which of these standards do you think were covered? Why?"
109
+ """
110
+
111
+ elif step == 11:
112
+ return """🔹 **Creativity-Directed Practices Discussion**
113
+ "Throughout these problems, we engaged in creativity-directed strategies, such as:
114
+ ✅ Encouraging multiple solution methods
115
+ ✅ Using real-world contexts
116
+ ✅ Thinking critically about proportional relationships
117
+
118
+ 💡 "Which of these strategies did you find the most helpful? Why?"
119
  """
120
 
121
+ elif step == 12:
122
+ return """📌 **Reflection & Problem Posing Activity**
123
+ "Lets take it one step further! Try creating your own proportional reasoning problem."
124
+ 💡 "Would you like to modify one of the previous problems, or create a brand new one?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  """
126
 
127
+ return "🎉 **You've completed the module! Would you like to review anything again?**"