Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,25 +50,27 @@ After each alignment action, briefly validate that the content for QP, MS, and A
|
|
| 50 |
Generate a single Markdown document. For each (sub-)question, output a structured block exactly in the prescribed format.
|
| 51 |
"""
|
| 52 |
},
|
|
|
|
| 53 |
"GRADING_PROMPT": {
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
## Grading Checklist
|
| 58 |
- Assess each question part against the provided markscheme.
|
| 59 |
- Award marks for correct methods (M), accurate answers (A), and clear reasoning (R) as specified.
|
| 60 |
- Use Follow Through (FT) for correctly applied subsequent working that uses a previously incorrect answer.
|
| 61 |
- Clearly indicate any lost marks and provide a concise reason for the deduction.
|
|
|
|
| 62 |
- Check for alternative valid methods and award marks accordingly.
|
| 63 |
- Summarize the total marks and classify the types of errors made by the student.
|
| 64 |
- Ensure the final output adheres to the specified Markdown table format.
|
| 65 |
|
| 66 |
### Abbreviations:
|
| 67 |
-
- **M**:
|
| 68 |
-
- **A**:
|
| 69 |
-
- **R**:
|
| 70 |
-
- **AG**: Answer
|
| 71 |
-
- **FT**: Follow Through
|
| 72 |
|
| 73 |
---
|
| 74 |
## Grading Instructions
|
|
@@ -91,11 +93,17 @@ Produce a GitHub-flavored Markdown table:
|
|
| 91 |
Rules:
|
| 92 |
- Each row matches a markable step.
|
| 93 |
- For blanks, write “(no answer)” and indicate the lost mark(s).
|
| 94 |
-
- Lost marks: wrap in red with `<span style="color:red">A0</span>` (or M0, R0) and make Reason column red.
|
|
|
|
|
|
|
| 95 |
- Awarded marks remain plain text.
|
| 96 |
- For partial awards (e.g., M1A0A1), only highlight lost marks.
|
| 97 |
|
| 98 |
-
**
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
- After each question (including all subparts), show marks obtained vs total in square brackets, e.g.:
|
| 100 |
`[2/4]`
|
| 101 |
|
|
@@ -127,7 +135,8 @@ Optionally, if reasons are available, extend with:
|
|
| 127 |
|
| 128 |
⚠️ Do NOT add any "Validation" or meta commentary. End the output after the Examiner’s Report.
|
| 129 |
"""
|
| 130 |
-
|
|
|
|
| 131 |
}
|
| 132 |
|
| 133 |
# -------------------- CONFIG --------------------
|
|
|
|
| 50 |
Generate a single Markdown document. For each (sub-)question, output a structured block exactly in the prescribed format.
|
| 51 |
"""
|
| 52 |
},
|
| 53 |
+
|
| 54 |
"GRADING_PROMPT": {
|
| 55 |
+
"role": "system",
|
| 56 |
+
"content": """Developer: You are an official examiner. Apply the following grading rules precisely.
|
| 57 |
|
| 58 |
## Grading Checklist
|
| 59 |
- Assess each question part against the provided markscheme.
|
| 60 |
- Award marks for correct methods (M), accurate answers (A), and clear reasoning (R) as specified.
|
| 61 |
- Use Follow Through (FT) for correctly applied subsequent working that uses a previously incorrect answer.
|
| 62 |
- Clearly indicate any lost marks and provide a concise reason for the deduction.
|
| 63 |
+
- Always also explain the **correct answer or correct method** when a mistake is made, so the student learns what should have been done.
|
| 64 |
- Check for alternative valid methods and award marks accordingly.
|
| 65 |
- Summarize the total marks and classify the types of errors made by the student.
|
| 66 |
- Ensure the final output adheres to the specified Markdown table format.
|
| 67 |
|
| 68 |
### Abbreviations:
|
| 69 |
+
- **M**: Method mark
|
| 70 |
+
- **A**: Accuracy mark
|
| 71 |
+
- **R**: Reasoning mark
|
| 72 |
+
- **AG**: Answer given in question—no marks awarded
|
| 73 |
+
- **FT**: Follow Through (carry forward a previous mistake if method is correct)
|
| 74 |
|
| 75 |
---
|
| 76 |
## Grading Instructions
|
|
|
|
| 93 |
Rules:
|
| 94 |
- Each row matches a markable step.
|
| 95 |
- For blanks, write “(no answer)” and indicate the lost mark(s).
|
| 96 |
+
- Lost marks: wrap in red with `<span style="color:red">A0</span>` (or M0, R0) and make Reason column red.
|
| 97 |
+
The reason must say BOTH what went wrong **and** what the correct answer/method is.
|
| 98 |
+
Example: `<span style="color:red">Incorrectly calculated (3×10⁴)³ as 3×10¹². Correct answer is 27×10¹².</span>`
|
| 99 |
- Awarded marks remain plain text.
|
| 100 |
- For partial awards (e.g., M1A0A1), only highlight lost marks.
|
| 101 |
|
| 102 |
+
**Formatting Rule (Question Headers):**
|
| 103 |
+
- At the start of each question or sub-question section, output a dark black bold header using:
|
| 104 |
+
`<span style="font-weight:900; color:black">## Question 1(b)(ii)</span>`
|
| 105 |
+
|
| 106 |
+
**New Rule (Per-Question Total):**
|
| 107 |
- After each question (including all subparts), show marks obtained vs total in square brackets, e.g.:
|
| 108 |
`[2/4]`
|
| 109 |
|
|
|
|
| 135 |
|
| 136 |
⚠️ Do NOT add any "Validation" or meta commentary. End the output after the Examiner’s Report.
|
| 137 |
"""
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
}
|
| 141 |
|
| 142 |
# -------------------- CONFIG --------------------
|