Skip to content

AI-first data architecture: the layers that make data ready for agents and RAG

What changes when the data consumer is an agent or a RAG system: data products, a semantic layer, governance across everything and why warehouse, lake and mesh are still the foundation.

Ramon Gomes 13 min read Level: Intermediate

Also available in: Español, Français, Português

"Put an AI chat on top of our data." The request sounds simple until someone asks what an "active customer" is. Finance counts who paid this month, sales counts who has a current contract, support counts who opened a ticket. The agent will answer with confidence, and it will be wrong for two of the three.

AI-first data architecture comes out of that problem. It isn't a product or a new database: it's a way of organizing data so a model can find it, understand it and use it with the right permissions, and so someone can explain afterwards where each answer came from. This article walks through the layers, compares them with the architectures that came before and ends with where to start. The details of each layer will get their own articles.

Four layers in panels with isometric objects: sources and platform with a server and database, data products with a parcel and owner, semantics with a book of definitions, and AI with a chip. Governance connects all layers through lineage, catalog, permission and quality. Two paths carry the question to the foundation and return an answer with sources.
AI sits at the top, but it depends on everything underneath. Governance isn't one more layer: it runs through all of them.

Why Data Became the Bottleneck

The numbers come from different places and point to the same spot:

  • In February 2025, Gartner published a survey of 1,203 data management leaders: 63% of organizations either did not have, or were not sure they had, the right data management practices for AI. The same release predicted that through 2026, organizations would abandon 60% of AI projects not backed by AI-ready data.
  • The 2026 State of Data Integrity and AI Readiness report, from Drexel LeBow and Precisely, surveyed 505 data and analytics leaders. Most say they have the infrastructure (87%), the skills (86%) and the data readiness (88%) for AI. Yet 42%, 41% and 43% name those same three items as their biggest obstacles. Confidence is high, and so is the struggle.

The contradiction makes sense. A database that works well for a dashboard may not work for an agent. The dashboard has an analyst who knows the context and knows that the column status = 3 means "canceled". The agent doesn't, unless someone wrote it down somewhere it can read.

Cartoon of an assistant robot trying to cook in a chaotic kitchen, with unlabeled jars, expired ingredients and torn recipes, while a person next to it labels the jars and arranges everything on a clean shelf
The assistant can be great. With unlabeled jars, the recipe still comes out wrong.

The Five Layers

1. Sources and Platform

Where data is born and where it's stored: transactional systems, events, files, third-party APIsContract that defines how one program asks another for data or actions: which endpoints to call, what to send and what comes back. On the web, usually HTTP with JSON., and the platform that brings it all together (a warehouse, a lake or a lakehouse). Nothing fundamental changes here. What changes is the bar: change data capture instead of nightly loads when the agent needs fresh data, and documents (contracts, emails, manuals) treated as first-class data, because that's what RAG feeds on.

2. Data Products

A data product is a dataset with an owner, a contract and guaranteed quality, built for others to consume. The idea comes from data mesh, and Zhamak Dehghani listed the qualities it needs: discoverable, addressable, trustworthy, with self-describing semantics and syntax, interoperable and secure (Martin Fowler, 2019).

For an AI, "self-describing" is the word that matters most. An agent handed a clientes_ativos_v3 table with no description will guess. One handed a product with a description, an owner, a definition for each column and the date of the last update has somewhere to start.

The contract format already has an open standard: ODCS (Open Data Contract Standard), maintained by the Bitol project under LF AI & Data, with an Apache 2.0 license.

3. Semantic Layer

This is the shared dictionary: what "revenue", "active customer" and "churn" mean, with the formula and filter for each metric, defined once and used by everyone. The dbt docs sum up the goal: centralize metric definitions to guarantee consistent access across every downstream tool.

For an AI, the semantic layer swaps guessing for lookup. Instead of the model writing SQL from scratch and hoping it gets the "active" filter right, it asks the semantic layer for the clientes_ativos metric, which already knows how to compute it. When relationships matter (who owns what, who supplies whom), knowledge graphs come in, with W3C standards like RDF and OWL, and techniques like Microsoft's GraphRAG, which uses a graph extracted from the documents to answer questions about the whole collection.

