Skip to main content

Dataset

Dataset.from_jsonl(path, name=None, format="auto")

Load a dataset from a JSONL file.

Dataset.from_list(items, name="inline", format="auto")

Create a dataset from a list of dicts (same schema as JSONL lines).

dataset.summary()

Return a dict with name, sample count, whether ideals are present, and metadata keys.

dataset.has_ideals()

Return True if every conversation has an ideal field.

Conversation

Each item in a dataset is a Conversation: