alibicer commited on
Commit
3be694e
·
verified ·
1 Parent(s): e83a65c

Update prompts/main_prompt.py

Browse files
Files changed (1) hide show
  1. prompts/main_prompt.py +75 -106
prompts/main_prompt.py CHANGED
@@ -1,115 +1,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
- I'll guide you step by step. 💡 **Try answering before I provide hints.**
6
-
7
- Are you ready?"
8
- """
9
-
10
- def next_step(step):
11
- if step == 1:
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
- 💡 **Think before answering:**
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
-
19
- 🔹 **Try solving it before I give hints!**
 
 
20
  """
21
 
22
- elif step == 2:
23
- return """🔹 **Hint 1:**
24
- 1️⃣ "Try setting up a proportion:
25
- $$ \frac{2}{25} = \frac{24}{x} $$
26
- Does this equation make sense?"
27
-
28
- 💡 **Try answering!**
29
- """
30
-
31
- elif step == 3:
32
- return """🔹 **Hint 2:**
33
- 2️⃣ "Now, cross-multiply:
34
- $$ 2 \times x = 24 \times 25 $$
35
- Can you solve for \( x \)?"
36
-
37
- 💡 **Try again before I explain!**
38
- """
39
-
40
- elif step == 4:
41
- return """✅ **Solution:**
42
- "Final step: divide both sides by 2:
43
- $$ x = \frac{600}{2} = 300 $$
44
- So, 24 cm represents **300 miles**!"
45
-
46
- 💡 "Does this answer make sense? Would you like to try another method?"
47
- """
48
-
49
- elif step == 5:
50
- return """🚀 **Problem 2: Numerical Comparison Problem**
51
- "Ali bought **10 pencils for $3.50**, and Ahmet bought **5 pencils for $1.80**. Who got the better deal?"
52
-
53
- 💡 **Think before answering:**
54
- - "What does ‘better deal’ mean mathematically?"
55
- - "How do we compare prices fairly?"
56
-
57
- 🔹 **Try solving it first!**
58
- """
59
-
60
- elif step == 6:
61
- return """🔹 **Hint 1:**
62
- 1️⃣ "Find the cost per pencil:
63
- $$ \frac{3.50}{10} = 0.35 $$ per pencil (Ali)
64
- $$ \frac{1.80}{5} = 0.36 $$ per pencil (Ahmet)"
65
-
66
- 💡 **Try calculating the costs!**
67
- """
68
-
69
- elif step == 7:
70
- return """✅ **Solution:**
71
- "Which is cheaper?
72
- - **Ali pays less per pencil** (35 cents vs. 36 cents).
73
- So, **Ali got the better deal!**"
74
-
75
- 💡 "Does this make sense? Would you like to discuss unit rates more?"
76
- """
77
-
78
- elif step == 8:
79
- return """🚀 **Problem 3: Qualitative Reasoning Problem**
80
- "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?"
81
-
82
- 💡 **Think before answering:**
83
- - "How does the ratio of red to white change?"
84
- - "Would the color become darker, lighter, or stay the same?"
85
-
86
- 🔹 **Try explaining before I provide hints!**
87
- """
88
-
89
- elif step == 9:
90
- return """🔹 **Hint 1:**
91
- 1️⃣ "Yesterday: **Ratio of red:white** was **R:W**."
92
- 2️⃣ "Today: More red, same white → **Higher red-to-white ratio**."
93
- 3️⃣ "Higher red → **Darker shade!**"
94
-
95
- 💡 "Does this explanation match your thinking?"
96
- """
97
-
98
- elif step == 10:
99
- return """📌 **Common Core & Creativity-Directed Practices Discussion**
100
- "Great job! Now, let’s reflect on how these problems connect to teaching strategies."
101
-
102
- 🔹 **Common Core Standards Covered:**
103
- - **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems)
104
- - **CCSS.MATH.CONTENT.7.RP.A.2** (Recognizing proportional relationships)
105
-
106
- 💡 "Which of these standards do you think were covered? Why?"
107
  """
108
 
109
- elif step == 11:
110
- return """📌 **Reflection & Problem Posing Activity**
111
- "Lets take it one step further! Try creating your own proportional reasoning problem."
112
- 💡 "Would you like to modify one of the previous problems, or create a brand new one?"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  """
114
 
115
- return "🎉 **You've completed the module! Would you like to review anything again?**"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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**
7
+ 2️⃣ **Numerical Comparison 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.**
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
+ """