Skip to main content

load_multiple_choice_jsonl

Function load_multiple_choice_jsonl 

Source
pub fn load_multiple_choice_jsonl(
    path: &Path,
) -> Result<Vec<MultipleChoiceExample>>
Expand description

Load multiple-choice examples from a JSONL file.

Accepts records formatted as {"context": "...", "choices": ["...", ...], "gold_index": 0}.

ยงErrors

Returns an error if the file cannot be read or contains invalid JSON lines.