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 | |