AI agents often fail inside a company for a simple reason: they do not know the company's language. Your data holds acronyms such as NRR, terms such as "net revenue" that mean different things to Finance and Sales, and links between systems that no column name shows. Snowflake and Databricks now fix this in the same way. They read the queries and dashboards that people already use to guess what each term means. A named owner approves each meaning. One shared object then computes the number. This post explains the problem, compares both designs and their published tests, and shows how to apply the idea when your data sits in many systems.
Why enterprise AI stalls on company language
A language model knows general English. It does not know how your company uses words. Three gaps cause most wrong answers.
| Gap | Example | What goes wrong |
|---|---|---|
| Acronyms and terms | "NRR" has no single column. A system must guess the formula, the cohort window, and which rows count as expansion and which as new business. | Each tool guesses differently. |
| Definitions | "Net revenue" means recognized revenue after refunds to Finance and bookings net of discounts to Sales. | The agent picks one and sounds certain. |
| Relationships | Two tables can join in more than one way. A category such as "electronic components" sits above capacitors, resistors, and chips. | A wrong join double-counts. A question about the parent category misses the children. |
Snowflake's engineers make the same point: enterprise data is full of meaning that never appears in a schema (Snowflake, Ontology-grounded Reasoning with Cortex Agents). The dbt Labs case study on Fanatics adds a plain example. An agent can guess what a column called "revenue" means, but it does not know how Fanatics defines revenue (dbt Labs, Fanatics case study).
This is the part of enterprise adoption that is slow and hard. The answers are not in a manual. They sit in analysts' heads, in old dashboards, and in saved queries. Teams that adopt AI agents find that the model is ready before the company's language is written down.
The data from Databricks shows the size of the effect. In its test, an agent with raw tables answered 47% of definition questions correctly. With a governed layer of approved definitions, it answered 100% correctly. In the same test, 10% of the tables-only answers used a decoy table (Databricks, Genie One Accuracy). The test is the vendor's own and uses a fictional insurer, so read it as a direction, not a guarantee. The sections below explain how each vendor writes the company's language down.
The problem: one term, several definitions
Take the term "net revenue" again. In Snowflake's example, Finance means recognized revenue after refunds and discounts. Sales means bookings net of discounts at signing. Both are correct. A new employee learns which one to use by asking a colleague. An agent cannot ask a colleague, so it may pick one and sound certain (Snowflake, Business Ontology).
Fanatics Betting & Gaming had the same problem at scale. The dbt Labs case study says Gross Gaming Revenue (GGR) could have 3 different definitions, depending on whether trading, finance, or commercial teams answered. Each team had a defensible calculation (dbt Labs, Fanatics case study).
Snowflake lists four ways the usual starting setup fails. The setup is table definitions, column comments, and a few sample queries (Snowflake, You Need a Semantic Model).
| Failure | What happens |
|---|---|
| Metric drift | Two teams define "active user" differently, and nobody notices until a report shows two numbers. |
| Join ambiguity | Two join paths exist. A small difference changes the grain and the total. |
| Concept mismatch | "NRR" maps to no single column, so each tool invents its own logic. |
| Tool duplication | The same logic is rebuilt in each BI tool, each script, and each prompt. |
What Fanatics did
Fanatics fixed the definitions before it built agents. The dbt case study describes four moves.
- Move logic out of dashboards. About 200 Tableau dashboards held custom SQL and their own business logic. Fanatics moved enterprise KPIs into governed gold marts (the final, business-ready tables in a bronze, silver, gold layout).
- Let teams build on the marts. A central analytics engineering project provides shared data products. Finance, regulatory, and VIP teams build in their own dbt projects on top. The platform has about 4,000 models across 15+ projects and about 150 contributors.
- Add Snowflake semantic views on the marts. Fanatics added sample values, synonyms, verified queries, and business definitions. Metadata from dbt flows into Snowflake.
- Evaluate before release. Fanatics targets scores above 90% on pre-production evaluations. The company reports about 35,000 AI interactions a month through Snowflake agents and tools such as Slack.
Treat the 90% as a release target, not a measured production result. The stack in the case study is dbt and Snowflake.
The Databricks equivalent of this stack is the same dbt-and-gold-mart base, Unity Catalog Metric Views for reusable metrics, and Genie Agents for natural-language questions. That mapping is ours. Fanatics did not run it.
How Snowflake infers business logic from query history
Snowflake's Semantic View Autopilot turns existing SQL into suggestions for a semantic model. Two Snowflake engineering posts explain the method: Mining Query History to Build Better Semantic Models for AI (April 23, 2026) and the semantic model case (March 26, 2026).
The system works in four steps.
- Index the history. Snowflake built an inverted index over query history, keyed by the tables each query touches. The index covers billions of executed queries from the last 90 days across all Snowflake deployments. Sources include Snowsight worksheets, dashboards, Tableau, and Power BI. For one semantic model, the index narrows hundreds of millions of executions to hundreds or thousands of relevant queries, within seconds.
- Filter to the model. A query becomes a suggestion only if it uses tables and columns already in the semantic model. A query that touches one unmodeled column is dropped.
- Separate signal from noise. A
SELECT *preview teaches nothing. For verified queries, the system normalizes queries so that only the literal values differ, counts repeats, and scores analytical depth (aggregations, joins, window functions). For metrics, facts, and filters, it extracts the reusable expressions inside each query and groups equivalent logic. A filter that appears in 500 queries ranks above one that appears in five. For relationships, it combines join frequency with primary keys and column cardinality. - Translate to business language. An LLM writes a name and description for each suggestion, such as a name of
NET_EXPANSION_MRRfor a recurring expression. A person reviews it.
Snowflake gives four practical limits. Suggestions need existing query history, so a brand-new view has none. Suggestions follow the access of the user who generates them. The system cannot capture unwritten tribal knowledge, so reviewers must add synonyms and context. Reviewers must also reject one-off filters that are not true business rules.
The scale figures (billions of queries, 90 days) show how much history the system reads. They measure how much history the system reads, not how accurate the answers are.
How Snowflake models approved meaning
Autopilot infers. Snowflake's newer Business Ontology holds what people approve. It is in private preview as of the November 3, 2026 post, and product behavior may change (Snowflake, Business Ontology).
| Element | What it is |
|---|---|
| Concept (node) | A term, metric, entity, policy, dimension, or measure. Each concept has one home domain. |
| Domain | A container with an owner. Names are domain-qualified, such as Finance.Net Revenue and Sales.Net Revenue, so teams use the same words without overwriting each other. |
| Edge | A typed relationship from a short fixed set: IS_A, HAS_PART, DERIVES, MEASURES, APPLIES_TO, EQUIVALENT_TO, RELATED_TO. |
| Representation | A reference from a concept to the asset that implements it, such as a semantic-view metric. It does not run the metric. |
Three design rules matter for any platform.
- The domain steward approves. New concepts start as drafts. Changes to an approved concept appear as proposed edits. Agents keep the approved version until a steward accepts the change. An account administrator is not automatically the approver.
- The ontology stores a formula as written and never runs it. A semantic view remains authoritative for any number it covers. The agent can compare the view's metric with the ontology formula as a cross-check.
- Automation gives evidence, not proof. Matching names or lineage do not show that two assets mean the same thing. A steward decides.
Snowflake also describes Cortex Sense, a discovery layer that infers context from schemas, query patterns, dashboards, and transformation logic. Snowflake says it is coming to public preview. A builder can promote a Sense finding into the ontology as a draft for review.
In the Snowflake example, an agent finds two approved definitions of net revenue and asks which one the user means. After the user picks Finance, the agent states the definition, the asset that computed the number, and the exclusions (intercompany invoices and test accounts). Snowflake suggests labeling each number as governed (from a semantic-view metric), derived (calculated from governed parts), or exploratory (from ad hoc SQL).
How Databricks combines inferred and approved context
Databricks groups its approach under Genie Ontology. The implementation guide (September 1, 2026) says Genie combines modeled semantics with context learned from governed tables, queries, dashboards, notebooks, and other supported assets. Three Unity Catalog objects carry the approved part.
| Object | Job (Databricks wording) |
|---|---|
| Metric Views | Define measures and dimensions "once, as governed code". Start with critical KPIs. |
| Pages | Capture shared business terms and definitions. Each Page lists the authoritative assets tied to the concept. |
| Domains | Group assets into business-aligned collections so context stays scoped. |
A separate post on Pages (September 22, 2026) says Pages are in Beta. Genie Code can draft a Page from attached sources, and bulk import can bring in text from Confluence, Slack, Google Docs, or GitHub through MCP.
The conflict rule is the key point. Genie ranks context by authority and relevance. Because Pages are human-asserted and reviewed, they carry more authority than inferred context when the ontology must resolve a conflict. Certified and widely used assets also rank above unvetted ones.
Databricks presents a six-layer maturity model. It calls the layers progressive practices for building trust over time, not prerequisites.
| Layer | Practice |
|---|---|
| 0 | Get the data foundation right for agents |
| 1 | Enrich metadata |
| 2 | Model the business with a semantic layer |
| 3 | Curate context-rich assets |
| 4 | Build the governance layer |
| 5 | Evaluate and improve |
Databricks advises rolling out one domain at a time rather than modeling the whole business first.
What the benchmarks show
Both vendors ran their own tests on their own products. Neither test is independent, and both use small or fictional data. Read the numbers as directional evidence.
Databricks: governed context raises accuracy
Databricks tested Genie One on 125 questions about a fictional commercial auto insurer (Databricks, Genie One Accuracy, November 19, 2026). Each question had an expected answer computed independently in SQL. Each ran three times. Four Genie Agents (Finance, Reserving, Underwriting, Claims) shared the same tables.
| Setup | All 125 questions | 31 definition questions |
|---|---|---|
| Tables only | 64% | 47% |
| Curated agents | 83% | 69% |
| Governed layer, no agents | 83% | 100% |
| Curated agents and governed layer | 95% (93-95% across two runs) | 100% |
The governed layer added 19 points over raw tables (83 minus 64). Adding it to curated agents added 12 more points (95 minus 83). The two layers fix different problems. The governed layer fixes definitions. The agents fix access to team documents. Without the agents, document questions fell back to the tables-only level, because the agents were the only route to those documents.
One failure shows why definitions must not live only inside an agent. When Genie One answers from its own context, it does not inherit the instructions inside each agent. Those apply only when it routes the question to that agent. With curated agents alone, Genie One answered about four in ten definition questions itself and got most of them wrong. Questions routed to an agent were 93% right. Questions answered directly were 34% right. Routing was not deterministic: in a rerun, routing to agents was 74% in one run and 19% in the other. With the governed layer in place, both paths were 100% right on definitions.
Other facts from the post: planted decoy documents did not change any answers, and certification alone did not raise accuracy. A smaller retail check showed the same pattern.
Snowflake: a graph helps when the question needs hierarchy
Snowflake tested ontology-aware Cortex Agents on a highly simplified biomedical set (Snowflake, Ontology-grounded Reasoning with Cortex Agents, May 25, 2026). The data joined the Cell Ontology (33,651 terms) with PRISM drug data (4,518 drugs, 578 cancer cell lines, over 2.6 million measurements). The team wrote 22 hard questions. Each agent ran five times.
| Agent setup | Tools | Mean score (of 2.0) | Success |
|---|---|---|---|
| Semantic view only (baseline) | 1 | 0.93 | 50.0% |
| Baseline plus knowledge graph | 7 | 1.14 | 60.0% |
| Baseline plus GraphRAG | 2 | 1.38 | 70.0% |
| GraphRAG plus term mappings | 2 | 1.55 | 78.2% |
The best setup gained 28.2 points over the baseline (78.2 minus 50.0). GraphRAG here means a precomputed profile for each concept (name, definition, synonyms, neighbors, and data from descendants), indexed for search. The simpler two-tool setup beat the seven-tool graph setup, and showed the lowest run-to-run variance. The hand-written term mappings gave the highest peak accuracy and the highest variance. Snowflake says fixing the data layer first captured most of the gain, and that mappings should stay thin.
Snowflake calls the benchmark directional. In our reading, a graph helps with hierarchy and synonyms. It does not settle conflicting metric definitions.
The shared pattern
The two vendors differ in names and agree on structure.
| Layer | Snowflake | Databricks | Fanatics (dbt and Snowflake) |
|---|---|---|---|
| Governed computation | Semantic Views | Metric Views | Gold marts, then semantic views |
| Approved meaning | Business Ontology (private preview) | Unity Catalog Pages (Beta) | Business definitions in dbt, carried into Snowflake |
| Scope | Domains, nested | Domains, sub-domains | Separate dbt projects per team |
| Inference | Autopilot, Cortex Sense | Genie Ontology learning | Not described |
| Examples for the agent | Verified queries | Example SQL, trusted queries | Verified queries |
| Quality check | 22-question benchmark | 125-question benchmark | Target above 90% before release |
Both vendors also point to a shared format. Snowflake notes that Open Semantic Interchange (OSI) is a standard for portable semantic definitions across BI and AI tools. The goal is to define a metric once and have each adopting tool render it correctly.
Snowflake also lists formal industry ontologies a company may already own: SNOMED CT and the Gene Ontology in life sciences, GS1 in retail and supply chain, and FIBO in financial services. These are the kind of assets a graph layer can use.
Why one platform is not enough
Both vendor designs assume the data sits in their platform. Many companies do not work that way. A typical large company has a warehouse on one vendor, a lakehouse on another, SaaS systems for sales and support, and documents in shared drives. Each platform's inference engine reads only its own query history and dashboards.
A hypothetical example shows the gap. A company keeps orders in Snowflake, contract terms in Databricks, and tickets in a support tool. "Customer" means an account in one system, a billing entity in another, and a contact in the third. Each platform's ontology is strongest on its own assets. If no one owns the definition across all three, each agent can give a correct answer inside its own platform and a different answer from its neighbor.
The vendors' own advice points to the fix. Databricks found that logic left inside one agent is missed when another path answers. Snowflake keeps the ontology formula and the semantic view metric separate on purpose. The approved definition needs a home that is not tied to one agent or one engine.
How to apply this in your company
Use this sequence. It follows the one Fanatics used.
- Pick one metric that two departments report differently. Choose one that a leader cares about, such as GGR, net revenue, or active customer.
- Collect the existing formulas. Pull them from dashboards, saved queries, and query history. Use platform tools such as Autopilot where they apply. Write down who owns each version.
- Settle one approved definition per domain. If two teams mean different things, keep two concepts with two owners and link them. If they mean the same thing, link them as equivalent.
- Implement the number once per platform. Use a semantic view, a metric view, or a dbt model. Record which asset implements each concept.
- Make dashboards and agents use that object. Use agent instructions to teach when to use a metric. Do not use them to define the metric a second time.
- Build an evaluation set from real questions. Include definition questions, ambiguous terms, and questions that need documents. Run it on each platform and each agent path, not only the main one.
- Add a graph only when a real question needs it. Hierarchy questions, such as "all electronic components", are the case. A multi-system estate alone is not a reason.
- Review on change. If a formula changes in the ontology or in the implementing asset, route it to the steward.
The pattern is the wrong choice in two cases. If one team owns one warehouse and a short list of metrics, a governed semantic view alone may be enough. If your definitions are still being argued in meetings, agree on them first. A tool cannot choose between two defensible definitions. Snowflake says the same: a steward decides.
If your definitions sit in more than one platform, talk to an OpenNash forward-deployed engineer before you build agents on top of them. We start with one disputed metric.
For related work, see our guides on context engineering for agents, data agents on BigQuery, dbt, and Airbyte, and production evals for agentic systems.
Get one metric right across your data sources
Agents give trusted answers only when every system behind them uses the same definition of the business. OpenNash puts forward-deployed engineers on your team and works with Fortune 2000 companies. A targeted 4-12 week engagement on one metric follows these steps.
- Find the disagreement. We choose one metric that two departments report differently and collect every formula in use across your warehouses, lakehouses, dashboards, and SaaS tools.
- Mine and reconcile. We use query history and dashboards to find how people calculate it, and bring owners together to approve one definition per domain.
- Connect the sources. We link the approved definition to the implementing asset on each platform, whether Snowflake, Databricks, or another system.
- Build evals first. We write a test set from your real questions and run it on every agent and dashboard path before release.
- Ship with controls and train the team. We add review rules for definition changes, cost limits, and handover training.
At the end, you own the definitions, the connections, the evaluation set, and the review process. Because the definitions live outside any one agent, you can change models or platforms without redefining them.
Book a call with an OpenNash forward-deployed engineer or email us at hello@opennash.com. The first session maps one disputed metric to a business outcome you can measure, such as hours saved or faster reporting cycles.