joshuarauh commited on
Commit
4a92fe8
·
verified ·
1 Parent(s): 06bc75d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -15
app.py CHANGED
@@ -330,11 +330,10 @@ def get_difficulty_parameters(difficulty_level):
330
  """Return specific parameters and constraints based on difficulty level"""
331
  parameters = {
332
  1: { # Very Easy
333
- "description": "very easy, suitable for beginners",
334
  "constraints": [
335
  "Use only basic concepts and straightforward calculations",
336
  "Break complex problems into smaller, guided steps",
337
- "Provide hints within the question when needed",
338
  "Use simple numbers and avoid complex algebraic expressions"
339
  ],
340
  "example_style": "Similar to standard homework problems",
@@ -344,7 +343,6 @@ def get_difficulty_parameters(difficulty_level):
344
  "description": "easy, but requiring some thought",
345
  "constraints": [
346
  "Use basic concepts with minor complications",
347
- "Include two-step problems",
348
  "Minimal guidance provided",
349
  "Use moderately complex numbers or expressions"
350
  ],
@@ -359,7 +357,7 @@ def get_difficulty_parameters(difficulty_level):
359
  "Require multi-step reasoning",
360
  "Use moderate algebraic complexity"
361
  ],
362
- "example_style": "Similar to midterm exam questions",
363
  "model": "claude-3-5-sonnet-20241022"
364
  },
365
  4: { # Difficult
@@ -367,10 +365,9 @@ def get_difficulty_parameters(difficulty_level):
367
  "constraints": [
368
  "Combine multiple concepts creatively",
369
  "Require insight and deep understanding",
370
- "Include non-standard approaches",
371
  "Use sophisticated mathematical reasoning"
372
  ],
373
- "example_style": "Similar to final exam questions",
374
  "model": "claude-3-5-sonnet-20241022"
375
  },
376
  5: { # Very Difficult
@@ -442,14 +439,14 @@ The application question MUST:
442
  2. Translate the practical problem into mathematical terms
443
  3. Solve using appropriate mathematical techniques
444
  4. Interpret the results in the context of the original problem
445
- Example contexts might include:
446
- - Physics applications (motion, forces, work)
447
- - Engineering scenarios (optimization, rates of change)
448
- - Economics problems (cost optimization, growth models)
449
- - Biological systems (population growth, reaction rates)
450
- - Business applications (profit maximization, inventory management)
451
- - Social science applications (demographic models, social network analysis)
452
- - Data science applications (regression, statistical analysis)
453
  """,
454
  "proof": """
455
  The proof question MUST:
@@ -494,7 +491,9 @@ def generate_question(subject, difficulty, question_type):
494
  request_history.append(now)
495
 
496
  topics = {
497
- "Single Variable Calculus": ["limits", "derivatives", "integrals", "series", "applications"],
 
 
498
  "Multivariable Calculus": ["partial derivatives", "multiple integrals", "vector fields", "optimization"],
499
  "Linear Algebra": ["matrices", "vector spaces", "eigenvalues", "linear transformations"],
500
  "Differential Equations": ["first order equations", "second order equations", "systems", "stability analysis"],
 
330
  """Return specific parameters and constraints based on difficulty level"""
331
  parameters = {
332
  1: { # Very Easy
333
+ "description": "suitable for beginners",
334
  "constraints": [
335
  "Use only basic concepts and straightforward calculations",
336
  "Break complex problems into smaller, guided steps",
 
337
  "Use simple numbers and avoid complex algebraic expressions"
338
  ],
339
  "example_style": "Similar to standard homework problems",
 
343
  "description": "easy, but requiring some thought",
344
  "constraints": [
345
  "Use basic concepts with minor complications",
 
346
  "Minimal guidance provided",
347
  "Use moderately complex numbers or expressions"
348
  ],
 
357
  "Require multi-step reasoning",
358
  "Use moderate algebraic complexity"
359
  ],
360
+ "example_style": "Similar to intermediate-difficulty exam questions",
361
  "model": "claude-3-5-sonnet-20241022"
362
  },
363
  4: { # Difficult
 
365
  "constraints": [
366
  "Combine multiple concepts creatively",
367
  "Require insight and deep understanding",
 
368
  "Use sophisticated mathematical reasoning"
369
  ],
370
+ "example_style": "Similar to challenging exam questions",
371
  "model": "claude-3-5-sonnet-20241022"
372
  },
373
  5: { # Very Difficult
 
439
  2. Translate the practical problem into mathematical terms
440
  3. Solve using appropriate mathematical techniques
441
  4. Interpret the results in the context of the original problem
442
+ - Randomly select one of these topic areas with equal probability
443
+ * Physics applications (motion, forces, work)
444
+ * Engineering scenarios (
445
+ * Economics problems
446
+ * Biological systems
447
+ * Business applications
448
+ * Social science applications
449
+ * Data science applications
450
  """,
451
  "proof": """
452
  The proof question MUST:
 
491
  request_history.append(now)
492
 
493
  topics = {
494
+ "Single Variable Calculus": ["limits", "derivatives", "integrals", "series", "related rates",
495
+ "linear_approximation", "lhopitals rule", "integration techniques","improper integrals","area between curves",
496
+ "volumes of revolution","arc length","parametric equations","polar coordinates"],
497
  "Multivariable Calculus": ["partial derivatives", "multiple integrals", "vector fields", "optimization"],
498
  "Linear Algebra": ["matrices", "vector spaces", "eigenvalues", "linear transformations"],
499
  "Differential Equations": ["first order equations", "second order equations", "systems", "stability analysis"],