Skip to content

Commit

Permalink
Merge pull request #116 from fanndu/main
Browse files Browse the repository at this point in the history
Fix incorrect usage of MCQJudge.judge() in README.md and docs/quickst…
  • Loading branch information
ThePyProgrammer authored Oct 19, 2024
2 parents bc4ef9f + 4c67558 commit 519d602
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 519d602

Please sign in to comment.