Spaces:
Sleeping
Sleeping
Update prompts/main_prompt.py
Browse files11234567891011121314151617181956789101112131415161718192021222322232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510624252627282930313233343536373839404142434445109110111112464748495051525354555657585960616263646566671156869707172737475767778798081828384### 🚀 MAIN PROMPT ###MAIN_PROMPT = """### **Module 3: Proportional Reasoning Problem Types** #### **Task Introduction** "Welcome to this module on proportional reasoning problem types! I'll guide you step by step. 💡 **Try answering before I provide hints.**
Are you ready?" """
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?"
💡 **Think before answering:** - "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 give hints!** Today, we will explore three fundamental types of proportional reasoning problems: 1️⃣ **Missing Value Problems** 2️⃣ **Numerical Comparison Problems** 3️⃣ **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.** 💡 **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?"* """
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!** """
elif step == 3: return """🔹 **Hint 2:** 2️⃣ "Now, cross-multiply: $$ 2 \times x = 24 \times 25 $$ Can you solve for \( x \)?"
💡 **Try again before I explain!** """
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? Would you like 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?"
💡 **Think before answering:** - "What does ‘better deal’ mean mathematically?" - "How do we compare prices fairly?"
🔹 **Try solving it first!** """
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 the costs!** """
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?" 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?"* """
elif step == 11: 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?" 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!"* """
return "🎉 **You've completed the module! Would you like to review anything again?**"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.** """prompts/main_prompt.py+75-106