Update README
Browse files
README.md
CHANGED
|
@@ -144,7 +144,7 @@ from openai import OpenAI
|
|
| 144 |
|
| 145 |
client = OpenAI() # or any OpenAI-compatible client
|
| 146 |
|
| 147 |
-
def evaluate(question, response, rubrics, judge_model="gpt-
|
| 148 |
"""Judge all rubrics in one call, return weighted score."""
|
| 149 |
rubrics_text = "\n\n".join(
|
| 150 |
f"**Rubric {r['rubric_number']}** (weight {r['rubric_weight']:+d})\n{r['rubric_detail']}"
|
|
@@ -174,7 +174,7 @@ def evaluate(question, response, rubrics, judge_model="gpt-4o-mini"):
|
|
| 174 |
ds = load_dataset("humanlaya-data-lab/OneMillion-Bench", "natural_science", split="test")
|
| 175 |
for entry in ds.select(range(3)):
|
| 176 |
response = client.chat.completions.create(
|
| 177 |
-
model="gpt-
|
| 178 |
messages=[{"role": "user", "content": entry["question"]}],
|
| 179 |
).choices[0].message.content
|
| 180 |
result = evaluate(entry["question"], response, entry["rubrics"])
|
|
@@ -183,4 +183,4 @@ for entry in ds.select(range(3)):
|
|
| 183 |
|
| 184 |
## License
|
| 185 |
|
| 186 |
-
Apache 2.0
|
|
|
|
| 144 |
|
| 145 |
client = OpenAI() # or any OpenAI-compatible client
|
| 146 |
|
| 147 |
+
def evaluate(question, response, rubrics, judge_model="openai/gpt-5.4"):
|
| 148 |
"""Judge all rubrics in one call, return weighted score."""
|
| 149 |
rubrics_text = "\n\n".join(
|
| 150 |
f"**Rubric {r['rubric_number']}** (weight {r['rubric_weight']:+d})\n{r['rubric_detail']}"
|
|
|
|
| 174 |
ds = load_dataset("humanlaya-data-lab/OneMillion-Bench", "natural_science", split="test")
|
| 175 |
for entry in ds.select(range(3)):
|
| 176 |
response = client.chat.completions.create(
|
| 177 |
+
model="openai/gpt-5.4",
|
| 178 |
messages=[{"role": "user", "content": entry["question"]}],
|
| 179 |
).choices[0].message.content
|
| 180 |
result = evaluate(entry["question"], response, entry["rubrics"])
|
|
|
|
| 183 |
|
| 184 |
## License
|
| 185 |
|
| 186 |
+
Apache 2.0
|