BRK310 · Breakout
The evaluation loop for Microsoft IQ
Speakers: Divya Chirasani, Ahmad Qardahji
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
The session shows how Microsoft Foundry observability supports an evaluation loop for context-aware agents built on Microsoft IQ. After framing failure modes and production barriers, it covers tracing (including GA tracing for external agents), golden datasets, task-level evaluators, and new voice, safety rubric and Boolean-scoring evaluators. A travel-agent demo walks through trace annotation with ground truth, synthetic and trace-based golden datasets, generated quality and safety rubric evaluators, offline evaluation and project-level monitoring of health, quality and cost. The second half introduces Decision Model 1.1, a non-chat judge returning typed decisions, and covers continuous evaluation on live traffic, the Insights engine for unanticipated issues and an optimization run that promotes a fixed agent version.
Best for: Developers and AI engineers building agents in Microsoft Foundry who need a systematic way to evaluate, monitor and improve quality and cost.
New material starts at 05:11. The first five minutes frame Microsoft IQ, agent failure modes and industry statistics; at 05:11 the concrete tracing, golden dataset and task-level evaluator material begins.
Where to skip: Skip to 05:11; the rubric evaluator generation at 18:43, Decision Model 1.1 at 31:48 and continuous evaluation with judge cost comparison at 35:35 are the core, followed by Insights and optimization at 40:08–45:52; the recap at 29:56 and the closing can be skipped.
Chapters (15)
- 00:00 Recap Depth 100 · Novelty 0/3
Microsoft IQ as context platform and where context-aware agents fail
The speakers from Microsoft Foundry frame the session around continuously improving context-aware agents. Microsoft IQ is described as an enterprise context management platform with four parts: Web IQ, Work IQ, Fabric IQ and Foundry IQ. They then list failure modes: retrieval missing or burying relevant content, noise, and the agent misrepresenting or hallucinating beyond the context. Fixes such as document processing, retrieval reasoning strength and better models trade off latency, cost and quality, which raises the question of how to measure improvement.
- 02:55 Recap Depth 100 · Novelty 0/3
Why agents stall before production and the agent observability loop
Industry data is cited: 32% of survey participants see quality as a barrier to production, and Gartner predicts 40% of agents will be disabled by end of 2027 due to costs, unproven value and risk. Observability for agents adds the question 'is it doing the right thing?' to classic health checks, since agents can be confidently wrong. Evaluations are presented as part of a four-stage loop: build (see and measure), run (health), detect (behaviour on live traffic) and improve.
- 05:11 New Depth 300 · Novelty 2/3
Tracing for Foundry and external agents, golden datasets, task-level evaluators
Tracing is enabled automatically for Foundry prompt and hosted agents once Application Insights is connected; external agents can send traces to Foundry observability, which is stated as generally available and needs the Microsoft OpenTelemetry distro library and a few lines of code. Golden datasets are defined as diverse query sets used as a quality baseline, built from synthetic data or from filtered traces enriched with ground truth and human feedback. Task-level evaluators, which apply extra checks to a subset of traces for a specific task, are described as new as of today.
- 08:29 New Depth 200 · Novelty 2/3
Judging methods and new evaluators: voice, rubric for safety, Boolean scoring
Three judging approaches are compared: code-based evaluation for deterministic checks such as tool-call schema, model-based (LLM-as-judge) as the most popular cost-effective option, and human evaluation as best but expensive. Foundry offers around 60 built-in evaluators. Announcements include voice evaluators for voice agents, rubric evaluators for safety (extending the quality rubric evaluator introduced months earlier, which generates an agent-specific evaluator from the agent's context) and Boolean scoring in addition to Likert scales.
- 11:10 Demo Depth 200 · Novelty 2/3
Demo: travel agent setup and trace views with feedback and ground truth
The demo agent books flights and hotels within policy, using Web IQ web search, two MCP servers and a Foundry IQ knowledge base with GPT-4.1 on low reasoning effort over an Azure AI Search index and policy files. Traces are shown in trajectory (per-step time and tokens), user and graph views, with conversation-level navigation. Each trace can be annotated with good/bad ratings, categories such as hallucination, comments and newly launched expected outputs (ground truth) for later use in golden datasets.
- 14:29 Demo Depth 200 · Novelty 2/3
Demo: creating synthetic and trace-based golden datasets with rubric test cases
Datasets can be uploaded, generated synthetically or created from traces. Synthetic generation takes free-form instructions (tasks, personas, scenarios such as …), the target agent, a generation model and row count. In practice traces with feedback are sent to a new or existing versioned dataset, which can be marked as golden and, as a new option, enriched with model-generated rubric-based test cases; the resulting rows hold query, full response with tool calls, user rating, ground truth and rubric metadata.
- 18:43 Demo Depth 300 · Novelty 2/3
Demo: built-in catalog and generating agent-specific quality and safety rubric evaluators
The evaluator catalog offers built-in evaluators such as task completion, output quality and groundedness. A custom rubric evaluator is created by choosing quality or safety, a 1-5 or Boolean scoring method, a generation model, the target agent, and optional production traces and context files such as product specs. The generated quality rubric checks tool traceability, ordering results cheapest to most expensive and policy violations; the safety rubric lists allowed and disallowed actions, e.g. booking travel to unsafe countries, with scope, prohibited behaviour, definitions and examples.
- 22:46 Demo Depth 300 · Novelty 1/3
Demo: offline evaluation run against the golden dataset and interpreting low scores
An evaluation is created from the traces Evaluation tab, choosing turn- or conversation-level evaluation, the existing golden dataset, criteria, a judge model and frequency. The speaker advises using a judge model from a different family than the agent's model to avoid favouritism. Results show safety passing but quality failing; one item scored 0.35 out of 1 due to parallel tool calls, policy violations and unhandled constraints. She recommends validating the dataset and the judge before changing the agent; after refining the rubric the score was still about 37%.
- 26:02 Demo Depth 200 · Novelty 2/3
Demo: project-level monitoring of agent health, quality trends and cost
A newly launched monitoring view covers health, quality and cost across all agents in a project, with a per-agent monitor as well. It shows runs, token usage, cost, policy violations, active agents and models, errors, latency and model usage, plus quality trends from evaluators such as coherence. In the demo an error spike is traced to a rate-limit issue; the cost view shows last month's and forecasted cost, budget trending, cost per agent, and token usage that can reveal low cache-hit rates, e.g. from adding timestamps to requests.
- 29:56 Recap Depth 100 · Novelty 0/3
From the inner offline loop to continuous evaluation in production
Divya recaps the baseline built so far and hands over to Ahmad. He calls offline iteration against the golden dataset the inner or closed loop, after which an agent meeting quality targets goes to production. Because user behaviour in production is unpredictable, for example attempts to book on someone else's behalf or find hidden flights, continuous evaluation on live traffic is needed.
- 31:48 New Depth 300 · Novelty 3/3
Decision Model 1.1: a non-chat model returning typed decisions and probabilities
Ahmad introduces Decision Model 1.1, a new Microsoft model for evaluations that does not produce natural language. It receives a state (query, agent response or full conversation) and typed questions in a JSON API request: Boolean true/false, choice (selection among options) and score (instructions plus criteria). For the sample state about a failed payment it returns urgency true, the billing team with 99.8% confidence and 'urgent' priority with a 77.8% score; it is fast, cheap and scalable but gives no explanation.
- 35:35 Demo Depth 300 · Novelty 2/3
Demo: continuous evaluation on live traffic and decision vs chat judge token cost
A continuous evaluation is created by selecting the agent and exact version, turn or conversation level, and a data source (synthetic, existing dataset, benchmarks, production traces by time range, or live traffic). Live traffic supports an hourly cadence and random or intelligent sampling, which avoids redundant traces. The judge can be a decision or chat model, and the same evaluators as offline should be used. Comparing runs, the decision model used 12 completion tokens versus about 1,100-1,200 for a chat model, a claimed 100-200x saving.
- 40:08 Demo Depth 200 · Novelty 2/3
Demo: Insights engine surfacing unknown production issues like currency mismatches
Insights addresses issues that existing evaluators do not cover while metrics look green. In the agent's Insights tab you configure a model (shown as GPT-6 Luna), select from eight suggested priority categories such as cost and tokens, hallucinations, tool failures and risk and compliance, add custom categories and instructions, e.g. watch for users gaming the booking system or ignore low-priority insights. Running in the background, it ranks insights high/medium/low; two found issues are unnormalised currencies for London-Stockholm flights and a $200 hotel cap breached because pounds were not converted to dollars.
- 43:26 Demo Depth 300 · Novelty 2/3
Demo: annotating insight traces and running an optimization loop to promote a fix
Insights link to the problematic traces, which can be annotated as bad behaviour with a natural-language explanation, e.g. that all prices should be converted to the local currency. An optimization run is then submitted, and the tab also suggests prompt changes. Instead of manual prompt tweaking and retesting, the optimization run takes the agent version and an optimization model (a frontier model is recommended), produces candidates, indicates the best one, and you promote it to production.
- 45:52 Closing Depth 100 · Novelty 0/3
Wrap-up: Foundry portal and observability documentation links
The speakers point to the Foundry portal at ai.azure.com and the observability documentation covering building agents, evaluations, optimization and the continuous evaluation loop. They also mention additional on-demand observability sessions and close.
Announcements (9)
-
Tracing for external agents in Foundry observability
Agents hosted outside Foundry can send auto-instrumented traces to Foundry observability using the Microsoft OpenTelemetry distro library.
Speaker’s quote (at 06:08)
„As of today, it's generally available. So for this one, you just need to add Microsoft Hotel Distro Library, couple of lines of code“
-
Task-level evaluators
Lets you apply additional evaluation checks to a subset of traces that perform a specific task instead of a generalized evaluation.
Speaker’s quote (at 07:59)
„you can add task level evaluators. What this is, you can have a subset of traces that does a very specific task“
-
Voice evaluators
Evaluators that can be applied to voice agents to check their quality.
Speaker’s quote (at 09:50)
„We are also introducing voice evaluators. So if you have any voice agents, you can start applying evaluators and checking the quality.“
-
Rubric evaluators for safety
Generates safety evaluators specific to an agent from its context, extending the existing rubric evaluator for quality.
Speaker’s quote (at 10:16)
„Now we are announcing the availability of rubric evaluators for safety. So you can do the same and apply safety evaluations that are specific for your agent.“
-
Boolean scoring for evaluators
Adds pass/fail Boolean scoring as an alternative to Likert-scale scoring.
Speaker’s quote (at 10:44)
„In addition to Lickhart, we are also providing Boolean support, which is additional announcement for this time.“
-
Expected outputs (ground truth) on trace annotations
Lets reviewers add the expected output to a trace so it can be used as ground truth in a golden dataset.
Speaker’s quote (at 13:31)
„most important that we launched is ability to add expected outputs, which is ground truth.“
-
Rubric-based test cases in datasets
A model adds rubric-based test cases as metadata to rows when traces are sent to a dataset.
Speaker’s quote (at 17:14)
„here is a new option where I want rubric-based test cases added to my data set. So I add a model that helps add these test cases.“
-
Agent monitoring across the project portfolio
A project-level dashboard showing health, quality and cost of all agents in one place.
Speaker’s quote (at 26:02)
„We've launched a monitoring of your agents across your portfolio, across your project. So you can look at both the health and quality.“
-
Decision Model 1.1
A non-chat model for evaluations that returns decisions and confidence probabilities for typed questions about a submitted state.
Speaker’s quote (at 31:48)
„I want to walk you through a new model that Microsoft is providing for evaluations. This model is called the Decision Model 1.1.“
Demos (9)
-
Inspect traces of a travel-booking agent and annotate them with human feedback and ground truth for developers building context-aware agents.
Steps (6)
- Configure an agent with Web IQ web search, two MCP servers (flights, hotels) and a Foundry IQ knowledge base using GPT-4.1 with low reasoning effort over an Azure AI Search index and policy files.
- Send requests to the agent and open the traces navigation.
- Open a recent conversation and switch between trajectory, user and graph views; in trajectory view toggle between time and tokens per step.
- Click a trace to see input, output, instructions and metadata.
- Add feedback: mark it good or bad, add categories (e.g. hallucination), free-form comments and an expected output.
- Move through selected traces one by one to annotate them.
Prerequisites: A Foundry agent with tracing enabled and Application Insights connected; for the scenario, Foundry IQ knowledge, an Azure AI Search index and MCP servers.
-
Build a golden dataset for the travel agent from synthetic data and from annotated production traces.
Steps (7)
- Open the data navigation and choose to create a dataset (upload, from traces or synthetic generation).
- For synthetic generation, enter instructions describing tasks, personas and scenarios, select the agent (its details auto-populate), choose a generation model and the number of rows.
- Review a generated synthetic dataset with test-case descriptions and queries.
- Alternatively, filter traces that have feedback, select them and send them to a dataset.
- Create a new dataset or add to an existing one, give it a name and mark it as a golden dataset.
- Enable rubric-based test cases and choose a model to generate them.
- Open the golden dataset to review query, response with tool calls, user rating, expected ground truth and rubric metadata.
Prerequisites: An agent in Foundry; for trace-based datasets, traces with annotations and feedback.
-
Create an LLM judge tailored to the travel agent for quality and for safety.
Steps (7)
- Go to Evaluations > Evaluator catalog and optionally pick built-in evaluators (task completion, output quality, groundedness).
- Choose Create evaluator and enter a name.
- Select the type: quality or safety.
- Choose the scoring method: 1-5 scale or Boolean (pass/fail).
- Pick the model used to create the evaluator and the target agent.
- Optionally add production traces and context files (e.g. product specs), then generate the rubric.
- Review the generated dimensions (quality) or allowed/disallowed actions with scope, prohibited behaviour, definitions and examples (safety).
Prerequisites: A target agent in Foundry; optionally production traces and context files.
-
Score the current agent version against the golden dataset with the custom rubric evaluators before production.
Steps (6)
- In traces, open the Evaluation tab and choose Create with the agent selected.
- Choose individual turns or full conversations.
- Select an existing dataset and pick the golden dataset.
- Configure criteria and choose a judge model from a different model family than the agent.
- Set frequency to run once, review and submit.
- Open the evaluation run, compare safety and quality results and drill into a low-scoring item to read the failed rubric dimensions.
Prerequisites: A golden dataset and evaluators created in Foundry.
-
Use the monitoring dashboard to find operational and cost issues beyond answer quality.
Steps (6)
- Enable traces and metrics for the agents.
- Open the project-level Monitor dashboard (or select one agent in the drop-down or the agent-specific monitor).
- Review top metrics: runs, token usage, cost and policy violations.
- Check operational metrics: errors, usage, model duration, latency and model usage.
- Review quality trends from evaluators set across agents and click through an error spike to the traces (here a rate-limit issue).
- Open the cost section to see last month's and forecasted cost, budget trend and cost by agent, then drill into an agent's traces and token usage to spot cache issues.
Prerequisites: Traces and metrics enabled; evaluators configured for quality trends; optionally a project budget.
-
Classify a customer request for urgency, team routing and priority using the Decision Model.
Steps (7)
- In Foundry, select Decision Model 1.1 among the models.
- Enter a state containing the customer query.
- Add a Boolean typed question 'urgency'.
- Add a choice typed question 'team selection' listing candidate teams.
- Add a score typed question 'priority' with values routine, important and urgent and their descriptions.
- Inspect the JSON request format and run it.
- Review the returned decisions and confidence scores for each question.
Prerequisites: Access to Decision Model 1.1 in Microsoft Foundry.
-
Set up recurring evaluation of a production agent version on live traffic and compare judge cost.
Steps (8)
- Go to Evaluations and click Create evaluation.
- Select the agent and the exact version from the drop-down.
- Choose individual turns or full conversations (conversations require a conversation ID in traces).
- Select live traffic as the data source.
- Set the cadence (e.g. every hour) and choose random or intelligent sampling.
- Choose a decision model or chat model as judge and select the same evaluators used offline.
- Submit, then open the recurring evaluation in the Evaluation tab to drill into runs and scores.
- Compare completion tokens of the same evaluation run with the decision model and a chat model.
Prerequisites: A deployed agent version with production traces; evaluators defined offline.
-
Automatically discover production issues in a travel agent that evaluators did not anticipate.
Steps (6)
- Open the agent and select the Insights tab.
- Configure the model that analyses traces (shown as GPT-6 Luna).
- Select priority categories from the eight suggestions (e.g. cost and tokens, hallucinations, tool failures, risk and compliance) or create custom categories.
- Add custom instructions, e.g. prioritise users gaming the booking system or ignore low-priority insights.
- Save and let it run in the background.
- Review the ranked insights (high, medium, low) and their linked traces.
Prerequisites: Production (live traffic) traces for the agent.
-
Fix the currency-conversion issues found by Insights through a systematic optimization run.
Steps (6)
- Select the two related insights to fix.
- Open the linked traces and annotate each as bad behaviour with a natural-language explanation.
- Review the suggested prompt changes in the tab.
- Create an optimization run: choose the agent version to fix and an optimization model (a frontier model is recommended).
- When it completes, review the candidates and the indicated best candidate.
- Promote the best candidate to production.
Prerequisites: Insights configured on the agent with linked production traces.