4. AI Layer

This is where the consumers live: RAG searching documents, agents calling tools, prediction models and the features that feed them (with feature stores like Feast). It's the most visible layer and the one that changes the most.

The architectural point is how it reaches everything else. Instead of each agent holding direct database credentials, access goes through well-defined, scoped tools. An MCPOpen protocol that standardizes how AI apps connect to external tools and data: a server exposes actions and the agent discovers and calls them. server that exposes "query metric" and "find contract" is one way to do it; the concepts are in the MCP concepts article. How a RAG project is organized on the inside is in RAG project structure.

5. Governance for AI-ready Data

It runs through every layer and answers four questions:

Question How it's answered Open tools
Where did this data come from? Lineage, from the source system to the answer OpenLineage
What does it mean and who owns it? Metadata catalog DataHub, OpenMetadata, Unity Catalog
Who can see it? Permissions applied before retrieval, not after Policies in the catalog and the platform
Is it any good? Quality tests and contracts ODCS, tests in the pipeline

Regulation pushes the same way. In Brazil, article 20 of the LGPD gives data subjects the right to request a review of decisions made solely through automated processing, and requires the controller to disclose the criteria used. Without lineage, explaining a model's decision turns into archaeology. In Europe, the AI Act (Regulation 2024/1689) had its timeline changed in 2026: obligations for the high-risk systems in Annex III moved to December 2027, according to the Future of Privacy Forum. As a management reference, NIST published the AI Risk Management Framework in January 2023, with four functions: govern, map, measure and manage. ISO/IEC 42001, from December 2023, is the certifiable standard for AI management systems.

Open-air street market early in the morning seen from above, with stalls arranged by section, fruit crates with origin labels and a vendor seen from behind setting up the stall
At a good market, every stall has an owner, every crate says where it came from and you know what you're buying. That's what a data product is.

What About the Other Architectures?

AI-first doesn't retire anything. It uses the earlier architectures as its foundation and changes what you expect from them.

Animation of a timeline of data architectures, from the data warehouse to the data lake, lakehouse, data mesh, data fabric and AI-first, with each one highlighting the main question it tried to solve
Each architecture answered the pain of its time. AI-first's question is: can the machine understand this and use it safely?
Architecture Core idea Built for What AI-first reuses What's missing for AI
Data warehouse Structured, integrated, historical data for decisions (Inmon, Kimball) Reports and BI Modeling and reliable metrics Documents and text are left out
Data lake Store everything, in any format, and decide later Data science, volume Raw and unstructured data With no owner and no meaning, it becomes a swamp
Lakehouse The lake's open formats with the warehouse's management BI and ML on the same base One base for tables and files Semantics and fine-grained permissions still separate
Data mesh Data by domain, as a product, with federated governance Large organizations Data products and clear ownership Requires mature teams
Data fabric Automated integration driven by active metadata Very heterogeneous environments Metadata and catalog at the center Tool-dependent, can turn into a black box
Event-driven Systems react to streaming events (Kafka, CDC with Debezium) Real time Fresh data for the agent Doesn't solve meaning
API-first Every capability exposed through an API contract Integration between systems Tools with contracts for agents Doesn't solve data quality

The lakehouse, for example, was defined in the paper by Armbrust, Ghodsi, Xin and Zaharia (CIDR 2021) by three traits: open direct-access formats, first-class support for machine learning and state-of-the-art performance. It was born with ML in mind. What AI-first adds is what a language modelAI model trained on large amounts of text to predict the next word, which lets it chat, summarize, translate and write code. needs and a prediction model didn't: meaning in text, context and control over who sees what at the moment the question is asked.

Data mesh and AI-first also fit well together. The four mesh principles (domain ownership, data as a product, self-serve platform and federated computational governance) read almost like a list of prerequisites for trustworthy agents. The difference is the consumer: in mesh, another team; in AI-first, another team and a machine.

