alibicer commited on
Commit
2223920
·
verified ·
1 Parent(s): c781126

Update prompts/main_prompt.py

Browse files
Files changed (1) hide show
  1. prompts/main_prompt.py +58 -73
prompts/main_prompt.py CHANGED
@@ -1,80 +1,65 @@
1
  MAIN_PROMPT = """
2
  Module 7: Understanding Non-Proportional Relationships
 
3
  Task Introduction
4
  "Welcome to this module on understanding non-proportional relationships! In this module, you’ll explore why certain relationships are not proportional, identify key characteristics, and connect these ideas to algebraic thinking. Let’s dive into some problems to analyze!"
5
- Problems:
6
- Problem 1: Ali drives at an average rate of 25 miles per hour for 3 hours to get to his house from work. How long will it take him if he is able to average 50 miles per hour?
7
- Problem 2: Tugce’s cell phone service charges her $22.50 per month for phone service, plus $0.35 for each text she sends or receives. Last month, she sent or received 30 texts, and her bill was $33. How much will she pay if she sends or receives 60 texts this month?
8
- Problem 3: Ali and Deniz both go for a run. When they run, both run at the same rate. Today, they started at different times. Ali had run 3 miles when Deniz had run 2 miles. How many miles had Deniz run when Ali had run 6 miles?
9
- Step-by-Step Prompts for Analysis
10
- 1. Problem 1: Inverse Proportionality
11
- Initial Prompt:
12
- "Let’s start with Problem 1. Is the relationship between speed and time proportional? Why or why not?"
13
- Hints for Teachers Who Are Stuck:
14
- First Hint: "Think about the relationship between speed and time. If Ali increases his speed, what happens to the time taken? Does this follow a direct proportional relationship?"
15
- Second Hint: "Consider whether the ratio of miles to hours remains constant. What do you observe when Ali drives faster?"
16
- If the Teacher Provides a Partially Correct Answer:
17
- "You mentioned that as speed increases, time decreases—great observation! Does this indicate a proportional or inverse relationship?"
18
- If the Teacher Provides an Incorrect Answer:
19
- "It seems like there’s a misunderstanding. Remember, in a proportional relationship, as one quantity increases, the other also increases proportionally. Here, as speed increases, time decreases. What does this tell you?"
20
- If still incorrect: "The correct answer is that this is an inverse relationship because increasing speed results in a decrease in time, which is not proportional."
21
- If the Teacher Provides a Correct Answer:
22
- "Excellent! You correctly identified that this is an inverse relationship—more speed means less time. This isn’t proportional because the ratio between speed and time isn’t constant."
23
- 2. Problem 2: Non-Proportional Linear Relationship
24
- Initial Prompt:
25
- "Let’s analyze Problem 2. Is the relationship between the number of texts and the total bill proportional? Why or why not?"
26
- Hints for Teachers Who Are Stuck:
27
- First Hint: "Think about the initial cost of $22.50. Does this fixed amount affect whether the relationship is proportional?"
28
- Second Hint: "Consider if doubling the number of texts would double the total bill. What impact does the monthly fee have on the proportionality?"
29
- If the Teacher Provides a Partially Correct Answer:
30
- "You’ve noticed the fixed monthly cost—great! Does this initial cost allow for a proportional relationship between texts and total cost?"
31
- If the Teacher Provides an Incorrect Answer:
32
- "It seems like there’s a mix-up. A proportional relationship would mean no fixed starting point. Since there’s a $22.50 monthly fee, does this relationship pass through the origin on a graph?"
33
- If still incorrect: "The correct answer is no, it’s not proportional. The fixed cost means the relationship doesn’t start at zero; it has a y-intercept, making it a non-proportional linear relationship."
34
- If the Teacher Provides a Correct Answer:
35
- "Well done! You identified that the fixed monthly cost means this relationship isn’t proportional, as it doesn’t start at zero. Let’s explore this graphically."
36
- Graphical Exploration:
37
- "Let’s graph this relationship. Use an online tool like Desmos Graphing Calculator to plot the equation y = 22.50 + 0.35x and y = 0.35x. What differences do you observe?"
38
- Follow-Up Prompt:
39
- "Why does one graph pass through the origin and the other does not? What does this tell you about the proportionality of each equation?"
40
- 3. Problem 3: Additive Relationship
41
- Initial Prompt:
42
- "Now, let’s look at Problem 3. Is the relationship between the miles Ali and Deniz run proportional? Why or why not?"
43
- Hints for Teachers Who Are Stuck:
44
- First Hint: "Think about whether the difference in miles remains constant as they run. Is this difference additive or multiplicative?"
45
- Second Hint: "If Ali always has a one-mile lead, does that suggest a proportional relationship or a consistent additive difference?"
46
- If the Teacher Provides a Partially Correct Answer:
47
- "You noticed the consistent lead Ali has—great observation! Does this constant difference imply a proportional or additive relationship?"
48
- If the Teacher Provides an Incorrect Answer:
49
- "It seems like there’s a misconception. Proportional relationships involve multiplication, while here, the difference is additive. Can you see why this isn’t proportional?"
50
- If still incorrect: "The correct answer is that this relationship is additive—not proportional. Ali is always one mile ahead of Deniz, regardless of how far they run."
51
- If the Teacher Provides a Correct Answer:
52
- "Excellent! You correctly identified that this relationship is additive, not proportional. Ali is always one mile ahead, which is a constant difference."
53
- Reflection and Discussion Prompts
54
- Key Characteristics:
55
- "What are the key characteristics that distinguish proportional relationships from non-proportional ones in these problems?"
56
- Graphical Analysis:
57
- "How can graphing these relationships help students understand whether they are proportional or not?"
58
- Pedagogical Insights:
59
- "Why is it important to expose students to both proportional and non-proportional relationships to develop a deeper understanding of ratios and proportions?"
60
- Problem Posing Activity
61
- Task Introduction
62
- "Now it’s your turn to create three non-proportional problems similar to the ones we just explored. Write each problem and explain why the relationship is not proportional."
63
- Prompts to Guide Problem Posing:
64
- "Think about situations where a fixed starting value, additive differences, or inverse relationships might appear. How can you illustrate these through real-world contexts?"
65
- AI Evaluation Prompts
66
- Evaluating Problem Feasibility:
67
- "Does your problem clearly demonstrate a non-proportional relationship? For example, does it involve a fixed cost, an additive difference, or an inverse relationship?"
68
- Feedback:
69
- If Feasible: "Great problem! It clearly illustrates a non-proportional relationship and encourages critical thinking."
70
- If Not Feasible: "Your problem might need revision. For example, ensure there’s a clear reason why the relationship isn’t proportional. How could you adjust it?"
71
- Summary Prompts
72
- Content Knowledge
73
- "We explored non-proportional relationships, distinguishing them from proportional ones by analyzing characteristics like inverse relationships, fixed costs, and additive differences."
74
- Creativity-Directed Practices
75
- "We applied mathematical generalization and extension, thinking creatively about how different equations represent proportional and non-proportional relationships."
76
- Pedagogical Content Knowledge
77
- "We discussed how to guide students in understanding proportionality by exploring non-examples, reinforcing their conceptual understanding through contrast."
78
 
 
 
 
 
 
 
 
 
79
 
 
 
 
 
 
 
 
 
 
80
  """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  MAIN_PROMPT = """
2
  Module 7: Understanding Non-Proportional Relationships
3
+
4
  Task Introduction
5
  "Welcome to this module on understanding non-proportional relationships! In this module, you’ll explore why certain relationships are not proportional, identify key characteristics, and connect these ideas to algebraic thinking. Let’s dive into some problems to analyze!"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
+ 🚀 **Problems:**
8
+ **Problem 1:** Ali drives at an average rate of 25 miles per hour for 3 hours to get to his house from work. How long will it take him if he is able to average 50 miles per hour?
9
+ **Problem 2:** Tugce’s cell phone service charges her $22.50 per month for phone service, plus $0.35 for each text she sends or receives. Last month, she sent or received 30 texts, and her bill was $33. How much will she pay if she sends or receives 60 texts this month?
10
+ **Problem 3:** Ali and Deniz both go for a run. When they run, both run at the same rate. Today, they started at different times. Ali had run 3 miles when Deniz had run 2 miles. How many miles had Deniz run when Ali had run 6 miles?
11
+
12
+ 💡 **Before receiving guidance, explain your reasoning for each problem.**
13
+ 🚀 **Let's start with Problem 1. What do you think—Is the relationship between speed and time proportional? Why or why not?**
14
+ """
15
 
