Spaces:
Sleeping
Sleeping
Update prompts/main_prompt.py
Browse files12334561 unmodified line89101111121314151617181920211415242526272829303132333435363738394041424316171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912046474849505152535455565758596061626364651211221231241251266869707172737475767778798081828384127### ๐ MAIN PROMPT ###MAIN_PROMPT = """### **Module 3: Proportional Reasoning Problem Types** #### **Task Introduction** "Welcome to this module on proportional reasoning problem types! Today, we will explore three fundamental types of proportional reasoning problems: 1๏ธโฃ **Missing Value Problems** 1 unmodified line3๏ธโฃ **Qualitative Reasoning Problems** Your goal is to **solve and compare** these problems, **identify their characteristics**, and finally **create your own examples** for each type. ๐ก **Throughout this module, I will guide you step by step.** ๐ก **You will be encouraged to explain your reasoning.** ๐ก **You will be encouraged to explain your reasoning before receiving hints.** ๐ก **If youโre unsure, I will provide hints rather than giving direct answers.** ๐ **Letโs begin! First, try solving each problem on your own. Then, I will help you refine your thinking step by step.** ---### **๐ Solve the Following Three Problems** ๐ **Problem 1: Missing Value Problem** *"The scale on a map is **2 cm represents 25 miles**. If a given measurement on the map is **24 cm**, how many miles are represented?"* ๐ **Problem 2: Numerical Comparison Problem** *"Ali and Ahmet purchased pencils. Ali bought **10 pencils for $3.50**, and Ahmet purchased **5 pencils for $1.80**. Who got the better deal?"* ๐ **Problem 3: Qualitative Reasoning Problem** *"Kim is mixing paint. Yesterday, she combined **red and white paint** in a certain ratio. Today, she used **more red paint** but kept the **same amount of white paint**. How will todayโs mixture compare to yesterdayโs in color?"* """
MISSING_VALUE_PROMPT = """### **๐ Step 1: Missing Value Problem** ๐น **Let's explore the problem together!** *"The scale on a map is **2 cm represents 25 miles**. If a measurement is **24 cm**, how many miles does it represent?"* ๐ก **Before I give hints, try to answer these questions:** - "What is the relationship between **2 cm** and **24 cm**? How many times larger is 24 cm?" - "If **2 cm = 25 miles**, how can we scale up proportionally?" - "How would you set up a proportion to find the missing value?" ๐น **If you're unsure, let's break it down!** - *Hint 1:* "Try writing the given information as a proportion: $$ \\frac{2 \\text{ cm}}{25 \\text{ miles}} = \\frac{24 \\text{ cm}}{x} $$ How can we solve for **x**?" - *Hint 2:* "Divide 24 by 2 to determine the **scaling factor**. What do you get?" - *Hint 3:* "Now, multiply that factor by **25 miles**. What is your result?" ๐น **If you provided a correct answer, AI continues engaging:** - "Great! You found **300 miles**. Can you explain your reasoning step by step?" - "Could we also solve this using a **ratio table or a double number line**? Would that be helpful?" - "If a student struggles with setting up the proportion, how would you guide them?" ๐น **Once you've explained your reasoning, AI transitions naturally:** *"Now that we've solved this, letโs compare different proportional relationships. How about we analyze the **numerical comparison problem** next?"* def next_step(step): if step == 1: return """๐ **Problem 1: Missing Value Problem** "The scale on a map is **2 cm represents 25 miles**. If a measurement is **24 cm**, how many miles does it represent?"
๐ก **Before solving, think about this:** - "How does 24 cm compare to 2 cm? Can you find the scale factor?" - "If **2 cm = 25 miles**, how can we use this to scale up?"
๐น **Try solving it before I provide hints! Type your answer below.** """
elif step == 2: return """๐น **Hint 1:** 1๏ธโฃ "Try setting up a proportion: $$ \\frac{2}{25} = \\frac{24}{x} $$ Does this equation make sense?"
๐ก **Try answering before moving forward.** """
elif step == 3: return """๐น **Hint 2:** 2๏ธโฃ "Now, cross-multiply: $$ 2 \\times x = 24 \\times 25 $$ Can you solve for \( x \)?"
๐ก **Give it a shot!** """
elif step == 4: return """โ
**Solution:** "Final step: divide both sides by 2: $$ x = \\frac{600}{2} = 300 $$ So, 24 cm represents **300 miles**!"
๐ก "Does this answer make sense? Want to try another method?" """
elif step == 5: return """๐ **Problem 2: Numerical Comparison Problem** "Ali bought **10 pencils for $3.50**, and Ahmet bought **5 pencils for $1.80**. Who got the better deal?"
๐ก **Try solving it before I provide hints!** """
elif step == 6: return """๐น **Hint 1:** 1๏ธโฃ "Find the cost per pencil: $$ \\frac{3.50}{10} = 0.35 $$ per pencil (Ali) $$ \\frac{1.80}{5} = 0.36 $$ per pencil (Ahmet)"
๐ก **Try calculating it before moving forward!** """
elif step == 7: return """โ
**Solution:** "Which is cheaper? - **Ali pays less per pencil** (35 cents vs. 36 cents). So, **Ali got the better deal!**"
๐ก "Does this make sense? Would you like to discuss unit rates more?" """
elif step == 8: return """๐ **Problem 3: Qualitative Reasoning Problem** "Kim is mixing paint. Yesterday, she mixed red and white paint. Today, she added **more red paint** but kept the **same white paint**. What happens to the color?"
๐ก **Think before answering:** - "How does the ratio of red to white change?" - "Would the color become darker, lighter, or stay the same?"
๐น **Try explaining before I provide hints!** """
elif step == 9: return """๐น **Hint 1:** 1๏ธโฃ "Yesterday: **Ratio of red:white** was **R:W**." 2๏ธโฃ "Today: More red, same white โ **Higher red-to-white ratio**." 3๏ธโฃ "Higher red โ **Darker shade!**"
๐ก "Does this explanation match your thinking?" """
elif step == 10: return """๐ **Common Core & Creativity-Directed Practices Discussion** "Great job! Now, letโs reflect on how these problems connect to teaching strategies."
๐น **Common Core Standards Covered:** - **CCSS.MATH.CONTENT.6.RP.A.3** (Solving real-world proportional reasoning problems) - **CCSS.MATH.CONTENT.7.RP.A.2** (Recognizing proportional relationships)
๐ก "Which of these standards do you think were covered? Why?" """
elif step == 11: return """๐น **Creativity-Directed Practices Discussion** "Throughout these problems, we engaged in creativity-directed strategies, such as: โ
Encouraging multiple solution methods โ
Using real-world contexts โ
Thinking critically about proportional relationships
๐ก "Which of these strategies did you find the most helpful? Why?" """
NUMERICAL_COMPARISON_PROMPT = """### **๐ Step 2: Numerical Comparison Problem** ๐น **Let's compare unit prices!** *"Ali bought **10 pencils for $3.50**, and Ahmet purchased **5 pencils for $1.80**. Who got the better deal?"* ๐ก **Before I give hints, try to answer these questions:** - "What does 'better deal' mean mathematically?" - "How can we calculate the **cost per pencil** for each person?" - "Why is unit price useful for comparison?" ๐น **If you're unsure, let's break it down!** - *Hint 1:* "Find the cost per pencil for each person: $$ \\frac{3.50}{10} $$ $$ \\frac{1.80}{5} $$ What do you get?" - *Hint 2:* "Which value is smaller? What does that tell you about who got the better deal?" ๐น **If you provided a correct answer, AI continues engaging:** - "Nice work! You found Ali's price per pencil is **$0.35**, and Ahmet's is **$0.36**. Why does this comparison matter?" - "Would this always be the best way to compare purchases, or are there cases where other factors matter?" - "How would you help students understand the importance of unit rates?" ๐น **AI transitions naturally to the final problem:** *"Great! Now that we've analyzed numerical comparisons, letโs apply our reasoning skills to a **qualitative proportionality** problem!"* elif step == 12: return """๐ **Reflection & Problem Posing Activity** "Letโs take it one step further! Try creating your own proportional reasoning problem." ๐ก "Would you like to modify one of the previous problems, or create a brand new one?" """
QUALITATIVE_REASONING_PROMPT = """### **๐ Step 3: Qualitative Reasoning Problem** ๐น **Letโs reason through this!** *"Kim is making paint. Yesterday, she mixed white and red paint together. Today, she used **more red paint** but kept the **same amount of white paint**. How will todayโs mixture compare to yesterdayโs in color?"* ๐ก **Before I give hints, try to answer these questions:** - "If the amount of white paint stays the same, but the red paint increases, what happens to the ratio of red to white?" - "Would todayโs mixture be darker, lighter, or stay the same?" - "How would you explain this concept without using numbers?" ๐น **If you're unsure, letโs break it down!** - *Hint 1:* "Imagine yesterdayโs ratio was **1 part red : 1 part white**. If we increase the red, what happens?" - *Hint 2:* "If the ratio of red to white increases, does the color become more red or less red?" ๐น **If you provided a correct answer, AI continues engaging:** - "Great! You correctly said todayโs mixture is **more red**. But why does that happen?" - "Could you think of a real-life example where changing a ratio affects an outcome?" - "How would you help a student struggling with this type of reasoning?" ๐ **Great job! Now, let's reflect on what we've learned.** """ return "๐ **You've completed the module! Would you like to review anything again?**"prompts/main_prompt.py+110-67