Skill 4.1.1
Create test datasets and data mapping for comprehensive model evaluation
Key Concepts
A test dataset is a JSONL or CSV file of rows such as query, context, ground_truth and, for agents, expected tool calls. A comprehensive set covers common requests, edge cases, questions the system should decline, multi-turn conversations and adversarial inputs, and it is versioned so that results remain comparable over time. Datasets can be uploaded to a Foundry project, and synthetic generation helps when real examples are scarce.
Data mapping tells each evaluator where its inputs come from. A dataset column is mapped with an expression such as {{item.query}} in Foundry cloud evaluations, or ${data.query} in the azure-ai-evaluation SDK's column mapping, and a response generated during the run is mapped from the target's output, such as {{sample.output_text}} or ${target.response}. A mapping mistake, such as passing the ground truth as the context, silently produces meaningless scores.