Skip to content

Commit

Permalink
Change to not in vs not <> in
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJBoyer committed Apr 19, 2024
1 parent b189586 commit e04be73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 02-household-queries/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ def evaluate(eval_llm_client, questions, parameters):
"question_id": question["id"],
"question_text": question["question"],
"correct_answer": question[
"orig_answer" if not "short_answer" in question else "answer"
"orig_answer" if "short_answer" not in question else "answer"
],
"ai_generated_answer": get_answer(question["question"], parameters),
}
result["evaluation"] = eval_llm_client(EVAL_PROMPT.format(**result))
result["correct"] = not "incorrect" in result["evaluation"].lower()
result["correct"] = "incorrect" not in result["evaluation"].lower()
result |= parameters
result["model"] = result["model"].__name__
results.append(result)
Expand Down

0 comments on commit e04be73

Please sign in to comment.