Spaces:
Running
Running
diana3135
commited on
Commit
·
b8646be
1
Parent(s):
9ccc332
avoid high scores in evaluation
Browse files
utils.py
CHANGED
|
@@ -72,11 +72,11 @@ def modify_with_suggestion(task_description, text, suggestions, api_key = None):
|
|
| 72 |
def get_evaluation_with_gpt(task_description, text, api_key=None):
|
| 73 |
prompt = (
|
| 74 |
f"Given the task: {task_description}, the provided answer is: {text}\n"
|
| 75 |
-
f"Evaluate the answer
|
| 76 |
f"0-4: Below average. The answer includes some relevant ideas but has no valuable contribution.\n"
|
| 77 |
-
f"5-7: Fair to average quality. The answer is relevant, with some specific insights
|
| 78 |
f"8-10: Good to excellent quality. The answer is insightful, valuable, and actionable.\n"
|
| 79 |
-
f"When evaluating, use the entire scoring range and avoid defaulting to mid-range scores
|
| 80 |
f"Evaluate based on the criteria:\n\n"
|
| 81 |
f"Novelty: The uniqueness and innovation of the ideas."
|
| 82 |
f"Implementability: The practicality of suggested actions.\n"
|
|
@@ -86,6 +86,6 @@ def get_evaluation_with_gpt(task_description, text, api_key=None):
|
|
| 86 |
f"Novelty: [Score]\nComment: [Short comment on Novelty]\n"
|
| 87 |
f"Implementability: [Score]\nComment: [Short comment on Implementability]\n"
|
| 88 |
f"Defensibility: [Score]\nComment: [Short comment on Defensibility]\n"
|
| 89 |
-
f"Overall Score: [Score]\nOverall Comment: [Overall feedback
|
| 90 |
)
|
| 91 |
return generate_text_with_gpt(prompt, api_key)
|
|
|
|
| 72 |
def get_evaluation_with_gpt(task_description, text, api_key=None):
|
| 73 |
prompt = (
|
| 74 |
f"Given the task: {task_description}, the provided answer is: {text}\n"
|
| 75 |
+
f"Evaluate the answer using a scale from 0 to 10. Scores should reflect stricter quality thresholds:\n"
|
| 76 |
f"0-4: Below average. The answer includes some relevant ideas but has no valuable contribution.\n"
|
| 77 |
+
f"5-7: Fair to average quality. The answer is relevant, with some specific insights.\n"
|
| 78 |
f"8-10: Good to excellent quality. The answer is insightful, valuable, and actionable.\n"
|
| 79 |
+
f"When evaluating, use the entire scoring range and avoid defaulting to mid-range scores.\n\n"
|
| 80 |
f"Evaluate based on the criteria:\n\n"
|
| 81 |
f"Novelty: The uniqueness and innovation of the ideas."
|
| 82 |
f"Implementability: The practicality of suggested actions.\n"
|
|
|
|
| 86 |
f"Novelty: [Score]\nComment: [Short comment on Novelty]\n"
|
| 87 |
f"Implementability: [Score]\nComment: [Short comment on Implementability]\n"
|
| 88 |
f"Defensibility: [Score]\nComment: [Short comment on Defensibility]\n"
|
| 89 |
+
f"Overall Score: [Score]\nOverall Comment: [Overall feedback]\n"
|
| 90 |
)
|
| 91 |
return generate_text_with_gpt(prompt, api_key)
|