File size: 1,024 Bytes
a1384e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
operators: 
- id: load_math
  config:
    type: hf_source
    dataset: neginr/multisubject_rlvr_compsci_eval
    split: train
    trust_remote_code: True
- id: generate_instructions
  config:
    type: completions
    map: chat
    map_config:
      system_message: "You are a helpful assistant."
      user_message: |
        You are given a computer science question and its *correct* answer. Come up with three OTHER *false* choices for the given question. Separate the three incorrect answers with the new line character, and follow the format below:
        A) <incorrect_answer_1>
        B) <incorrect_answer_2>
        C) <incorrect_answer_3>

        Question: {{query}}
        Correct answer: {{label}}
        
      output_column: gpt_answers
    model: gpt-4o-mini
    temperature: 1.0
    batch: False
    require_all_responses: True
  input_ids:
    - load_math
- id: add_choices
  config:
    type: function
    function: data_strategies.FinQA.utils.add_mcq_choices
  input_ids:
    - generate_instructions