Level 2: AI layer
The semantic catalog: what the AI should see instead of your schema.
Point an AI tool at the warehouse and it reads hundreds of cryptic columns. Point it at a catalog and it reads a few governed metrics, their dates, their dimensions and the rules.
On this page
An AI tool can only work with what it's shown. Show it your warehouse schema and it sees columns named amt, dt1 and flag_2, with no idea which one is revenue, which date counts, or which tables must never be joined. Every question becomes a guess about meaning.
A semantic catalog is the alternative: a short, reviewed description of what can be asked. It's guide 4's naming and description pass, aimed at the model instead of a person scrolling a field list.
What the model sees is the prompt
Diagram · The semantic catalog: what the AI should see instead of your schema
Everything a model reads competes for its attention. Raw DDL tells it what columns exist. It doesn't say that amount means two different things in two tables, that reporting_date and accounting_date answer different questions, or that a period is required. A catalog says exactly those things, and leaves out the staging tables, load timestamps and helper columns nobody should query.
Write the catalog
For one subject area, write: each governed metric with a one-line meaning and its date, the dimensions it can be cut by, and one rule per line. Here's the full catalog for the example model:
Metrics (name: meaning; date; dimensions) - net_revenue: recognized revenue incl. adjustments; reporting_date; customer, product, month - net_revenue_accounting: the same entries by accounting date; accounting_date; customer, product, month Rules - A period [start, end) is required. There is no default period. - Contract terms are never revenue. Never sum a term amount as revenue. - Each answer comes with a status. Report the status; never fill in a withheld value.
Every line traces back to something earlier in this series: the concept cards from part 1, the typed keys from part 2, the contract and statuses from part 3. The catalog doesn't invent meaning. It packages meaning that was already reviewed and signed.
Two habits keep it useful. Name metrics so the date is part of the name when there's more than one, so the model never has to guess. And write rules as instructions the model can follow (“never sum a term amount as revenue”), not as background it might ignore.
Small at scale, not always small
It's tempting to sell the catalog as a way to send fewer tokens. On a tiny model it isn't. I counted both versions with tiktoken:
| What the model reads | Tokens |
|---|---|
| Raw DDL, the four example tables | 68 |
| Catalog for the example, above | 119 |
| Raw DDL, made-up warehouse: 40 tables, 840 columns | 10,100 |
| Catalog for that warehouse: 12 metrics, 15 dimensions, plus the tool schema | 550 |
Counted with tiktoken (o200k_base) on example data. Other tokenizers and tool formats give different counts. Example data, not from a client.
On the four example tables, the catalog is longer than the DDL. Four short CREATE TABLE statements don't take many tokens. The catalog takes more because it carries the meaning the DDL leaves out.
At warehouse scale the picture flips. Raw DDL grows with every column: about 12 tokens per column in the made-up warehouse I generated. The catalog grows with the number of governed metrics and dimensions you choose to expose, not with the size of the warehouse. 840 columns came to 10,100 tokens; the catalog for the same made-up warehouse, with its tool schema, came to 550.
Those are my counts on made-up DDL with synthetic names. Real DDL with longer names and comments can run to more tokens per column. Measure your own before you quote a number. Part 8 goes through where the rest of the tokens go.
Where it lives in Power BI
Power BI groups its controls for this under Prep data for AI Preview. Three pieces map onto the catalog:
- AI data schema. A subset of fields for Copilot to prioritize. That's the catalog's metric and dimension list.
- AI instructions. Business context and rules written on the semantic model. That's the catalog's rules.
- Verified answers. Approved visuals tied to trigger phrases. That's tier 0 in part 5.
One prerequisite to watch: these features require Q&A to be enabled on the semantic model, and Microsoft has announced that Q&A experiences are going away in February 2027. Check the current docs before you build a process around it.
In dbt, the semantic models and metrics from parts 2 and 3 already hold the catalog: names, labels and descriptions that tools reach through the Semantic Layer or the dbt MCP server. Write those descriptions for a reader who has never seen your warehouse.
Test what it can't see
Microsoft's own test for the AI data schema is a good habit anywhere: ask a question about a field you left out. Copilot shouldn't answer it. Then ask about a field you kept, and it should.
I add one more: ask the reference question from part 3, April 2025 revenue for C-001 and P-01, and confirm the answer is 100.00, using the reporting date. If the tool picks the accounting date, the catalog didn't make the default clear enough.
What I check before an AI tool reads a model
- Is there a written catalog of governed metrics, each with a meaning and a date?
- Are the rules written as instructions, one per line?
- Are staging tables, keys and helper columns left out of what the tool can see?
- Does a question about an excluded field get no answer, and the reference question get 100.00?
Show the model the meaning, not the plumbing.
Related
- All 8 parts of this seriesSeries overview
- All the diagrams in one placeDiagrams
- Level 1: Model the data (7 guides)Read level 1
- The 4-question checklistChecklist