joshuarauh commited on
Commit
acfcd3f
·
verified ·
1 Parent(s): 4a59421

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -246,7 +246,11 @@ STRICT REQUIREMENTS:
246
  - DO NOT use \\begin{{aligned}} or similar environments
247
  6. Include a detailed solution with thorough explanations of advanced concepts used
248
  7. Maintain clear, precise formatting
249
- 8. At the end of the LaTeX solution output, print SymPy code that you would use to solve or verify the main equations in the question. """
 
 
 
 
250
  else:
251
  system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
252
  STRICT REQUIREMENTS:
@@ -267,8 +271,12 @@ STRICT REQUIREMENTS:
267
  - DO NOT use \\begin{{aligned}} or similar environments
268
  5. Include a detailed solution
269
  6. Maintain clear formatting
270
- 7. At the end of the LaTeX solution output, print SymPy code that you would use to solve or verify the main equations in the question."""
271
-
 
 
 
 
272
  logger.debug("Sending request to Anthropic API")
273
  message = anthropic.messages.create(
274
  model=difficulty_params['model'],
 
246
  - DO NOT use \\begin{{aligned}} or similar environments
247
  6. Include a detailed solution with thorough explanations of advanced concepts used
248
  7. Maintain clear, precise formatting
249
+ 8. At the end of the LaTeX solution output, print SymPy code that you would use to solve or verify the main equations in the question.
250
+ 9. When writing SymPy code to verify solutions:
251
+ - Include print statements for ALL calculations and results
252
+ - Print intermediate steps and final answers
253
+ - Print variable values after they are computed"""
254
  else:
255
  system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
256
  STRICT REQUIREMENTS:
 
271
  - DO NOT use \\begin{{aligned}} or similar environments
272
  5. Include a detailed solution
273
  6. Maintain clear formatting
274
+ 7. At the end of the LaTeX solution output, print SymPy code that you would use to solve or verify the main equations in the question.
275
+ 8. When writing SymPy code to verify solutions:
276
+ - Include print statements for ALL calculations and results
277
+ - Print intermediate steps and final answers
278
+ - Print variable values after they are computed"""
279
+
280
  logger.debug("Sending request to Anthropic API")
281
  message = anthropic.messages.create(
282
  model=difficulty_params['model'],