Skip to content

tinker_cookbook.utils.read_jsonl

tinker_cookbook.utils.read_jsonl(path)

Read a JSONL (JSON Lines) file and return a list of parsed dictionaries.

Parameters:

  • path (str) – Path to the JSONL file.

Returns: list[dict]: List of dictionaries, one per line in the file.