Insights Business| SaaS| Technology Context Layers and What AI Agents Actually Need from a Database
Business
|
SaaS
|
Technology
•
Nov 18, 2026

Context Layers and What AI Agents Actually Need from a Database

AUTHOR

James A. Wondrasek James A. Wondrasek
Context Layers and What AI Agents Actually Need from a Database

You’ve probably decided what a context layer is by now. Within two weeks of each other in June 2026, Snowflake and Databricks both shipped one, and Microsoft’s Fabric IQ had already arrived on 22 million Power BI semantic models, so the easy conclusion is that a context layer is settled and the only question is which vendor to buy.

A context layer is the thing that stops an agent writing plausible-but-wrong SQL against column names it doesn’t understand, and the vocabulary has converged faster than the machinery underneath it. For the wider picture, see the consolidation-meets-agent overview.

What is a context layer, and why did Snowflake and Databricks both ship one within two weeks of each other?

A context layer is the governed layer that turns raw tables into meaning an agent can trust, holding metrics, definitions, relationships and permissions. Gartner describes it as a dedicated architectural component that curates, integrates and delivers the information agents need.

Snowflake shipped Cortex Agents and Cortex Sense, while Databricks shipped Genie, Genie Ontology and Genie Agents, as Zaimler’s account of the June 2026 announcements details. Microsoft’s Fabric IQ rounds out the picture. Two arch-rivals shipped the same capability within a fortnight, and differentiation has moved from storage and compute to context.

Both shipped layers sit on the same dependency, a governed catalog, and that catalog decision is covered here. A layer has to inherit permissions and lineage from that catalog, or it becomes a backdoor for agents, which is why the catalog question has to come first.

What is the difference between a semantic layer, an ontology and a context layer?

A semantic layer is metrics compiled to SQL, an ontology is a categorisation of the world, and a context layer is the broader governed layer that holds both plus unstructured knowledge. Vendors blur the three names on purpose. The semantic layer is the set of metric and dimension definitions, written as logic that compiles to SQL, governing access, transformations and materialisations. Palantir describes that categorisation as the digital twin of an organisation.

A context layer is the broader governed layer that gathers and refines everything between humans and agents, including the unstructured knowledge in docs, Confluence and Notion that a semantic layer ignored. See the workload-fit comparison for how Snowflake and Databricks implement them in practice.

What are the five mechanisms behind every context layer claim?

The five mechanisms behind every context layer, semantic layer or ontology are retrieve, rank, generate SQL, traverse and reason. Everyone selling you one of those is using the same words for different machinery, which is what makes the space hard to read. Zaimler’s breakdown walks through them in order of capability.

Retrieve is similarity search over text and metadata, the retrieval-augmented generation (RAG) and vector pattern. Rank scores candidate definitions by authority, popularity and freshness. Generate SQL annotates fields and joins so an agent can compose queries against governed tables. Traverse resolves entities and walks typed, multi-hop relationships, which most claim and few ship. Reason applies constraints and formal inference, which nobody ships today.

Which of the five mechanisms is running determines what the product can do.

Why is ranking retrieved context different from reasoning over it?

Ranking selects the most trusted pre-seeded definition, while reasoning derives an answer over a governed model, and that’s the difference that determines what a product can answer. A layer that returns the most trusted definition improves on similarity search, but it only selects a meaning that was already written down.

Ranking can only answer a question it has already been seeded with, because it returns the most trusted match from the prepared set. Reasoning works the other way, deriving an answer from a governed model even for a question nobody prepared. Most products rank and far fewer reason, which is why a demo full of pre-set questions proves only ranking. Snowflake’s and Databricks’ accuracy jumps (47% to 83% and 52% to 84.5%) are internal vendor benchmarks on undisclosed question sets, as Zaimler notes, and they measure a gain in grounding.

The measurable goal is grounding, the test Cube formalises: return the right number under the asker’s permissions and trace it to the definition that produced it. Reasoning needs a governed graph of metrics and relationships.

What does an AI agent actually need from a database, and why is that different from a normal application workload?

An agent needs state, memory and tool results persisted and reloaded across steps and sessions, a spiky, stateful and concurrent workload. Databricks proposes five criteria for judging a database that has to serve that agent workload, covering branch isolation, serverless scaling, hybrid search, ACID guarantees and unified platform access.

Branch isolation matters first, because zero-copy branching lets you test an agent against real production data without it being able to modify production. Serverless scaling ties cost to usage, which suits an agent’s spiky traffic. On the query side, hybrid search combines vector, keyword and metadata matching in one go, while ACID guarantees stop one agent’s write from overwriting another’s when they share data. All of that depends on unified platform access, which keeps operational writes and analytical reads on the same data with no separate ETL pipeline between them.

A dashboard issues predictable, read-heavy SQL patterns, while an agent interleaves reads and writes within a single task as hundreds of other agents do the same. Consolidation versus query-in-place is the decision that shapes the platform.

How do you assess a context layer claim in a product demo before committing to a POC?

The way to separate a real context layer from a demo is an eight-question hard-slice checklist from Zaimler’s breakdown. Most demos run on well-defined, single-domain questions where nearly every platform looks strong, and platform differences only appear on hard cross-domain, multi-hop questions. A credible demo shows where its metrics came from and what happens on a question outside the pre-seeded set.

The eight questions expose which mechanism is running and whether the layer holds one governed notion of Customer across tables and sources. They then cover what happens on a multi-hop cross-domain question, whether the ranking measures correctness, whether the reasoning is visible, whether an expert confirms inferred definitions before agents rely on them, whether the layer federates across different clouds, and whether residency and portability stay under your control.

Governance is the final check to run. The VentureBeat survey found enterprises with a context layer report agent failures at more than twice the rate of those without, because the layer makes failures visible. Who owns that governance is examined in the Purview retirement piece.

Should you build a context layer yourself or inherit one from a platform?

Inheriting a platform’s layer is faster, but you inherit its definitions, governance and lock-in. Building your own buys portability at the cost of maintenance. The middle path is an open-source semantic layer such as Cube Core or the dbt Semantic Layer on your own catalog, with Open Semantic Interchange (Apache Ossie) as the portable spec.

Building is powerful but slow and prone to breaking at the integration points. Inheriting means Snowflake Cortex, Databricks Genie with Unity Catalog, or Microsoft Fabric IQ, each tied to its platform’s catalog and governance. Keeping definitions agreed and fresh is an ongoing requirement.

Who owns the metric definitions and whether they stay portable if the platform changes are the two deciding factors.

A context layer is a real and useful thing, but the same label covers different machinery. To buy one, watch which mechanism is running and judge the database by what your agent workload demands of it. For how this stage fits the full platform decision, see the wider consolidation-to-governance picture.

Frequently Asked Questions

Do I actually need a context layer, or can I just point my AI agent at the data warehouse?

You can, but you should not. Point an agent at raw tables and it writes plausible-but-wrong SQL against column names it does not understand, because it has none of a human analyst’s implicit context. A context layer supplies the governed metrics, definitions and relationships the agent needs to turn a question into a correct query. Skip it and you have automated guesswork, not an analyst.

Is a vector database the same thing as a context layer?

No. A vector database only performs retrieval, which is one of five mechanisms behind any context layer claim. Databricks itself describes vector search as a librarian who can only browse by what feels similar, never by an exact call number. A context layer is the broader governed layer that gathers and refines everything between humans and agents, including the metrics, relationships and permissions retrieval alone cannot supply.

Is it true that Snowflake and Databricks shipped the same context layer?

No. They shipped the same vocabulary within a fortnight in June 2026, but the machinery underneath is weighted differently. Snowflake leans on generate-SQL and ontology-grounded agents, while Databricks leans on retrieval with hybrid search and OntoRank scoring. The shared word conceals architectural differences, so do not buy on the label. Ask which of the five mechanisms is actually running.

Will a semantic layer guarantee my agent’s answers are correct?

No. A semantic layer lifts text-to-SQL accuracy dramatically, from under 20 per cent on raw schema to over 92.5 per cent in AtScale’s benchmark, but that is a grounding gain, not a correctness guarantee. Ranking and grounding improve how faithfully context is used; they do not make the agent reason. Correctness still depends on the governed definitions you feed it and on whether the product reasons or merely ranks.

Do I need a knowledge graph for my AI agent to work?

Not necessarily. Many context layers get useful results from retrieval and ranking alone, and a knowledge graph is really the instance layer that sits on an ontology’s schema to enable multi-hop traversal and reasoning. You need one when your questions span typed, multi-hop relationships that a vector index cannot follow. If your agent only answers single-hop questions over tables, a graph may be more machinery than you need.

Can an AI agent pull context from Confluence and Notion, or only from database tables?

Both. That is precisely the difference between a context layer and a narrower semantic layer. A semantic layer holds business-user-facing metrics compiled to SQL, while the context layer also gathers and refines unstructured business knowledge such as docs, Confluence pages and Notion notes. If you need your agent to answer from policy documents as well as governed numbers, you need the broader context layer, not just the metric definitions.

Is it true that buying a context layer will make my AI agents fail less often?

No, and the survey data is uncomfortable. A VentureBeat finding cited in this space shows enterprises that have shipped a context layer report agent failures at more than twice the rate of those without one. The lesson is that shipping a layer is not the same as making it trustworthy. Trust comes from grounding, governance and reasoning, not from ticking the feature box, so measure failure rates, not feature lists.

Can I reuse my existing BI semantic layer as my context layer?

Yes, and it is often the cheapest starting point. A semantic layer of business metrics, such as dbt Semantic Layer or Cube Core, already compiles to SQL and carries consistency guarantees, so it can be the metrics spine of your context layer. What it will not give you is the unstructured knowledge and relationship traversal of a full context layer, so you reuse it as a foundation, not a finished product.

Do I need a data catalog before I can deploy a context layer?

Yes. A context layer must inherit permissions, lineage and definitions from a governed catalog underneath it, or it becomes a backdoor through which agents read what they should not. Snowflake’s layer sits on Horizon, Databricks’ on Unity Catalog, and the build-your-own path pairs Cube or dbt with DataHub or OpenMetadata. Stand the catalog up first and the context layer is a thin governed layer on top.

What is Open Semantic Interchange (OSI / Apache Ossie), and why should I care?

Open Semantic Interchange, or Apache Ossie, is the vendor-agnostic specification for swapping semantic models between tools, released in version 1.0 in January 2026 and backed by Snowflake, dbt Labs, Salesforce and more than 30 partners. You care because it is the portability escape hatch: if you build on an open semantic model, you can move your metric definitions between platforms rather than being locked to one vendor’s definitions.

What does a grounded answer actually mean?

A grounded answer is one you can trust because it is traceable. Cube’s grounded-answer test says an agent has grounded its result when it returns the right number under the asker’s permissions and can point back to the exact metric definition that produced it. It is the opposite of a plausible-sounding number fetched from an unattributed vector match, and it is the single most useful trust check you can run.

AUTHOR

James A. Wondrasek James A. Wondrasek

SHARE ARTICLE

Share
Copy Link

Related Articles

Need a reliable team to help achieve your software goals?

Drop us a line! We'd love to discuss your project.

Offices Dots
Offices

BUSINESS HOURS

Monday - Friday
9 AM - 9 PM (Sydney Time)
9 AM - 5 PM (Yogyakarta Time)

Monday - Friday
9 AM - 9 PM (Sydney Time)
9 AM - 5 PM (Yogyakarta Time)

Sydney

SYDNEY

55 Pyrmont Bridge Road
Pyrmont, NSW, 2009
Australia

55 Pyrmont Bridge Road, Pyrmont, NSW, 2009, Australia

+61 2-8123-0997

Yogyakarta

YOGYAKARTA

Unit A & B
Jl. Prof. Herman Yohanes No.1125, Terban, Gondokusuman, Yogyakarta,
Daerah Istimewa Yogyakarta 55223
Indonesia

Unit A & B Jl. Prof. Herman Yohanes No.1125, Yogyakarta, Daerah Istimewa Yogyakarta 55223, Indonesia

+62 274-4539660
Bandung

BANDUNG

JL. Banda No. 30
Bandung 40115
Indonesia

JL. Banda No. 30, Bandung 40115, Indonesia

+62 858-6514-9577

Subscribe to our newsletter