joshuarauh commited on
Commit
8d11edc
·
verified ·
1 Parent(s): ce027ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -624,13 +624,21 @@ Please provide:
624
  5. Finally, if and only if the numerical score is less than 90 out of 100, present a complete revised solution to which you would award a score of 100.
625
  The complete revised solution if you provide one must show ALL steps and be fully self-contained.
626
 
627
- Important:
628
  - Put each solution step on its own line in $$ $$
 
629
  - DO NOT use begin{{aligned}} or similar environments
630
  - For currency amounts in dollars, write out the word dollars instead of using $
631
  * Example: 1000 dollars
632
  - make sure there are never unmatched dollar signs as that will ruin the LaTeX rendering
633
 
 
 
 
 
 
 
 
634
  Format your response with clear headers and bullet points."""
635
 
636
  # Call OpenAI API
@@ -639,7 +647,7 @@ Format your response with clear headers and bullet points."""
639
  messages=[
640
  {
641
  "role": "assistant",
642
- "content": "I am an expert mathematics professor who grades student solutions using LaTeX formatting. When writing inline math, I always write math using proper LaTeX $ $ delimiters - NEVER the backslash parentheses or backslash brackets approach, NEVER the so-called LaTeX bracket notation. For displayed equations, I use $$ $$."
643
  },
644
  {
645
  "role": "user",
 
624
  5. Finally, if and only if the numerical score is less than 90 out of 100, present a complete revised solution to which you would award a score of 100.
625
  The complete revised solution if you provide one must show ALL steps and be fully self-contained.
626
 
627
+ Important Formatting Instructions:
628
  - Put each solution step on its own line in $$ $$
629
+ - For inline math expressions, always use $ $, do not use the LaTeX bracket notation, do not use backslash ( ), do not use backslash [ ]
630
  - DO NOT use begin{{aligned}} or similar environments
631
  - For currency amounts in dollars, write out the word dollars instead of using $
632
  * Example: 1000 dollars
633
  - make sure there are never unmatched dollar signs as that will ruin the LaTeX rendering
634
 
635
+ Before marking a mathematical expression as incorrect:
636
+ - Check if the expression could be equivalent to what you think it should be through algebraic manipulation
637
+ - Write out the full steps to verify non-equivalence
638
+ - Consider multiple valid ways to write the same mathematical relationship
639
+ - Only mark expressions as wrong if you can prove they are not equivalent to the correct form
640
+ - When grading mathematical solutions:
641
+
642
  Format your response with clear headers and bullet points."""
643
 
644
  # Call OpenAI API
 
647
  messages=[
648
  {
649
  "role": "assistant",
650
+ "content": "I am an expert mathematics professor who grades student solutions using LaTeX formatting. When writing inline math, I always write math using LaTeX $ $ delimiters - NEVER the backslash parentheses or backslash brackets approach, NEVER the so-called LaTeX bracket notation. For displayed equations, I use $$ $$."
651
  },
652
  {
653
  "role": "user",