---
title: "AI Architecture: The Layers a Production AI System Needs"
description: "AI architecture explained layer by layer: the data foundation, governed connections and MCP, use cases, and the monitoring that keeps them reliable."
canonical: https://shipshapedata.com/resources/ai-foundations/ai-architecture/
language: en-GB
author: "Emile Van Zyl"
author_role: "MarTech Automation Consultant"
author_url: https://www.linkedin.com/in/emile-vanzyl-enhancing-your-human-advantage/
date_published: 2026-11-27
date_modified: 2026-11-27
---

# AI architecture: the layers a production AI system needs

> AI architecture explained layer by layer: the data foundation, governed connections and MCP, use cases, and the monitoring that keeps them reliable.

Section: Home > Resources > AI foundations

Canonical page: https://shipshapedata.com/resources/ai-foundations/ai-architecture/
By Emile Van Zyl, MarTech Automation Consultant (https://www.linkedin.com/in/emile-vanzyl-enhancing-your-human-advantage/) | published 2026-11-27

Most diagrams of AI architecture put a model at the centre and draw everything else around it. That picture is easy to follow, but it explains very little about why one AI system holds up in production while another stalls after the pilot. The difference is usually decided by what sits under the model: the data it reads, the routes it takes to reach that data, and the checks that tell you when its answers drift.

AI architecture is the design of the layers a production AI system runs on: a governed data foundation, a connective layer of APIs, access controls, business logic and Model Context Protocol (MCP), the use cases built on top, and the evaluation and monitoring that keep answers reliable. The order of building decides whether the system holds up.

The term has two common meanings. In building design, AI architecture refers to software that helps architects generate layouts, renders and compliance checks. This guide covers the other meaning: the technical design of an AI system inside an organisation, from the data it depends on to the applications people use.

It is written for the person who owns an AI programme and needs a structure they can defend, such as a head of data, a director of technology, or a chief technology officer at a smaller organisation. It sets out the layers, explains what each one does, and explains why we build them from the inside out.

## What AI architecture means

An AI architecture describes the components of an AI system and how they depend on each other. A complete one answers practical questions: where the system gets its facts, who may see which records, how a model reaches a business system, and how you know when an answer is wrong.

Generic reference stacks list similar parts: compute infrastructure, a data layer, the model, an orchestration layer for retrieval and agents, and a governance layer for access and monitoring. The parts are right. The problem is the order in which they are drawn and built. When the model comes first, the data work is treated as plumbing to finish later, and later rarely comes.

### Why diagrams start in the wrong place

Models are the visible part. A team can try one in an afternoon, and a demonstration on a clean sample looks convincing. Production is different. Real data is spread across systems, defined differently in each, and governed unevenly. A model placed over that data repeats its inconsistencies with confidence. AI works like a magnifying glass: over strong foundations it amplifies gains, and over weak foundations it accelerates failure and exposes risk.

### The layers at a glance

We describe a production AI system as three layers built from the inside out, with evaluation and monitoring running across all of them.

- The data foundation, or Core: your data in one governed place, cleaned in stages, with one agreed definition of every business term.
- The Connective layer: the APIs, integrations, MCP servers, access controls and business logic that let models reach governed data without losing control of it.
- The Outer ring: the use cases people asked for, such as support answers, automated reports or a knowledge base.
- Evaluation and monitoring: the tests and signals that show whether each layer is still doing its job.
> The order of building is part of the architecture, not a scheduling detail.

## Layer one: the data foundation

The data foundation is the layer every other part depends on. It decides what the system knows and whether two answers to the same question agree. Our own first product taught us this. Every AI engagement kept turning into a data engagement, because the answers were only ever as good as the data underneath.

### What the core contains

- A cloud data warehouse or lakehouse that brings data from operational systems into one store. Snowflake, Databricks, Google BigQuery and Microsoft Fabric are common choices, and the right one is a question of fit with your estate.
- Medallion architecture, which cleans data in stages: bronze holds raw copies of source data, silver holds cleaned and joined records, and gold holds the tables the business reports on.
- A semantic layer, which gives one governed definition of each business term, so revenue or open ticket means the same thing in every report and every AI answer.
- Data pipelines that feed the store on a schedule or as events arrive, with tests that catch broken loads before they reach gold tables.
If you are deciding between a warehouse and a lakehouse, our guide to data lakehouse architecture and its layers covers the trade-offs. For a practical test of your current position, see what AI-ready data means and how to check it.

### Where a vector database fits

A vector database stores embeddings, numerical representations of meaning, so a system can find passages by similarity rather than exact words. It belongs with the data foundation, not beside the model. The embeddings are derived from your content, so they need the same ownership, refresh schedule and access rules as the source documents. A vector index built from an unmanaged folder inherits every outdated policy and duplicate in that folder. Our explainer on how vector databases power AI search covers the mechanics.

## Layer two: connectivity, governance and MCP

The Connective layer is the set of connections and rules between the data foundation and the models. It is often drawn as a single arrow. In production it carries most of the controls that make an AI system safe to run.

- APIs and system integrations that let a model read from the warehouse and write results back into the CRM, ticketing system or finance platform your team already uses.
- MCP servers that expose approved data and actions to models in a standard way.
- Access controls that apply the same permissions to an AI request as to a person, so a model cannot show a user a record that user could not open.
- Business logic, such as approval limits, escalation rules and which source wins when two systems disagree.
- Auditable lineage, so every answer can be traced to the data and the rule that produced it.
Data pipelines are not part of this layer. They feed the Core. Keeping the two apart makes ownership clear: data engineers own the quality of what is stored, and the Connective layer decides who and what may reach it.

### What Model Context Protocol does

Model Context Protocol is an open standard for connecting AI models to tools and data sources. An MCP server describes what it offers, such as a query against approved tables or a lookup in a document store, and the model calls it through a consistent interface. That removes a great deal of one-off integration code and gives you one place to enforce permissions and logging.

MCP is one route among several. Many production systems also connect through ordinary APIs and direct CRM integrations, and that is often the simpler choice. Agent-to-agent protocols are an option where several agents need to coordinate. The test for any route is the same: the model reaches governed data, under the user's permissions, and every call is recorded. For the risks this layer exists to contain, see AI agent security: permissions, data access and audit trails.

## Layer three: the use cases

The Outer ring holds the outcomes people ask for by name: support questions answered from your own documentation, reports that build themselves, invoices read and matched without re-keying, a knowledge base staff can trust. Each one is assembled from a small set of capabilities, such as retrieval, document extraction, classification, forecasting, conversational interfaces and workflow automation. Our use case pages set out what each outcome depends on and when packaged software is the better choice.

### Where the model sits

The model lives in this layer, inside each use case. Most generative AI models are built on the transformer architecture, and many capable models are available through a cloud provider's API. For most organisations the choice of model is a configuration decision that can change later. The data, permissions and business logic underneath it are much harder to change, which is why they come first.

Around the model sit the prompts, the orchestration that sequences retrieval and tool calls, and the interface people use. These parts deserve care, but they depend on everything below them. A well-written prompt cannot correct a figure that the business defines two ways.

### Choosing the first use case

Choose the first use case for a measurable outcome and for the data it needs, not for how impressive it looks. A good first win runs on data you can govern in a reasonable time, has a metric someone already tracks, and leaves behind foundation work the second use case can reuse. That is how a first build pays for the second.

## Evaluation, monitoring and feedback

Evaluation and monitoring are not a fourth layer on top. They run through all three, because a fault can start in any of them. A gold table can stop refreshing. A permission change can block a route. A model update can change the tone of answers. Without signals at each level, the first sign of trouble is a user who stops trusting the system.

### What to measure at each layer

- Data foundation: freshness, completeness and test results on the tables and documents the use case reads.
- Connective layer: failed calls, denied requests, response times and a log of which data each answer touched.
- Use cases: answer quality against a labelled test set, groundedness in the retrieved sources, and the business metric the use case was built to move.
Build the test set before go-live, from real questions and agreed correct answers, and run it on every change to prompts, models or data. Our guides to evaluating large language models and monitoring models in production cover the methods.

### Closing the feedback loop

Feedback from users is the most useful signal you have, provided it goes somewhere. A poor rating on an answer should lead to a check of the source data, the retrieval step and the prompt, in that order. Many poor answers trace back to missing or outdated content rather than to the model.

> A monitored system tells you which layer failed. An unmonitored one only tells you that people have stopped using it.

## Patterns for RAG, agents and prediction

Three reference patterns cover most production AI work. Each uses the same layers, with different weight on each.

### Retrieval-augmented generation

Retrieval-augmented generation, or RAG, grounds a language model in your own content. Documents are ingested, split into chunks, turned into embeddings and stored in a vector index. At question time the system retrieves the most relevant passages, reranks them and passes them to the model with the question. The data foundation supplies current, owned content. The Connective layer filters retrieval by the user's permissions. The use case is the chat or search interface. The detail is in our guide to building a RAG pipeline that holds up.

### Agents

An agent is given a goal and a set of tools, and it decides its own next steps. That makes the Connective layer the centre of the design. Every tool an agent can call is a permission, so tools should be narrow, logged and limited to what the task needs, with a person approving actions that are costly to reverse. Read when agentic AI is worth building before you commit to this pattern.

### Prediction

Forecasting, scoring and classification models learn from historical data in the gold layer and serve predictions back into business systems. Here the weight falls on the data foundation and on MLOps: consistent features, versioned models, controlled deployment and drift monitoring. Our guide to MLOps architecture and its components sets out how those parts connect.

## Why the order of building matters

Building from the inside out is slower to demonstrate and faster to finish. When the model comes first, each new use case brings its own data extracts, its own definitions and its own access rules. The second use case cannot reuse the first, and a pilot that looked finished needs rebuilding before it can go live.

When the foundation comes first, the work compounds. The semantic layer that defines an open ticket for a support assistant also serves the operations dashboard. The access controls built for one MCP server apply to the next. Evaluation sets and monitoring are already in place when the second use case arrives.

This is also why many AI systems fail in production after a successful pilot. The pilot ran on a clean extract, with a small group of trusted users and no permissions to enforce. Production meets the real data, the full user base and the audit requirements at once. Our guide to why AI projects fail sets out the recurring causes.

The same logic means that no is sometimes the right answer. If a use case needs data that cannot be governed in time, the honest choice is to build the foundation first or to pick a different use case.

## Where this leaves you

A useful AI architecture is decided by what sits under the model. Start with a governed data foundation, connect it to models through controlled routes, build the use case your business asked for, and measure every layer from the first release. The model is the part you will change most often, so design for that.

If you are reviewing an existing design, check it in the same order. Confirm that the data sits in one governed store with agreed definitions, that every model call runs under the user's permissions and is logged, and that each use case has a test set and a metric. Where one of those is missing, that is the next piece of work.

We design and build the first two layers of this architecture for clients. The data foundation covers the cloud data warehouse, medallion architecture and semantic layer, and our work on APIs, MCP and connections covers the governed routes between that foundation and your models, including MCP servers built to your access rules. If you would like a starting point first, the free AI readiness assessment scores strategy, people, data and change on the spot. Talk to us for a straight view of which layer to build first.

## Frequently asked questions

AI architecture is the design of the layers a production AI system runs on. It covers a governed data foundation, a connective layer of APIs, access controls, business logic and Model Context Protocol servers, the use cases built on top, and the evaluation and monitoring that run across all of them. The order of building matters: the data and connections come before the model.

The term usually refers to reference patterns for building AI systems. Three cover most production work: retrieval-augmented generation, which grounds a language model in your own documents; agents, which pursue a goal using a set of tools; and predictive models, which forecast or score from historical data. Each pattern relies on the same layers: governed data, controlled connections, the use case itself, and monitoring.

RAG architecture is the set of components that grounds a language model in your own content. Documents are ingested, split into chunks, converted to embeddings and stored in a vector index. When a question arrives, the system retrieves the most relevant passages, reranks them and passes them to the model with the question. Retrieval should be filtered by the user's permissions, and the source content needs an owner and a refresh schedule.

Most generative AI models are built on the transformer architecture, which learns relationships between parts of an input in order to predict what comes next. In a production system, the model is one component inside the use case layer. Whether the system gives reliable answers depends more on the data foundation, the permissions and the monitoring around the model than on its internal design.

In building design, AI in architecture means software that helps architects generate layouts, produce renders and check designs against rules. The same phrase is also used for the technical design of AI systems inside an organisation: the data foundation, the connections and controls, the use cases, and the monitoring that keeps them reliable.

## Frequently asked questions

### What is AI architecture?

AI architecture is the design of the layers a production AI system runs on. It covers a governed data foundation, a connective layer of APIs, access controls, business logic and Model Context Protocol servers, the use cases built on top, and the evaluation and monitoring that run across all of them. The order of building matters: the data and connections come before the model.

### What are AI architectures?

The term usually refers to reference patterns for building AI systems. Three cover most production work: retrieval-augmented generation, which grounds a language model in your own documents; agents, which pursue a goal using a set of tools; and predictive models, which forecast or score from historical data. Each pattern relies on the same layers: governed data, controlled connections, the use case itself, and monitoring.

### What is RAG architecture in AI?

RAG architecture is the set of components that grounds a language model in your own content. Documents are ingested, split into chunks, converted to embeddings and stored in a vector index. When a question arrives, the system retrieves the most relevant passages, reranks them and passes them to the model with the question. Retrieval should be filtered by the user's permissions, and the source content needs an owner and a refresh schedule.

### Which architecture is the backbone of most generative AI models?

Most generative AI models are built on the transformer architecture, which learns relationships between parts of an input in order to predict what comes next. In a production system, the model is one component inside the use case layer. Whether the system gives reliable answers depends more on the data foundation, the permissions and the monitoring around the model than on its internal design.

### What is AI in architecture?

In building design, AI in architecture means software that helps architects generate layouts, produce renders and check designs against rules. The same phrase is also used for the technical design of AI systems inside an organisation: the data foundation, the connections and controls, the use cases, and the monitoring that keeps them reliable.

---

Shipshape Data is a London AI consultancy: we build the data foundation your AI depends on, then the AI on top. Site guide for agents: https://shipshapedata.com/llms.txt | Contact: hello@shipshapedata.com