Where to Start

  1. Pick a business question, not a platform. "Which contracts expire in the next 60 days and who is responsible for each?" is a good start.
  2. List the data it uses and give each piece an owner, a definition and an update date.
  3. Define the metrics involved in one place, with the formula written down.
  4. Expose it through scoped tools, not direct database access.
  5. Record the lineage of the answer: which tables and documents it came from.
  6. Build a set of test questions with the right answers, and run it on every change.
  7. Only then expand to the next use case, reusing what's already defined.

Quick check

1. What is the role of the semantic layer in an AI-first architecture?
Show answer

Answer: Defining once what each metric means, so humans and agents use the same math

With the metric defined, the agent looks it up instead of guessing the filter.

2. What is a data product?
Show answer

Answer: A dataset with an owner, a contract and quality, built to be consumed

The idea comes from data mesh: data is treated as a product, with someone responsible and a guarantee.

3. Does AI-first replace the lakehouse?
Show answer

Answer: No, it uses the lakehouse (or the warehouse, or the lake) as its foundation

The earlier architectures stay. What changes is what you expect from them.

4. Where should permissions be applied when an agent searches documents?
Show answer

Answer: Before retrieval

Filtering afterwards lets forbidden content reach the model. Asking in the prompt isn't a control.

Frequently Asked Questions

What is AI-first data architecture?

It's organizing the data platform from the start around AI consumers, such as agents and RAG. In practice, it means data products with owners, a semantic layer with the business definitions, access through scoped tools and governance with lineage and permissions.

What is AI-ready data?

Data an AI system can find, understand and use safely: with a description and an owner, consistent definitions, verified quality, traceable origin and permissions applied. Readiness depends on the use case: the same data can be ready for one question and not for another.

What's the difference between data mesh and AI-first architecture?

Data mesh is an organizational model: data by domain, treated as a product, with federated governance. AI-first is a design priority: preparing data for AI consumers. They complement each other, and mesh's data products are one of the AI-first layers.

Do I need to replace my data warehouse to use AI?

Not necessarily. The warehouse, lake or lakehouse is still the foundation. What's usually missing is metric definitions in one place, data documentation, lineage and access controlled through tools.

What is a semantic layer?

It's where the business definitions live: what revenue, active customer or churn means, with the formula for each metric. BI tools and AI agents query those definitions instead of each one recalculating them its own way.

References

Source: https://ramongomessilva.com.br/blog/ai-first-data-architecture · Accessed on December 02, 2026

Share Share on LinkedIn Share on X
Cite this article

Ready-made reference, with today as the access date.

ABNT

Brazilian standard (NBR 6023). Use it in theses and academic papers submitted in Brazil.

GOMES, Ramon. AI-first data architecture: the layers that make data ready for agents and RAG. Ramon Gomes, 22 nov. 2026. Disponível em: https://ramongomessilva.com.br/blog/ai-first-data-architecture. Acesso em: 2 dez. 2026.

APA

American Psychological Association style. Common in scientific papers and journals, especially in the social, behavioral and health sciences.

Gomes, R. (2026, November 22). AI-first data architecture: the layers that make data ready for agents and RAG. Ramon Gomes. https://ramongomessilva.com.br/blog/ai-first-data-architecture

BibTeX

Format for LaTeX users (Overleaf, for example). Paste it into your .bib file or import it into Zotero or Mendeley.

@online{gomes2026aifirstdata,
  author = {Gomes, Ramon},
  title = {{AI-first data architecture: the layers that make data ready for agents and RAG}},
  organization = {Ramon Gomes},
  year = {2026},
  month = nov,
  date = {2026-11-22},
  url = {https://ramongomessilva.com.br/blog/ai-first-data-architecture},
  urldate = {2026-12-02}
}
Found a mistake?

Wrong fact, broken link, outdated information: tell me and I will fix it.

10 to 2,000 characters. If you can, point to the right source.

Only so I can reply. It never shows on any page of the site.

Written by

Ramon Gomes

Software Engineer

Full stack software engineer. I like taking a messy problem, listening to the people who live with it and shipping something that holds up day to day. These days I split my time between my own products, applied AI and client work.

Available for projects

Need Something Like This Built?

I build websites, systems, apps and AI automations, from design to deploy. Tell me what you need or see what I offer.

Related Articles