16
+ def get_prompt_for_problem(problem_number):
17
+ if problem_number == "1":
18
+ return """
19
+ ### **Problem 1: Ali's Driving Speed**
20
+ Great! Let’s analyze the relationship between speed and time.
21
+ 📌 **Before we discuss, explain your reasoning:**
22
+ - How do you determine if a relationship is proportional?
23
+ - What happens to travel time when speed increases?
24
+ ✏️ **Describe your thought process first.** I will ask follow-up questions before offering hints or solutions.
25
  """
26
+
27
+ elif problem_number == "2":
28
+ return """
29
+ ### **Problem 2: Tugce's Cell Phone Bill**
30
+ Nice choice! Let’s break this down step by step.
31
+ 📌 **Before we discuss, explain your reasoning:**
32
+ - What is the fixed charge in the bill, and why does it matter?
33
+ - How does the cost per text affect proportionality?
34
+ ✏️ **Describe your thought process first.** I will ask follow-up questions before offering hints or solutions.
35
+ """
36
+
37
+ elif problem_number == "3":
38
+ return """
39
+ ### **Problem 3: Ali and Deniz's Running**
40
+ Good thinking! Let’s explore the relationship between their distances.
41
+ 📌 **Before we discuss, explain your reasoning:**
42
+ - If both run at the same rate, why does their distance differ?
43
+ - How can we determine the pattern in their distances over time?
44
+ ✏️ **Describe your thought process first.** I will ask follow-up questions before offering hints or solutions.
45
+ """
46
+
47
+ return "I didn’t understand your choice. Please select Problem 1, 2, or 3."
48
+
49
+ def get_feedback_for_problem(problem_number, teacher_response):
50
+ if problem_number == "1":
51
+ if "inverse" in teacher_response.lower():
52
+ return "Good observation! Since speed and time vary inversely, increasing speed decreases time. Can you verify if the ratio stays constant?"
53
+ return "Think about what happens to travel time when speed increases. Does the ratio between speed and time remain fixed?"
54
+
55
+ elif problem_number == "2":
56
+ if "fixed charge" in teacher_response.lower() and "$22.50" in teacher_response.lower():
57
+ return "Great insight! The fixed charge prevents proportionality. How does the per-text charge fit into this?"
58
+ return "What happens if the number of texts is zero? Does the total cost still change? Why?"
59
+
60
+ elif problem_number == "3":
61
+ if "constant difference" in teacher_response.lower():
62
+ return "Nice thinking! The key here is the additive nature of their distances. Can you determine the difference at another point in time?"
63
+ return "Since they run at the same speed but started at different times, how does that affect their distances?"
64
+
65
+ return "Interesting approach! Could you clarify your reasoning a bit more?"