Match each instruction dataset to its on-disk row shape.
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Alpaca is flat instruction, input, output, ShareGPT is a conversation list with from tags, OASST is a parent_id message tree, FLAN is input_text-target_text pairs, OpenAI Chat-JSONL is the role-tagged messages array.
Imagine five different ways to record a tutoring conversation. Alpaca writes one neat card with the question, optional context, and the answer. ShareGPT writes a small script of who said what in order. OASST is more like a family tree of replies where any line can branch into several follow-ups. FLAN fills out a worksheet with a prompt and the expected response. OpenAI Chat-JSONL is a tidy diary where every entry tags the speaker as system, user, or assistant. Each format suits a different purpose, and recognising the shape on disk tells you what the dataset was built for.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: topology sort first (three flat, one list, one tree) + field-name vocabulary per format + how to disambiguate ShareGPT from OpenAI Chat-JSONL + why OASST is a tree + format adapters in modern stacks.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Confusing ShareGPT and OpenAI Chat-JSONL because both encode conversations. The giveaway is the field names, ShareGPT uses from and value with informal speaker tags, OpenAI uses role and content with strict role names.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.