AI-103 Practice Question 74: Fine Tuning JSONL Chat Format
Microsoft Azure AI Apps and Agents Developer Associate (AI-103) · Test 8 · question 4 of 10
A developer is preparing a training file to run a supervised fine-tuning job against a chat model in Microsoft Foundry. They have 200 example support exchanges and want to format the file correctly on the first attempt.
Which structure should the training file use?
Show answer and explanation
Answer:
Microsoft's fine-tuning documentation is specific: training and validation data "must be formatted as a JSON Lines (JSONL) document in the conversational format that the Chat Completions API uses." Each line is one training example, and each example is a messages array of role-tagged turns: system for the model's behavior, user for the input, assistant for the expected response, matching exactly what a live chat completion request looks like. The file must also be UTF-8 encoded with a byte-order mark, and at least 10 examples are required to start a job.
- A is wrong because prompt/completion pairs are the older single-turn completions format, not the conversational format current chat models fine-tune on, and it isn't line-delimited. - C is wrong because CSV carries no concept of roles or multi-turn structure, and the service's training and validation files are JSONL, not tabular. - D is wrong because collapsing a conversation into one opaque text string throws away the role boundaries the service uses to know which turns are instructions, which are user input, and which are the assistant output it should learn to produce.
Reference: Customize a model with fine-tuning