aicodingfun commited on
Commit
e1f9cb7
·
verified ·
1 Parent(s): faf18df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -105,7 +105,17 @@ def generate_math_questions(grade, term, qtype="Unspecified", num_questions=10):
105
  },
106
  {
107
  "role": "user",
108
- "content": f"""I have the following question bank. Please generate new, diverse, and similar questions based on it. Ensure the generated questions are appropriate for the same audience and maintain the educational focus. Include the correct answers for each question.
 
 
 
 
 
 
 
 
 
 
109
 
110
  Input Question Bank:
111
  {input_question_bank[1]}
 
105
  },
106
  {
107
  "role": "user",
108
+ # I have the following question bank. Please generate new, diverse, and similar questions based on it. Ensure the generated questions are appropriate for the same audience and maintain the educational focus, and . Include the correct answers for each question.
109
+ "content": f"""
110
+ I have the following question bank. Please follow these guidelines to generate new, diverse, and pedagogically appropriate questions:
111
+ 1. **Maintain strict alignment with original question formats** - For multiple choice questions provide 4 fully developed options; for true/false questions include both statement variations; for fill-in-the-blank precisely indicate blank locations with underscores/braces
112
+ 2. **Structure output with clear question components**:
113
+ - Multiple Choice: [Stem] > [Options A-D] > [Correct Answer]
114
+ - True/False: [Statement] > [Answer Rationale]
115
+ - Fill-in-the-Blank: [Context with clearly marked blanks] > [Answer Key]
116
+ 3. Ensure cognitive consistency with original difficulty level and subject focus
117
+ 4. Include annotated answer explanations for each generated question
118
+ 5. **Organize output in a table format with columns: Question Type, Question Structure, Answer Details**
119
 
120
  Input Question Bank:
121
  {input_question_bank[1]}