babilong_qa6.yaml 1020 Bytes
Newer Older
Janna's avatar
Janna committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include: _babilong_common_yaml
task: babilong_qa6
test_split: qa6
custom_dataset: !function common_utils.load_dataset
dataset_kwargs:
  qa_split: qa6
description: "I will give you context with the facts about people and their locations hidden in some random text and a question. You need to answer the question based only on the information from the facts. If a person was in different locations, use the latest location the person was in to answer the question.\nYour answer should contain only one word - $yes$ or $no$. Do not write anything else after that.\nDo not explain your answer.\n\n"
doc_to_text: "{{input.strip()}}\n{{question.strip()}}"

fewshot_config:
  sampler: first_n
  samples:
    - input: "John travelled to the hallway. John travelled to the garden."
      question: "Is John in the garden?"
      target: "yes"
    - input: "Mary went to the office. Daniel journeyed to the hallway. Mary went to the bedroom. Sandra went to the garden."
      question: "Is Mary in the office?"
      target: "no"