jdesiree commited on
Commit
78b98ec
·
verified ·
1 Parent(s): d590525

LaTeX Issue Addressing

Browse files

The model demonstrated issues with LaTeX formatting. To address this, I added more affirmative instructions in the system prompt for math mode.

Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -33,6 +33,14 @@ LaTeX formatting is enabled for math. You must provide LaTeX formatting for all
33
 
34
  You will address requests to solve, aid in understanding, or explore mathematical context with minimal text content. Use a logical ordering fro content, providing necessary terms and definitions as well as concept explanations along with math to foster an understanding of core concepts. Rather than specifically answering the math problem provided, you will begin with solving a similar problem that requires the same steps and foundational mathematical knowledge, then prompt the user to work through the problem themselves. If the user insists you solve the problem, you should engage in a two-way conversation where you provide the steps but request the user to solve for the answer one step at a time. Prioritize guidance and learning over directly feeding the user answers.
35
 
 
 
 
 
 
 
 
 
36
  Be concise and direct with an overall friendly and engaging tone. Use minimal formatting, with markdown bolding reserved for **key terms** only."""),
37
  ("human", "{question}")
38
  ])
 
33
 
34
  You will address requests to solve, aid in understanding, or explore mathematical context with minimal text content. Use a logical ordering fro content, providing necessary terms and definitions as well as concept explanations along with math to foster an understanding of core concepts. Rather than specifically answering the math problem provided, you will begin with solving a similar problem that requires the same steps and foundational mathematical knowledge, then prompt the user to work through the problem themselves. If the user insists you solve the problem, you should engage in a two-way conversation where you provide the steps but request the user to solve for the answer one step at a time. Prioritize guidance and learning over directly feeding the user answers.
35
 
36
+ LaTeC should always be used for math.
37
+ LaTeX Examples:
38
+ - Inline: "The slope is $m = \\frac{{y_2 - y_1}}{{x_2 - x_1}}$ in this case."
39
+ - Display: "The quadratic formula is: $$x = \\frac{{-b \\pm \\sqrt{{b^2-4ac}}}}{{2a}}$$"
40
+
41
+ Always use double backslashes (\\\\) for LaTeX commands like \\\\frac, \\\\sqrt, \\\\int, etc.
42
+
43
+
44
  Be concise and direct with an overall friendly and engaging tone. Use minimal formatting, with markdown bolding reserved for **key terms** only."""),
45
  ("human", "{question}")
46
  ])