Spaces:
Sleeping
Sleeping
ping98k
commited on
Commit
·
92463ea
1
Parent(s):
fa5956e
Update tournament_utils.py
Browse files- tournament_utils.py +4 -6
tournament_utils.py
CHANGED
|
@@ -71,9 +71,8 @@ def prompt_score(
|
|
| 71 |
"""
|
| 72 |
if explain:
|
| 73 |
prompt += f"""
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
Return JSON exactly like: {{"explain":"explanation","scores": [{example_scores}]}}.""".strip()
|
| 77 |
else:
|
| 78 |
prompt += f"""Return JSON exactly like: {{"scores": [{example_scores}]}}."""
|
| 79 |
|
|
@@ -117,9 +116,8 @@ def prompt_pairwise(
|
|
| 117 |
|
| 118 |
if explain:
|
| 119 |
prompt += f"""
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
Return JSON exactly like: {{"explain":"explanation","winner": "A"}} or {{"explain":"explanation","winner": "B"}}.""".strip()
|
| 123 |
else:
|
| 124 |
prompt += f"""Return JSON exactly like: {{"winner": "A"}} or {{"winner": "B"}}."""
|
| 125 |
|
|
|
|
| 71 |
"""
|
| 72 |
if explain:
|
| 73 |
prompt += f"""
|
| 74 |
+
Provide detailed reasons in English for each criterion.
|
| 75 |
+
Return JSON exactly like: {{"reasons":"","scores": [{example_scores}]}}.""".strip()
|
|
|
|
| 76 |
else:
|
| 77 |
prompt += f"""Return JSON exactly like: {{"scores": [{example_scores}]}}."""
|
| 78 |
|
|
|
|
| 116 |
|
| 117 |
if explain:
|
| 118 |
prompt += f"""
|
| 119 |
+
Provide detailed reasons in English for each criterion.
|
| 120 |
+
Return JSON exactly like: {{"reasons":"","winner": "A"}} or {{"reasons":"","winner": "B"}}.""".strip()
|
|
|
|
| 121 |
else:
|
| 122 |
prompt += f"""Return JSON exactly like: {{"winner": "A"}} or {{"winner": "B"}}."""
|
| 123 |
|