Update prompts/main_prompt.py
Browse files- prompts/main_prompt.py +37 -26
prompts/main_prompt.py
CHANGED
|
@@ -1,57 +1,68 @@
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
-
|
| 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 |
|
| 9 |
🚀 **Here’s the problem:**
|
| 10 |
-
Orrin and Damen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
💡 **Before receiving guidance, choose a method AND explain your reasoning.**
|
| 13 |
🚀 **Which method would you like to use first?**
|
| 14 |
-
(Type
|
| 15 |
"""
|
| 16 |
|
| 17 |
-
# Function to
|
| 18 |
def get_prompt_for_method(method):
|
| 19 |
if method.lower() == "bar model":
|
| 20 |
return """
|
| 21 |
### **Bar Model Approach**
|
| 22 |
-
Great choice! The Bar Model is a
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
| 27 |
"""
|
| 28 |
|
| 29 |
elif method.lower() == "double number line":
|
| 30 |
return """
|
| 31 |
### **Double Number Line Approach**
|
| 32 |
Great choice! The Double Number Line helps align percentage values with real-world quantities.
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
"""
|
| 38 |
|
| 39 |
elif method.lower() == "equation":
|
| 40 |
return """
|
| 41 |
### **Equation-Based Approach**
|
| 42 |
-
Great choice! Setting up an equation is a powerful way to
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
|
|
|
| 47 |
"""
|
| 48 |
|
| 49 |
return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
|
| 50 |
|
| 51 |
-
# Function to
|
| 52 |
def get_feedback_for_method(method, teacher_response):
|
| 53 |
if not teacher_response.strip():
|
| 54 |
-
return "🛑 **Please explain your thought process first before receiving guidance!**"
|
| 55 |
|
| 56 |
if method.lower() == "bar model":
|
| 57 |
if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
|
|
@@ -68,4 +79,4 @@ def get_feedback_for_method(method, teacher_response):
|
|
| 68 |
return "✅ You're on the right track! Now, how can you solve for x in your equation?"
|
| 69 |
return "🔹 Try writing the proportion as (60/100) = (1500/x). What steps would you take to solve for x?"
|
| 70 |
|
| 71 |
-
return "Interesting approach! Could you clarify your reasoning a bit more?"
|
|
|
|
| 1 |
MAIN_PROMPT = """
|
| 2 |
### **Module 4: Proportional Thinking with Percentages**
|
| 3 |
+
You will explore a real-world problem using different representations.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
🚀 **Here’s the problem:**
|
| 6 |
+
Orrin and Damen invested in an ice cream shop.
|
| 7 |
+
Orrin contributed **$1,500**, which is **60%** of the total investment.
|
| 8 |
+
💡 **How much do they invest together?**
|
| 9 |
+
|
| 10 |
+
You can solve this using different methods:
|
| 11 |
+
- **Bar Model**
|
| 12 |
+
- **Double Number Line**
|
| 13 |
+
- **Equation-Based Approach**
|
| 14 |
+
|
| 15 |
+
**Pick the method that you feel most comfortable with and tell me how you would apply it.**
|
| 16 |
+
Once you explain your approach, I’ll provide feedback and guidance if needed.
|
| 17 |
|
|
|
|
| 18 |
🚀 **Which method would you like to use first?**
|
| 19 |
+
(Type **"Bar Model"**, **"Double Number Line"**, or **"Equation"** to continue.)
|
| 20 |
"""
|
| 21 |
|
| 22 |
+
# ✅ Function to Handle Teacher’s Method Selection
|
| 23 |
def get_prompt_for_method(method):
|
| 24 |
if method.lower() == "bar model":
|
| 25 |
return """
|
| 26 |
### **Bar Model Approach**
|
| 27 |
+
Great choice! The Bar Model is a helpful way to **visualize** proportions and percentages.
|
| 28 |
+
|
| 29 |
+
📌 **How would you apply the Bar Model to this problem?**
|
| 30 |
+
- How would you represent the total investment in the bar model?
|
| 31 |
+
- How would you use it to find the unknown amount?
|
| 32 |
+
|
| 33 |
+
✏️ **Go ahead and describe your approach.** I’d love to hear your reasoning first!
|
| 34 |
"""
|
| 35 |
|
| 36 |
elif method.lower() == "double number line":
|
| 37 |
return """
|
| 38 |
### **Double Number Line Approach**
|
| 39 |
Great choice! The Double Number Line helps align percentage values with real-world quantities.
|
| 40 |
+
|
| 41 |
+
📌 **How would you set up a Double Number Line for this problem?**
|
| 42 |
+
- What values would you place on each line?
|
| 43 |
+
- How would you determine the total investment using this method?
|
| 44 |
+
|
| 45 |
+
✏️ **Explain how you would use this approach!** I’d love to hear your reasoning first.
|
| 46 |
"""
|
| 47 |
|
| 48 |
elif method.lower() == "equation":
|
| 49 |
return """
|
| 50 |
### **Equation-Based Approach**
|
| 51 |
+
Great choice! Setting up an equation is a powerful way to solve proportional problems.
|
| 52 |
+
|
| 53 |
+
📌 **How would you write an equation for this problem?**
|
| 54 |
+
- What proportion or equation would represent the situation?
|
| 55 |
+
- How would you solve for the total investment?
|
| 56 |
+
|
| 57 |
+
✏️ **Explain how you would approach it!** I’d love to hear your reasoning first.
|
| 58 |
"""
|
| 59 |
|
| 60 |
return "I didn’t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
|
| 61 |
|
| 62 |
+
# ✅ Function to Ensure Teachers Explain Before AI Provides Guidance
|
| 63 |
def get_feedback_for_method(method, teacher_response):
|
| 64 |
if not teacher_response.strip():
|
| 65 |
+
return "🛑 **Please explain your thought process first before receiving guidance!** What’s your plan for solving the problem?"
|
| 66 |
|
| 67 |
if method.lower() == "bar model":
|
| 68 |
if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
|
|
|
|
| 79 |
return "✅ You're on the right track! Now, how can you solve for x in your equation?"
|
| 80 |
return "🔹 Try writing the proportion as (60/100) = (1500/x). What steps would you take to solve for x?"
|
| 81 |
|
| 82 |
+
return "Interesting approach! Could you clarify your reasoning a bit more?"
|