Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Add eval yaml for Theory of Mind eval (openai#1453)
Browse files Browse the repository at this point in the history
In [the previous PR](openai#1405) adding
the Theory of Mind eval, the `evals/registry/evals/theory_of_mind.yaml`
was mistakenly not added, so the eval couldn't be run. This PR adds this
file.

Test with:
```
oaieval gpt-3.5-turbo theory_of_mind
```
  • Loading branch information
ojaffe authored Jan 9, 2024
1 parent 654533e commit 8c94882
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions evals/registry/evals/theory_of_mind.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
theory_of_mind:
id: theory_of_mind.tomi
metrics: [accuracy]
description: Runs a series of theory of mind (ToM) benchmarks (ToMI, SocialIQA).

theory_of_mind.tomi:
class: evals.elsuite.basic.match_with_solvers:MatchWithSolvers
args:
samples_jsonl: theory_of_mind/tomi/test.jsonl
task_description: "You will read a number of sentences describing a situation involving several people, as well as a question regarding the real or perceived location of an object. Your task is to answer the question based on the information in the sentences. Respond with the single word corresponding to the location."

theory_of_mind.tomi_light:
class: evals.elsuite.basic.match_with_solvers:MatchWithSolvers
args:
samples_jsonl: theory_of_mind/tomi/test.jsonl
task_description: "You will read a number of sentences describing a situation involving several people, as well as a question regarding the real or perceived location of an object. Your task is to answer the question based on the information in the sentences. Respond with the single word corresponding to the location."
n_samples: 599 # Exactly 1/10th of the total

theory_of_mind.socialiqa:
class: evals.elsuite.basic.match_with_solvers:MatchWithSolvers
args:
samples_jsonl: theory_of_mind/socialiqa/test.jsonl
task_description: "You will read a number of sentences describing a situation, followed by a question regarding the situation. Your task is to answer the question based on the information in the sentences by choosing from one of three answers A, B or C. Respond with just the letter corresponding to your answer, e.g. A."

theory_of_mind.socialiqa_light:
class: evals.elsuite.basic.match_with_solvers:MatchWithSolvers
args:
samples_jsonl: theory_of_mind/socialiqa/test.jsonl
task_description: "You will read a number of sentences describing a situation, followed by a question regarding the situation. Your task is to answer the question based on the information in the sentences by choosing from one of three answers A, B or C. Respond with just the letter corresponding to your answer, e.g. A."
n_samples: 222 # Exactly 1/10th of the total

0 comments on commit 8c94882

Please sign in to comment.