# When do I need context, ground truth or tool definitions in a Foundry evaluation dataset?

Exam: AI-300 — Operationalizing Machine Learning and Generative AI Solutions
Knowledge domain: Implement generative AI quality assurance and observability
Updated: 2026-11-25T04:35:44.772397+00:00
HTML: https://learningpathx.com/faq/AI-300/ai300-evaluation-context-ground-truth-fields.html

## Also asked as

- How do I choose Foundry evaluation fields such as context and ground\_truth?
- What supporting fields should I supply with a Foundry evaluation interaction?

The required fields depend on the interaction format and selected evaluators. Start with the interaction fields for your run, then add the supporting fields required by the selected checks.

| Field | Meaning |
| --- | --- |
| `query` / `response` | Input and stored output for separate-field evaluation |
| `messages` | Structured interaction, or input history for an invoked target |
| `context` | Supporting source information needed by the evaluator |
| `ground_truth` | An expected or independently reviewed reference answer |
| `tool_definitions` | Available tool names, descriptions and parameter schemas when required |

Context answers “what evidence could support this response?” Ground truth answers “what reference answer should this output be compared with?” A policy document and a reviewed answer derived from it have different roles; copying either into the other without review can change what is measured.

Check the selected evaluator's current input contract. Textual comparison can require ground truth; groundedness with string inputs can require context; tool evaluators can require tool schemas. Blank strings do not repair missing evidence. For dynamic RAG, supply the relevant evidence for the actual evaluated interaction rather than an unrelated static passage.

Keep reference answers and evaluator-only labels out of target input unless that is deliberately part of the application task. Otherwise the test can reveal the answer instead of measuring the intended behavior.

**Microsoft Learn**

* [Evaluation dataset schema in Microsoft Foundry](https://learn.microsoft.com/en-us/azure/foundry/observability/how-to/evaluation-dataset-schema)

Source: [AI-300: Preparing Evaluation Datasets and Field Mappings](https://learningpathx.com/news/ai-300-preparing-evaluation-datasets-and-field-mappings.html)
