Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +59 -53
prompts/main_prompt.py
CHANGED
|
@@ -1,64 +1,70 @@
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
-
|
|
|
|
|
|
|
| 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️⃣
|
| 6 |
-
2️⃣
|
| 7 |
-
3️⃣
|
| 8 |
-
🚀
|
| 9 |
-
|
| 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 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
|
|
|
| 24 |
"""
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
| 34 |
"""
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
| 44 |
"""
|
| 45 |
-
|
| 46 |
-
|
| 47 |
|
| 48 |
def get_feedback_for_method(method, teacher_response):
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
| 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 |
+
|