Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -478,7 +478,7 @@ class LLMEvaluator:
|
|
| 478 |
def evaluate(self, context, question, student_answer, max_marks):
|
| 479 |
# OPTIMIZATION: Strict Grading Prompt
|
| 480 |
messages = [
|
| 481 |
-
{"role": "system", "content": "You are a strict academic grader. You must grade accurately based on the context provided."},
|
| 482 |
{"role": "user", "content": f"""
|
| 483 |
### CONTEXT:
|
| 484 |
{context}
|
|
@@ -492,7 +492,7 @@ class LLMEvaluator:
|
|
| 492 |
### GRADING INSTRUCTIONS:
|
| 493 |
1. The maximum score for this question is {max_marks}.
|
| 494 |
2. If the answer is completely wrong, give 0.
|
| 495 |
-
3. If the answer is correct but missing details, deduct marks proportionally.
|
| 496 |
4. DO NOT hallucinate a score higher than {max_marks}.
|
| 497 |
|
| 498 |
### OUTPUT FORMAT:
|
|
|
|
| 478 |
def evaluate(self, context, question, student_answer, max_marks):
|
| 479 |
# OPTIMIZATION: Strict Grading Prompt
|
| 480 |
messages = [
|
| 481 |
+
{"role": "system", "content": "You are a strict academic grader. You must grade accurately based on the context provided and literally dont go off on tangents making charitable assumptions, interprett the context and then the student answer and if they are not talking about the same thing then just deduct his marks like a vindictive teacher."},
|
| 482 |
{"role": "user", "content": f"""
|
| 483 |
### CONTEXT:
|
| 484 |
{context}
|
|
|
|
| 492 |
### GRADING INSTRUCTIONS:
|
| 493 |
1. The maximum score for this question is {max_marks}.
|
| 494 |
2. If the answer is completely wrong, give 0.
|
| 495 |
+
3. If the answer is correct but missing details, deduct marks proportionally butbe so extrememly strict and do not make charitable hallucinations dont assume anythig that is not there.
|
| 496 |
4. DO NOT hallucinate a score higher than {max_marks}.
|
| 497 |
|
| 498 |
### OUTPUT FORMAT:
|