Skip to content

Commit

Permalink
Fix incorrect usage of MCQJudge.judge() in README.md and docs/quickst…
Browse files Browse the repository at this point in the history
…art/mcq.md by adding missing second argument
  • Loading branch information
fanndu committed Oct 10, 2024
1 parent bc4ef9f commit 4c67558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ logs = []
for sample in dataset:
prompt = template(sample)
response = llm(prompt)
judge_output, score = judge(response)
judge_output, score = judge(response, sample.answer)

logs.append({
"sample": sample.model_dump(),
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart/mcq.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ logs = []
for sample in dataset:
prompt = template(sample)
response = llm(prompt)
judge_output, score = judge(response)
judge_output, score = judge(response, sample.answer)

logs.append({
"sample": sample.model_dump(),
Expand Down

0 comments on commit 4c67558

Please sign in to comment.