alibicer commited on
Commit
3c3240c
·
verified ·
1 Parent(s): 495da95

Update prompts/main_prompt.py

Browse files
Files changed (1) hide show
  1. prompts/main_prompt.py +55 -59
prompts/main_prompt.py CHANGED
@@ -1,70 +1,66 @@
1
  MAIN_PROMPT = """
2
-
3
- Module 4: Proportional Thinking with Percentages
4
-
5
  "Welcome to this module on proportional reasoning with percentages!
6
  Your goal is to solve a real-world problem using different representations:
7
- 1️⃣ Bar Model
8
- 2️⃣ Double Number Line
9
- 3️⃣ Equation-Based Approach
10
- 🚀 Here’s the problem:Orrin and Damen decided to invest money in a local ice cream shop. Orrin invests $1,500, which is 60% of their total investment. How much do Orrin and Damen invest together?
11
- 💡 Before receiving guidance, choose a method and explain your reasoning.🚀 Which method would you like to use first?(Type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed.)
 
 
 
12
  """
13
 
14
  def get_prompt_for_method(method):
15
- if method.lower() == "bar model":
16
- return """
17
-
18
- Bar Model Approach
19
-
20
- Great choice! The Bar Model is a useful way to visualize proportions and percentages.📌 Now, describe how you would apply the Bar Model to solve this problem.
21
-
22
- How would you represent the total investment in the bar model?
23
-
24
- How would you use it to find the unknown amount?✏️ Go ahead and explain your reasoning first. I will ask follow-up questions before offering any hints or solutions.
25
  """
26
-
27
- elif method.lower() == "double number line":
28
- return """
29
-
30
- Double Number Line Approach
31
-
32
- Great choice! The Double Number Line helps align percentage values with real-world quantities.📌 Now, describe how you would use a Double Number Line to solve this problem.
33
-
34
- How would you structure the number lines?
35
-
36
- How would you align percentages with dollar amounts?✏️ Explain your approach first. I will ask follow-up questions before providing hints or solutions.
37
  """
38
-
39
- elif method.lower() == "equation":
40
- return """
41
-
42
- Equation-Based Approach
43
-
44
- Great choice! Setting up an equation is a powerful way to represent proportional relationships.📌 Now, describe how you would set up and solve an equation for this problem.
45
-
46
- How would you write the equation?
47
-
48
- What steps would you take to solve for the unknown value?✏️ Explain your reasoning first. I will ask follow-up questions before providing hints or solutions.
49
  """
50
-
51
- return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
 
52
 
53
  def get_feedback_for_method(method, teacher_response):
54
- if method.lower() == "bar model":
55
- if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
56
- return "Great start! You recognized that the bar should be divided into parts representing percentages. Now, can you calculate how much each part represents?"
57
- return "It looks like you might need some help. Remember, the bar represents the total investment. Try dividing it into 10 equal parts, with 6 parts representing Orrin’s 60%. How much does one part represent?"
58
-
59
- elif method.lower() == "double number line":
60
- if "label" in teacher_response.lower() and "percentages" in teacher_response.lower():
61
- return "Nice work! You’ve set up the number line correctly. Can you now align the percentage values with the corresponding dollar amounts?"
62
- return "No worries! Try labeling your number line with 0%, 60%, and 100% on one side and the corresponding dollar amounts on the other. How do the values align?"
63
-
64
- elif method.lower() == "equation":
65
- if "60/100" in teacher_response.lower() and "$1500/x" in teacher_response.lower():
66
- return "You're on the right track! Now, how can you solve for x in your equation?"
67
- return "Try writing the proportion as (60/100) = (1500/x). What steps would you take to solve for x?"
68
-
69
- return "Interesting approach! Could you clarify your reasoning a bit more?"
70
-
 
1
  MAIN_PROMPT = """
2
+ ### **Module 4: Proportional Thinking with Percentages**
 
 
3
  "Welcome to this module on proportional reasoning with percentages!
4
  Your goal is to solve a real-world problem using different representations:
5
+ 1️⃣ **Bar Model**
6
+ 2️⃣ **Double Number Line**
7
+ 3️⃣ **Equation-Based Approach**
8
+ 🚀 **Here’s the problem:**
9
+ Orrin and Damen decided to invest money in a local ice cream shop. Orrin invests $1,500, which is 60% of their total investment. How much do Orrin and Damen invest together?
10
+ 💡 **Before receiving guidance, choose a method and explain your reasoning.**
11
+ 🚀 **Which method would you like to use first?**
12
+ (Type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed.)
13
  """
14
 
15
  def get_prompt_for_method(method):
16
+ if method.lower() == "bar model":
17
+ return """
18
+ ### **Bar Model Approach**
19
+ Great choice! The Bar Model is a useful way to visualize proportions and percentages.
20
+ 📌 **Now, describe how you would apply the Bar Model to solve this problem.**
21
+ - How would you represent the total investment in the bar model?
22
+ - How would you use it to find the unknown amount?
23
+ ✏️ **Go ahead and explain your reasoning first.** I will ask follow-up questions before offering any hints or solutions.
 
 
24
  """
25
+
26
+ elif method.lower() == "double number line":
27
+ return """
28
+ ### **Double Number Line Approach**
29
+ Great choice! The Double Number Line helps align percentage values with real-world quantities.
30
+ 📌 **Now, describe how you would use a Double Number Line to solve this problem.**
31
+ - How would you structure the number lines?
32
+ - How would you align percentages with dollar amounts?
33
+ ✏️ **Explain your approach first.** I will ask follow-up questions before providing hints or solutions.
 
 
34
  """
35
+
36
+ elif method.lower() == "equation":
37
+ return """
38
+ ### **Equation-Based Approach**
39
+ Great choice! Setting up an equation is a powerful way to represent proportional relationships.
40
+ 📌 **Now, describe how you would set up and solve an equation for this problem.**
41
+ - How would you write the equation?
42
+ - What steps would you take to solve for the unknown value?
43
+ ✏️ **Explain your reasoning first.** I will ask follow-up questions before providing hints or solutions.
 
 
44
  """
45
+
46
+ else:
47
+ return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
48
 
49
  def get_feedback_for_method(method, teacher_response):
50
+ if method.lower() == "bar model":
51
+ if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
52
+ return "Great start! You recognized that the bar should be divided into parts representing percentages. Now, can you calculate how much each part represents?"
53
+ return "It looks like you might need some help. Remember, the bar represents the total investment. Try dividing it into 10 equal parts, with 6 parts representing Orrin’s 60%. How much does one part represent?"
54
+
55
+ elif method.lower() == "double number line":
56
+ if "label" in teacher_response.lower() and "percentages" in teacher_response.lower():
57
+ return "Nice work! You’ve set up the number line correctly. Can you now align the percentage values with the corresponding dollar amounts?"
58
+ return "No worries! Try labeling your number line with 0%, 60%, and 100% on one side and the corresponding dollar amounts on the other. How do the values align?"
59
+
60
+ elif method.lower() == "equation":
61
+ if "60/100" in teacher_response.lower() and "$1500/x" in teacher_response.lower():
62
+ return "You're on the right track! Now, how can you solve for x in your equation?"
63
+ return "Try writing the proportion as (60/100) = (1500/x). What steps would you take to solve for x?"
64
+
65
+ else:
66
+ return "Interesting approach! Could you clarify your reasoning a bit more?"