Create a benchmark to test your AI
You can use a benchmark to measure how accurately AI answers questions about your semantic model. You ask business questions through the AI you choose, and you get a score for how many answers match the correct answers computed from your own data.
You can also benchmark a lakehouse or a warehouse, answered by a Fabric data agent or by your own AI. See Create a benchmark for a lakehouse or warehouse.
You can run a benchmark to:
- Set a baseline before you turn on Copilot or share a data agent.
- Confirm that a round of curation made more answers correct.
- Compare a generic AI agent with Copilot or with your own data agent.
- Measure how accurately Claude answers, and which help from BI Pixie improves its answers.
- Find the parts of a semantic model that produce unreliable answers.
With an AI Readiness assessment, you learn how well a semantic model is prepared for AI. With a benchmark, you learn what AI actually answers from it.
Prerequisites
- A Contributor role or higher on the semantic model's workspace. BI Pixie queries the semantic model with your identity.
- A Fabric capacity, if you test Copilot or a Fabric data agent. A generic AI agent needs no Fabric capacity. Claude needs no Fabric capacity to answer either, and a run of Claude in BI Pixie needs a Claude API key saved in AI setup. See Choose the AI to test.
- Optionally, your AI, set up in AI setup: AI run by BI Pixie, the BI Pixie data agent (recommended), Microsoft Foundry, OpenAI, or Anthropic. With your AI, you get:
- Questions worded the way people ask them, and question variations.
- Business domains detected from your AI Instructions.
- A second opinion on every answer.
- The BI Pixie Dashboard, only if you test a Fabric data agent or your account has data residency turned on. See Set up BI Pixie Dashboard.
For the number of benchmark runs on each plan, see Benchmark runs by plan.
Create a benchmark
To create a benchmark for a semantic model:
- Open your BI Pixie item in Microsoft Fabric, and then select AI Readiness.
- Select New benchmark, and then choose the workspace and the semantic model. What do you want to benchmark? starts on A semantic model. To have the semantic model chosen for you, select New benchmark from the menu on the semantic model's row in Your semantic models, or on the semantic model's own page.
- Choose the AI that answers the questions. See Choose the AI to test.
- Optionally, change the strategy: how many questions, which period, and how demanding. See Set the benchmark strategy.
- Select Propose fields, and review the fields and report visuals the questions will be built from. See Review the proposed fields.
- Select Generate questions, and review each question and its correct answer. See Review the questions and answers.
- Select Run benchmark, and read the result. See Run a benchmark and read the results.
Your work is saved as you go. If you leave before you run the benchmark, you see a draft line on the semantic model's row, such as Draft: 14 questions saved 3 days ago, and a Resume button.
Create a benchmark for a data agent grounded on a lakehouse or warehouse
You can create a benchmark for a Fabric data agent that is grounded on a lakehouse or a warehouse. The data agent answers the questions. BI Pixie calculates each correct answer from your own data in the lakehouse or warehouse with a read-only SQL query. A lakehouse or warehouse becomes a tracked item when a benchmark of it runs, as a semantic model does.
Before you start, check that you have the following:
- Permission to read the lakehouse or warehouse through its SQL endpoint. BI Pixie queries it with your identity.
- Permission for BI Pixie to read the lakehouse or warehouse on your behalf. Microsoft lists this permission as Azure SQL Database. The first time you run a benchmark of a lakehouse or a warehouse, select Grant access and run again, and then allow it. Each person allows it once, for themselves.
- A published data agent in a workspace on a paid Fabric capacity, F2 or higher, or P1.
To create a benchmark for a data agent grounded on a lakehouse or warehouse:
- Open your BI Pixie item in Microsoft Fabric, and then select AI Readiness.
- In Your data agents, select the data agent's row to open its page.
- Select New benchmark. If the data agent is grounded on more than one source, choose the lakehouse or warehouse in Which data should this benchmark ask about? A benchmark asks about one source at a time.
- On the setup card, check what the benchmark asks about, where the questions come from, how the correct answers are calculated, and which capacity runs the queries.
- Select Propose questions, and review each question and its correct answer. To see or change the SQL query behind a correct answer, select Edit the query. You can also add your own questions. See Review the questions and answers.
- Select Run benchmark, and read the result. See Run a benchmark and read the results.
BI Pixie builds the questions from what the data agent describes about the lakehouse or warehouse: its description, its instructions and its example queries. When a Direct Lake semantic model is built on the same lakehouse or warehouse and its reports have Pixies, BI Pixie favors the fields that report users use most, and notes this on the setup card.
When the data agent describes nothing about the lakehouse or warehouse, you can have BI Pixie propose questions from the tables and columns of the lakehouse or warehouse. To do that, select the button that starts with Read the schema of and names the lakehouse or warehouse. You can also select Write your own questions.
When the data agent reads a lakehouse or warehouse directly and a semantic model is built on the same data, BI Pixie recommends grounding the data agent on that semantic model as well. You can run the benchmark with or without the semantic model.
Create a benchmark for a lakehouse or warehouse
You can create a benchmark about a lakehouse or a warehouse itself, with or without a data agent. A Fabric data agent that uses the lakehouse or warehouse can answer the questions, or your own AI can, as a generic AI agent that writes one read-only T-SQL query for each question. BI Pixie calculates each correct answer from the lakehouse or warehouse with a read-only SQL query. A lakehouse or warehouse becomes a tracked item when a benchmark of it runs, as a semantic model does.
You need the same permissions as for a data agent grounded on a lakehouse or warehouse. A data agent also needs a paid Fabric capacity; a generic AI agent doesn't.
To create a benchmark for a lakehouse or warehouse:
- Open your BI Pixie item in Microsoft Fabric, and then select AI Readiness.
- Select New benchmark. In What do you want to benchmark?, select A lakehouse or warehouse.
- Choose the workspace, and then choose the lakehouse or warehouse in Lakehouse or warehouse.
- Choose the AI that answers the questions. BI Pixie lists the data agents that use the lakehouse or warehouse; when several do, pick the one to test. When none does, a generic AI agent can answer instead. Microsoft Copilot is not offered for a lakehouse or warehouse.
- Select Propose questions, and review each question and its correct answer. To see or change the SQL query behind a correct answer, select Edit the query. You can also add your own questions. See Review the questions and answers.
- Select Run benchmark, and read the result. See Run a benchmark and read the results.
Without a data agent, BI Pixie proposes the questions from the tables and columns of the lakehouse or warehouse. When a Direct Lake semantic model is built on the same lakehouse or warehouse and its reports have Pixies, BI Pixie favors the fields that report users use most. BI Pixie leaves out a proposed question whose correct answer it cannot calculate. When that leaves fewer questions than you chose, a note says how many BI Pixie wrote.
Start a new benchmark from a data agent
You can open a data agent's benchmark from the new benchmark screen, without going to the data agent's page first. The data agent must already be assessed by BI Pixie. See Data agent assessments.
- Select New benchmark, and choose the workspace that holds the data agent.
- Select Start from a data agent instead, and then choose the data agent in Data agent.
- If the data agent is grounded on more than one data source, choose one in Which data source of this data agent do you want to benchmark?
- Select Continue. The data agent's benchmark opens with its saved questions, as it does from the data agent's own page.
To go back to the workspace and source pickers, select Back to the source choice.
Open a saved benchmark
Each semantic model has one saved benchmark. On the semantic model's row in Your semantic models, or on its page:
- To repeat the benchmark with the same questions, select Run benchmark on the row. You see what will run, and you can start it with Run benchmark.
- To change the questions of a benchmark that has run, select Run benchmark on the row, and then select Change the questions.
- To continue a benchmark you saved and haven't run, select Resume benchmark, or Resume if the semantic model also has runs. Your saved questions open with the strategy and the proposed fields closed above them.
- To build a different benchmark, select New benchmark or Start over. You start from BI Pixie's default strategy. Your saved benchmark is replaced only when you generate new questions, and you're asked to confirm first. To go back to it, select Open the saved benchmark.
- To follow a run that's underway, select View progress.
Considerations and limitations
- You can run one benchmark on a semantic model at a time.
- To use a benchmark in an A/B test, create it for a semantic model.
- You start every benchmark run yourself, because BI Pixie asks a live AI real questions during each run. On the Enterprise plan, you can schedule AI Readiness assessments. See Schedules.
- With data residency turned on, results are written to your own Fabric lakehouse, so the BI Pixie Dashboard must be installed before any benchmark can run. See Data Residency (OneLake).
- You can run the same benchmark, with the same settings and results, in the BI Pixie Portal.