Spaces:
Sleeping
Sleeping
Update src/core/QuizEngine.py
Browse files- src/core/QuizEngine.py +0 -17
src/core/QuizEngine.py
CHANGED
|
@@ -102,23 +102,6 @@ class QuizEngine:
|
|
| 102 |
f"- If valid: Just the question text.\n"
|
| 103 |
f"- If invalid: The word 'UNABLE'."
|
| 104 |
)
|
| 105 |
-
|
| 106 |
-
"""
|
| 107 |
-
def construct_question_generation_prompt(self, context_text):
|
| 108 |
-
return (
|
| 109 |
-
f"Act as a Navy Board Examiner.\n"
|
| 110 |
-
f"Here is a raw text excerpt from Navy documentation:\n"
|
| 111 |
-
f"'''{context_text}'''\n\n"
|
| 112 |
-
f"TASK: Generate a single question based on this text.\n\n"
|
| 113 |
-
f"STRICT RULES:\n"
|
| 114 |
-
f"1. You must base your question on a SPECIFIC SENTENCE in the text.\n"
|
| 115 |
-
f"2. Output the exact quote you used to form the question.\n"
|
| 116 |
-
f"3. If the text is meaningless or 'Intentionally Left Blank', output 'UNABLE'.\n\n"
|
| 117 |
-
f"OUTPUT FORMAT:\n"
|
| 118 |
-
f"QUESTION: [Your Question]\n"
|
| 119 |
-
f"QUOTE: [The exact text snippet used]"
|
| 120 |
-
)
|
| 121 |
-
"""
|
| 122 |
|
| 123 |
def construct_grading_prompt(self, question, answer, context_text):
|
| 124 |
return (
|
|
|
|
| 102 |
f"- If valid: Just the question text.\n"
|
| 103 |
f"- If invalid: The word 'UNABLE'."
|
| 104 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
def construct_grading_prompt(self, question, answer, context_text):
|
| 107 |
return (
|