Spaces:
Build error
Build error
Update app.py
#2
by
pgoel90
- opened
app.py
CHANGED
|
@@ -20,7 +20,14 @@ def create_multiple_choice_prompt(num_questions, quiz_context, expertise):
|
|
| 20 |
You are an expert in {expertise}. Generate a quiz with {num_questions} multiple-choice questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 21 |
|
| 22 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
The format of the quiz is as follows:
|
| 25 |
- Multiple-choice:
|
| 26 |
- Questions:
|
|
@@ -58,7 +65,13 @@ def create_true_false_prompt(num_questions, quiz_context, expertise):
|
|
| 58 |
You are an expert in {expertise}. Generate a quiz with {num_questions} true-false questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 59 |
|
| 60 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
The format of the quiz is as follows:
|
| 64 |
- True-false:
|
|
@@ -86,7 +99,13 @@ def create_open_ended_prompt(num_questions, quiz_context, expertise):
|
|
| 86 |
You are an expert in {expertise}. Generate a quiz with {num_questions} open-ended questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 87 |
|
| 88 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 89 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
The format of the quiz is as follows:
|
| 92 |
- Open-ended:
|
|
@@ -107,7 +126,13 @@ def create_fill_in_the_blank_prompt(num_questions, quiz_context, expertise):
|
|
| 107 |
You are an expert in {expertise}. Generate a quiz with {num_questions} fill-in-the-blank questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 108 |
|
| 109 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
|
| 112 |
The format of the quiz is as follows:
|
| 113 |
- Fill-in-the-blank:
|
|
@@ -131,7 +156,13 @@ def create_mixed_questions_prompt(num_questions, quiz_context, expertise):
|
|
| 131 |
You are an expert in {expertise}. Generate a quiz with exactly {num_questions} questions that include a random mix of multiple-choice, true-false, open-ended, and fill-in-the-blank questions relevant to {expertise} based on the following content: {quiz_context}.
|
| 132 |
|
| 133 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field. Ensure that the questions are randomly mixed among the different types.
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
The format of the quiz is as follows:
|
| 137 |
- Mixed Questions:
|
|
|
|
| 20 |
You are an expert in {expertise}. Generate a quiz with {num_questions} multiple-choice questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 21 |
|
| 22 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 23 |
+
For each question, also specify the Bloom's Taxonomy level it corresponds to, choosing from the following levels:
|
| 24 |
+
1. Remember
|
| 25 |
+
2. Understand
|
| 26 |
+
3. Apply
|
| 27 |
+
4. Analyze
|
| 28 |
+
5. Evaluate
|
| 29 |
+
6. Create
|
| 30 |
+
|
| 31 |
The format of the quiz is as follows:
|
| 32 |
- Multiple-choice:
|
| 33 |
- Questions:
|
|
|
|
| 65 |
You are an expert in {expertise}. Generate a quiz with {num_questions} true-false questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 66 |
|
| 67 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 68 |
+
For each question, also specify the Bloom's Taxonomy level it corresponds to, choosing from the following levels:
|
| 69 |
+
1. Remember
|
| 70 |
+
2. Understand
|
| 71 |
+
3. Apply
|
| 72 |
+
4. Analyze
|
| 73 |
+
5. Evaluate
|
| 74 |
+
6. Create
|
| 75 |
|
| 76 |
The format of the quiz is as follows:
|
| 77 |
- True-false:
|
|
|
|
| 99 |
You are an expert in {expertise}. Generate a quiz with {num_questions} open-ended questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 100 |
|
| 101 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 102 |
+
For each question, also specify the Bloom's Taxonomy level it corresponds to, choosing from the following levels:
|
| 103 |
+
1. Remember
|
| 104 |
+
2. Understand
|
| 105 |
+
3. Apply
|
| 106 |
+
4. Analyze
|
| 107 |
+
5. Evaluate
|
| 108 |
+
6. Create
|
| 109 |
|
| 110 |
The format of the quiz is as follows:
|
| 111 |
- Open-ended:
|
|
|
|
| 126 |
You are an expert in {expertise}. Generate a quiz with {num_questions} fill-in-the-blank questions that are relevant to {expertise} based on the following content: {quiz_context}.
|
| 127 |
|
| 128 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field.
|
| 129 |
+
For each question, also specify the Bloom's Taxonomy level it corresponds to, choosing from the following levels:
|
| 130 |
+
1. Remember
|
| 131 |
+
2. Understand
|
| 132 |
+
3. Apply
|
| 133 |
+
4. Analyze
|
| 134 |
+
5. Evaluate
|
| 135 |
+
6. Create
|
| 136 |
|
| 137 |
The format of the quiz is as follows:
|
| 138 |
- Fill-in-the-blank:
|
|
|
|
| 156 |
You are an expert in {expertise}. Generate a quiz with exactly {num_questions} questions that include a random mix of multiple-choice, true-false, open-ended, and fill-in-the-blank questions relevant to {expertise} based on the following content: {quiz_context}.
|
| 157 |
|
| 158 |
The questions should be at the level of {expertise} and should challenge the knowledge of someone proficient in this field. Ensure that the questions are randomly mixed among the different types.
|
| 159 |
+
For each question, also specify the Bloom's Taxonomy level it corresponds to, choosing from the following levels:
|
| 160 |
+
1. Remember
|
| 161 |
+
2. Understand
|
| 162 |
+
3. Apply
|
| 163 |
+
4. Analyze
|
| 164 |
+
5. Evaluate
|
| 165 |
+
6. Create
|
| 166 |
|
| 167 |
The format of the quiz is as follows:
|
| 168 |
- Mixed Questions:
|