Spaces:
Sleeping
Sleeping
Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +95 -78
prompts/main_prompt.py
CHANGED
@@ -5,128 +5,145 @@ __all__ = ["TASK_PROMPT", "BAR_MODEL_PROMPT", "DOUBLE_NUMBER_LINE_PROMPT",
|
|
5 |
"RATIO_TABLE_PROMPT", "GRAPH_PROMPT", "REFLECTION_PROMPT",
|
6 |
"SUMMARY_PROMPT", "FINAL_REFLECTION_PROMPT"]
|
7 |
|
8 |
-
#
|
9 |
TASK_PROMPT = """
|
10 |
-
Welcome to Module 2: Solving a Ratio Problem Using Multiple Representations!
|
11 |
-
|
12 |
-
Task
|
13 |
-
|
14 |
-
- 1
|
15 |
-
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
-
|
20 |
-
-
|
21 |
-
-
|
22 |
-
|
23 |
-
|
|
|
|
|
24 |
"""
|
25 |
|
|
|
26 |
BAR_MODEL_PROMPT = """
|
27 |
-
Step 1: Bar Model Representation
|
28 |
|
29 |
-
Imagine a bar representing 90 miles—the distance Jessica travels in 2 hours
|
|
|
30 |
|
31 |
-
|
32 |
-
1. Think of the entire bar as representing 90 miles in 2 hours. How would you divide it into two equal parts to find 1 hour?
|
33 |
-
2. Now, extend or divide it further—what happens for 1/2 hour and 3 hours?
|
34 |
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
"""
|
38 |
|
|
|
39 |
DOUBLE_NUMBER_LINE_PROMPT = """
|
40 |
-
Step 2: Double Number Line Representation
|
41 |
|
42 |
-
Now, let’s use a double number line
|
|
|
43 |
|
44 |
-
Start by marking:
|
45 |
-
|
46 |
-
|
47 |
|
48 |
-
What comes next?
|
49 |
|
50 |
-
|
51 |
-
1
|
52 |
-
2
|
53 |
|
54 |
-
If correct: Nice work! How does this help students understand proportional relationships
|
55 |
-
If incorrect: Check your spacing—does your number line keep a constant rate
|
56 |
"""
|
57 |
|
|
|
58 |
RATIO_TABLE_PROMPT = """
|
59 |
-
Step 3: Ratio Table Representation
|
60 |
|
61 |
-
Next, let’s create a ratio table
|
62 |
-
|
63 |
-
|
|
|
64 |
|
65 |
-
You already know 2 hours = 90 miles
|
|
|
66 |
|
67 |
-
|
68 |
-
1
|
69 |
-
2
|
70 |
|
71 |
-
If correct: Well done! How might this help students compare proportional relationships
|
72 |
-
If incorrect: Something’s a little off. Try using unit rate: 90 ÷ 2 =
|
73 |
"""
|
74 |
|
|
|
75 |
GRAPH_PROMPT = """
|
76 |
-
Step 4: Graph Representation
|
77 |
|
78 |
-
Now, let’s graph this problem
|
79 |
-
|
80 |
-
|
|
|
81 |
|
82 |
-
You already know two key points:
|
83 |
-
|
84 |
|
85 |
-
What other points will you add?
|
86 |
|
87 |
-
|
88 |
-
1
|
89 |
-
2
|
90 |
|
91 |
-
If correct: Fantastic! How does this graph reinforce the idea of constant rate and proportionality
|
92 |
-
If incorrect: Does your line pass through (0,0)? Why is that important
|
93 |
"""
|
94 |
|
|
|
95 |
REFLECTION_PROMPT = """
|
96 |
-
Reflection Time
|
97 |
|
98 |
-
Now that you've explored multiple representations
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
|
103 |
-
Take a moment to reflect!
|
104 |
"""
|
105 |
|
|
|
106 |
SUMMARY_PROMPT = """
|
107 |
-
Summary of Module 2
|
108 |
|
109 |
-
In this module, you
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
|
114 |
-
Final Task
|
|
|
115 |
|
116 |
-
Make sure your problem can be solved using:
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
|
122 |
-
The AI will evaluate your problem and provide feedback
|
123 |
"""
|
124 |
|
|
|
125 |
FINAL_REFLECTION_PROMPT = """
|
126 |
-
Final Reflection
|
127 |
|
128 |
-
- How does designing and solving problems using multiple representations enhance students’ mathematical creativity?
|
129 |
-
- How would you guide students to explain their reasoning
|
130 |
|
131 |
-
Share your thoughts!
|
132 |
-
"""
|
|
|
5 |
"RATIO_TABLE_PROMPT", "GRAPH_PROMPT", "REFLECTION_PROMPT",
|
6 |
"SUMMARY_PROMPT", "FINAL_REFLECTION_PROMPT"]
|
7 |
|
8 |
+
# 🟢 MODULE STARTS WITH THE TASK
|
9 |
TASK_PROMPT = """
|
10 |
+
### Welcome to Module 2: Solving a Ratio Problem Using Multiple Representations!
|
11 |
+
|
12 |
+
#### **Task:**
|
13 |
+
Jessica drives **90 miles in 2 hours**. If she drives at the same rate, how far does she travel in:
|
14 |
+
- **1 hour?**
|
15 |
+
- **1/2 hour?**
|
16 |
+
- **3 hours?**
|
17 |
+
|
18 |
+
To solve this, try using different representations:
|
19 |
+
- **Bar models**
|
20 |
+
- **Double number lines**
|
21 |
+
- **Ratio tables**
|
22 |
+
- **Graphs**
|
23 |
+
|
24 |
+
🔹 **Goal:** Don't just find the answer—**explain why**!
|
25 |
+
💬 I'll guide you step by step—let’s start with the **bar model**.
|
26 |
"""
|
27 |
|
28 |
+
# 📊 Step 1: Bar Model Representation
|
29 |
BAR_MODEL_PROMPT = """
|
30 |
+
### **Step 1: Bar Model Representation**
|
31 |
|
32 |
+
Imagine a **bar** representing 90 miles—the distance Jessica travels in **2 hours**.
|
33 |
+
🧩 How might you divide this bar to explore the distances for **1 hour, 1/2 hour, and 3 hours**?
|
34 |
|
35 |
+
💭 *Explain how each section of your bar relates to these time intervals!*
|
|
|
|
|
36 |
|
37 |
+
**💡 Need a hint?**
|
38 |
+
1️⃣ *Think of the entire bar as representing **90 miles in 2 hours**. How would you divide it into two equal parts to find 1 hour?*
|
39 |
+
2️⃣ *Now, extend or divide it further—what happens for **1/2 hour and 3 hours**?*
|
40 |
+
|
41 |
+
✅ If correct: *Great! Can you explain why this model helps students visualize proportional relationships?*
|
42 |
+
❌ If incorrect: *Try dividing the bar into two equal sections. What does each section represent?*
|
43 |
"""
|
44 |
|
45 |
+
# 📏 Step 2: Double Number Line Representation
|
46 |
DOUBLE_NUMBER_LINE_PROMPT = """
|
47 |
+
### **Step 2: Double Number Line Representation**
|
48 |
|
49 |
+
Now, let’s use a **double number line**!
|
50 |
+
📌 **Create two parallel lines**: one for **time (hours)** and one for **distance (miles)**.
|
51 |
|
52 |
+
Start by marking:
|
53 |
+
⏳ **0 and 2 hours** on the top line
|
54 |
+
🚗 **0 and 90 miles** on the bottom line
|
55 |
|
56 |
+
What comes next?
|
57 |
|
58 |
+
**💡 Need a hint?**
|
59 |
+
1️⃣ Try labeling the time line **(0, 1, 2, 3)**. How does that help with placing distances below?
|
60 |
+
2️⃣ Since **2 hours = 90 miles**, what does that tell you about **1 hour and 1/2 hour**?
|
61 |
|
62 |
+
✅ If correct: *Nice work! How does this help students understand proportional relationships?*
|
63 |
+
❌ If incorrect: *Check your spacing—does your number line keep a constant rate?*
|
64 |
"""
|
65 |
|
66 |
+
# 📋 Step 3: Ratio Table Representation
|
67 |
RATIO_TABLE_PROMPT = """
|
68 |
+
### **Step 3: Ratio Table Representation**
|
69 |
|
70 |
+
Next, let’s create a **ratio table**!
|
71 |
+
📝 Make a table with:
|
72 |
+
📌 **Column 1:** Time (hours)
|
73 |
+
📌 **Column 2:** Distance (miles)
|
74 |
|
75 |
+
You already know **2 hours = 90 miles**.
|
76 |
+
🤔 How would you complete the table for **1/2 hour, 1 hour, and 3 hours**?
|
77 |
|
78 |
+
**💡 Need a hint?**
|
79 |
+
1️�� Since **2 hours = 90 miles**, how can you divide this to find **1 hour**?
|
80 |
+
2️⃣ Once you know **1 hour = 45 miles**, can you calculate for **1/2 hour and 3 hours**?
|
81 |
|
82 |
+
✅ If correct: *Well done! How might this help students compare proportional relationships?*
|
83 |
+
❌ If incorrect: *Something’s a little off. Try using unit rate: 90 ÷ 2 = ?*
|
84 |
"""
|
85 |
|
86 |
+
# 📉 Step 4: Graph Representation
|
87 |
GRAPH_PROMPT = """
|
88 |
+
### **Step 4: Graph Representation**
|
89 |
|
90 |
+
Now, let’s **graph this problem**!
|
91 |
+
🛠 **Plot:**
|
92 |
+
📌 **Time (hours) on the x-axis**
|
93 |
+
📌 **Distance (miles) on the y-axis**
|
94 |
|
95 |
+
You already know two key points:
|
96 |
+
🔹 **(0,0) and (2,90)**
|
97 |
|
98 |
+
🤔 What other points will you add?
|
99 |
|
100 |
+
**💡 Need a hint?**
|
101 |
+
1️⃣ Start by marking **(0,0) and (2,90)**.
|
102 |
+
2️⃣ How can you use these to find **(1,45), (1/2,22.5), and (3,135)?**
|
103 |
|
104 |
+
✅ If correct: *Fantastic! How does this graph reinforce the idea of constant rate and proportionality?*
|
105 |
+
❌ If incorrect: *Does your line pass through (0,0)? Why is that important?*
|
106 |
"""
|
107 |
|
108 |
+
# 🔄 Reflection Prompt
|
109 |
REFLECTION_PROMPT = """
|
110 |
+
### **Reflection Time!**
|
111 |
|
112 |
+
Now that you've explored **multiple representations**, think about these questions:
|
113 |
+
💡 How does each method highlight **proportional reasoning differently**?
|
114 |
+
💬 Which representation do you prefer, and why?
|
115 |
+
🚀 Can you think of a situation where one of these representations **wouldn’t** be the best choice?
|
116 |
|
117 |
+
Take a moment to reflect! 😊
|
118 |
"""
|
119 |
|
120 |
+
# 🎯 Summary Prompt
|
121 |
SUMMARY_PROMPT = """
|
122 |
+
### **Summary of Module 2**
|
123 |
|
124 |
+
📌 **In this module, you:**
|
125 |
+
✅ Solved a proportional reasoning problem using **multiple representations**
|
126 |
+
✅ Explored how different models highlight proportional relationships
|
127 |
+
✅ Reflected on teaching strategies aligned with **Common Core practices**
|
128 |
|
129 |
+
📝 **Final Task:** Try creating a **similar proportional reasoning problem**!
|
130 |
+
Example: A **runner covers a certain distance in a given time**.
|
131 |
|
132 |
+
💡 Make sure your problem can be solved using:
|
133 |
+
✅ **Bar models**
|
134 |
+
✅ **Double number lines**
|
135 |
+
✅ **Ratio tables**
|
136 |
+
✅ **Graphs**
|
137 |
|
138 |
+
📢 *The AI will evaluate your problem and provide feedback!*
|
139 |
"""
|
140 |
|
141 |
+
# 🚀 Final Reflection Prompt
|
142 |
FINAL_REFLECTION_PROMPT = """
|
143 |
+
### **Final Reflection**
|
144 |
|
145 |
+
- How does designing and solving problems using **multiple representations** enhance students’ mathematical creativity?
|
146 |
+
- How would you guide students to explain their **reasoning**, even if they get the correct answer?
|
147 |
|
148 |
+
📌 Share your thoughts!
|
149 |
+
"""
|