jacklanda commited on
Commit
ad6b253
·
1 Parent(s): b55614c

Update README

Browse files
Files changed (1) hide show
  1. README.md +3 -3
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-4o-mini"):
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-4o-mini",
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