alibicer commited on
Commit
a4d9997
ยท
verified ยท
1 Parent(s): 77fc725

Update prompts/main_prompt.py

Browse files
Files changed (1) hide show
  1. prompts/main_prompt.py +21 -20
prompts/main_prompt.py CHANGED
@@ -1,31 +1,31 @@
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
- ๐Ÿš€ **Explain your reasoning before I provide any guidance.**
17
-
18
- (Type **"Bar Model"**, **"Double Number Line"**, or **"Equation"** to continue.)
19
  """
20
 
21
- # โœ… Function to Handle Teacherโ€™s Method Selection
22
  def get_prompt_for_method(method):
23
  if method.lower() == "bar model":
24
  return """
25
  ### **Bar Model Approach**
26
- Great choice! The Bar Model is a helpful way to **visualize** proportions and percentages.
27
 
28
- ๐Ÿ“Œ **Before I provide guidance, please explain how you would apply the Bar Model to solve this problem.**
29
  - How would you represent the total investment in the bar model?
30
  - How would you use it to find the unknown amount?
31
 
@@ -37,7 +37,7 @@ Great choice! The Bar Model is a helpful way to **visualize** proportions and pe
37
  ### **Double Number Line Approach**
38
  Great choice! The Double Number Line helps align percentage values with real-world quantities.
39
 
40
- ๐Ÿ“Œ **Before I provide guidance, please explain how you would apply the Double Number Line to solve this problem.**
41
  - What values would you place on each line?
42
  - How would you determine the total investment using this method?
43
 
@@ -49,7 +49,7 @@ Great choice! The Double Number Line helps align percentage values with real-wor
49
  ### **Equation-Based Approach**
50
  Great choice! Setting up an equation is a powerful way to solve proportional problems.
51
 
52
- ๐Ÿ“Œ **Before I provide guidance, please explain how you would write an equation to represent this problem.**
53
  - What proportion or equation would represent the situation?
54
  - How would you solve for the total investment?
55
 
@@ -58,10 +58,11 @@ Great choice! Setting up an equation is a powerful way to solve proportional pro
58
 
59
  return "I didnโ€™t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
60
 
61
- # โœ… Function to Ensure Teachers Explain Before AI Provides Guidance
 
62
  def get_feedback_for_method(method, teacher_response):
63
  if not teacher_response.strip():
64
- return "๐Ÿ›‘ **Please explain your thought process first before receiving guidance!** Whatโ€™s your plan for solving the problem?"
65
 
66
  if method.lower() == "bar model":
67
  if "divide" in teacher_response.lower() and "60%" in teacher_response.lower():
@@ -78,4 +79,4 @@ def get_feedback_for_method(method, teacher_response):
78
  return "โœ… You're on the right track! Now, how can you solve for x in your equation?"
79
  return "๐Ÿ”น Try writing the proportion as (60/100) = (1500/x). What steps would you take to solve for x?"
80
 
81
- return "Interesting approach! Could you clarify your reasoning a bit more?"
 
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
 
9
  ๐Ÿš€ **Hereโ€™s the problem:**
10
+ 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
 
12
+ ๐Ÿ“Œ **Steps to follow:**
13
+ โœ… **Step 1:** Choose a method.
14
+ โœ… **Step 2:** **Explain your reasoning before receiving guidance.**
15
+ โœ… **Step 3:** AI will provide **feedback on your explanation** before offering hints or solutions.
16
 
17
+ ๐Ÿš€ **Which method would you like to use first?**
18
+ (Type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed.)
 
 
19
  """
20
 
21
+ # Function to handle method selection and ensure AI first asks for teacher input
22
  def get_prompt_for_method(method):
23
  if method.lower() == "bar model":
24
  return """
25
  ### **Bar Model Approach**
26
+ Great choice! The Bar Model is a useful way to visualize proportions and percentages.
27
 
28
+ ๐Ÿ“Œ **Now, please apply the Bar Model and explain your approach.**
29
  - How would you represent the total investment in the bar model?
30
  - How would you use it to find the unknown amount?
31
 
 
37
  ### **Double Number Line Approach**
38
  Great choice! The Double Number Line helps align percentage values with real-world quantities.
39
 
40
+ ๐Ÿ“Œ **Now, please apply the Double Number Line and explain your approach.**
41
  - What values would you place on each line?
42
  - How would you determine the total investment using this method?
43
 
 
49
  ### **Equation-Based Approach**
50
  Great choice! Setting up an equation is a powerful way to solve proportional problems.
51
 
52
+ ๐Ÿ“Œ **Now, please apply the Equation approach and explain your reasoning.**
53
  - What proportion or equation would represent the situation?
54
  - How would you solve for the total investment?
55
 
 
58
 
59
  return "I didnโ€™t understand your choice. Please type 'Bar Model,' 'Double Number Line,' or 'Equation' to proceed."
60
 
61
+
62
+ # Function to ensure AI first asks for an explanation before offering guidance
63
  def get_feedback_for_method(method, teacher_response):
64
  if not teacher_response.strip():
65
+ return "๐Ÿ›‘ **Before receiving guidance, please explain your thought process.** How are you approaching this problem using the selected method?"
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?"