Spaces:
Sleeping
Sleeping
Update src/core/QuizEngine.py
Browse files101 unmodified lines102103104105106107108109110111112113114115116117118119120121122123124101 unmodified linesf"- If valid: Just the question text.\n"f"- If invalid: The word 'UNABLE'.")"""def construct_question_generation_prompt(self, context_text):return (f"Act as a Navy Board Examiner.\n"f"Here is a raw text excerpt from Navy documentation:\n"f"'''{context_text}'''\n\n"f"TASK: Generate a single question based on this text.\n\n"f"STRICT RULES:\n"f"1. You must base your question on a SPECIFIC SENTENCE in the text.\n"f"2. Output the exact quote you used to form the question.\n"f"3. If the text is meaningless or 'Intentionally Left Blank', output 'UNABLE'.\n\n"f"OUTPUT FORMAT:\n"f"QUESTION: [Your Question]\n"f"QUOTE: [The exact text snippet used]")"""def construct_grading_prompt(self, question, answer, context_text):return (101 unmodified lines102103104105106107101 unmodified linesf"- If valid: Just the question text.\n"f"- If invalid: The word 'UNABLE'.")def construct_grading_prompt(self, question, answer, context_text):return (
src/core/QuizEngine.py-17