Dark theme
WELCOME TO QQUANTUM

Let Qubi show you around.

Choose how you’d like to explore.

Don’t agreeGo to yourOS instead ↗

Both choices allow Google Analytics, so we can see which pages help.

Sound is your choice. Essential cookies keep the site working. Continuing either way also allows Google Analytics (visits and pages viewed).

Read our Terms, Privacy and Cookies.

Change your choices anytime from the footer.

Getting Qubi ready.
Engineering notes 5 December 2026 By QQuantum.AI 8 minute read
Ai Architecture Ai Agents Rag Model Context Protocol Ai Governance

AI Architectures: A Layer-by-Layer Guide for Buyers

An AI architecture is the set of components in an AI system, what each does, and how data and decisions flow between them. A vendor-neutral layer map built from Microsoft, Google Cloud, Anthropic and the MCP specification, with the supplier questions and EU AI Act dates to plan around.

Qubi, a blue glass orb with orbiting electrons, hovers above a workbench in a dark Barcelona workshop where a stack of glowing glass trays sits under warm lamps, while a pink orb client with round glasses watches.

Article

An AI architecture is the set of components in an AI system, the job each one does, and how data, model calls and decisions move between them. In practice that means a client and API, an orchestration layer, memory, a model for inference, a knowledge layer for retrieval and a tools layer that takes actions. The useful question for a buyer is not which diagram looks modern, but who owns each layer and how it is logged.

This piece is a buyer's guide to that question. Our AI Architectures hub covers the systems we build; here the aim is narrower: a vendor-neutral map that a technical lead can hold up against a supplier's proposal, with the sources named next to each claim and our own analysis marked as ours.

What "AI architecture" means, and what it gets confused with

Search for the term and the pages that come up define it in several incompatible ways: as a general blueprint, as the internal design of an agent, or as a governance framework. Each is part of the picture. None is enough on its own.

The working definition we use is plain: the components, their responsibilities, and the flows of data and decisions between them. The point of that definition is that it forces one distinction early. Every step in an AI system is either a fixed rule written in code, a model call whose output is probabilistic, or a human decision. A good architecture diagram makes it obvious which is which. A weak one draws all of them as identical boxes.

The layers of a production AI system

Microsoft's Azure Well-Architected guidance on AI workloads splits an intelligent application into a client layer, an intelligence layer (API, orchestration and agent compute, conversation management), an inferencing layer, a knowledge layer and a tools layer. It is one vendor's view written around Azure, not a standard, but the layering is general enough to reuse. The table below is our reading of it, with the risk we see in each layer and the question we would put to a supplier.

Layer What it does Where risk builds up (our analysis) Question for a supplier
Client and API The only public entry point Authentication, rate limits, prompt injection arriving from users Which endpoints are exposed, and who can call them?
Orchestration and agent compute Decides which step runs next A single point of failure; hidden loops that add cost Is the control flow fixed code, or does the model choose it?
Conversation memory Keeps state between turns Retention of personal data is a GDPR question How long is each conversation kept, and where?
Inference Runs the model Data leaving the region; model changes without notice Hosted API, private cloud or on-premise, and how is the model pinned?
Knowledge (retrieval) Finds the documents a model answers from Returning documents a user is not allowed to see Is retrieval permission-aware, and are sources logged?
Tools Takes actions in other systems Irreversible real-world effects Which actions need human approval?
Training and fine-tuning Adapts a model to the task Cost and data handling for something often unnecessary Why is training needed at all here?

Microsoft is direct about the tools and training rows. It says the tools layer "carries the highest risk because actions can have real-world consequences that are potentially irreversible", and recommends human approval steps for high-risk operations. It also says training and fine-tuning components are optional when a workload uses only pretrained models. Our view is that the training row is where scope quietly grows; it is worth asking for the reason in writing.

The knowledge layer has the longest pedigree. The 2020 paper by Lewis et al. that named retrieval-augmented generation described it as a way to "combine pre-trained parametric and non-parametric memory": the model's own weights on one side, an external index of documents on the other. That framing still explains the main trade-off. Retrieval grounds answers in documents that can be updated and cited; it reduces the room for invented answers but does not remove it. Our comparison of RAG vs fine-tuning goes further into when each fits.

Qubi hovers in a dark Barcelona server workshop beside a row of stacked glass cabinets, each lit by its own warm lamp, with cables running between them.

Workflows before agents: choosing a pattern

The orchestration layer is where most architectural argument happens, and the clearest framing comes from Anthropic's engineering post Building effective agents (19 December 2024). It separates workflows, "systems where LLMs and tools are orchestrated through predefined code paths", from agents, where the model directs its own process and tool use. It lists five workflow patterns: prompt chaining, routing, parallelisation, orchestrator-workers and evaluator-optimiser. Its headline advice is to find "the simplest solution possible, and only increasing complexity when needed."

Google Cloud's Architecture Center reaches a similar place from the other direction. Its guide to choosing a design pattern for an agentic AI system catalogues multi-agent patterns (sequential, parallel, loop, review and critique, coordinator, hierarchical task decomposition, swarm), and still recommends that teams early in agent development start with a single agent.

Our reading: the patterns are a menu, not a ladder to climb. A fixed workflow is easier to test, cheaper per task because it makes fewer model calls, and easier to explain to an auditor. Each move towards an autonomous agent, and then towards several agents, buys flexibility at the cost of more calls, more failure paths and harder evaluation. Before approving a multi-agent design we ask what the single-agent version failed to do, how the agents' hand-offs are logged, and how the whole system is evaluated end to end rather than agent by agent. Our page on multi-agent systems covers where the extra cost is worth it.

The connectors: MCP and REST

Microsoft's guidance notes that tools or agents can be called "in a standardized way, whether that's through MCP," an agent-to-agent protocol, or OpenAPI/REST. The Model Context Protocol specification (version 2025-11-25) describes MCP as an open protocol connecting LLM applications to external data sources and tools.

The specification is blunt about risk: "Tools represent arbitrary code execution and must be treated with appropriate caution." Our analysis is that this should shape the diagram, not just the code. Each tool server should run with the narrowest permissions it needs, its descriptions should be treated as untrusted input, and each connector should be replaceable so that a model or vendor change does not mean rebuilding the tools layer. More on this in our Model Context Protocol explainer.

Governance built into the architecture

Governance that lives only in a policy document does not survive the first incident. It has to appear as components. Microsoft recommends recording "which sources were retrieved for each response through audit trails" so that decisions can be explained and investigated later. We would extend that to every tool call and every human approval.

A recent academic contribution points the same way. A reference architecture for integrating agentic AI into enterprise software organises the architectural capabilities it identifies into ten responsibilities. We have not reproduced the list here because the abstract does not enumerate it, but the framing (responsibilities rather than products) is the right unit for a buyer.

External frameworks are worth mapping the layers against. The NIST AI Risk Management Framework, AI RMF 1.0, was released on 26 January 2023 for voluntary use, and NIST followed it with a Generative AI Profile (NIST-AI-600-1) on 26 July 2024. In the EU, the European Commission's AI Act page states that the Act entered into force on 1 August 2024 and became applicable in August 2026, with some exceptions; under the AI Omnibus, high-risk deadlines moved to December 2027 for Annex III systems and August 2028 for Annex I systems. These dates have already moved once, so check the Commission's page before relying on them, and treat this as orientation, not legal advice. Our EU AI Act page tracks the obligations in more detail.

What this means for your project

Drawn from our own service pages, this is how the map turns into work:

  • Retrieval first, if the problem is answering from documents. Our RAG Systems service covers ingestion, permissions, retrieval, source citations, evaluation and production deployment. The permissions and citation pieces are the ones that matter for the knowledge-layer row above.
  • Orchestration built for the workload. Custom LLM Orchestration is routing, tool use and multi-step reasoning across models. In line with Anthropic's and Google's advice, we would start with a fixed workflow or a single agent and justify each step up.
  • Audit as a component. Secure Data Pipelines handles ingestion, permissions and audit for regulated or confidential data, which is where the audit trails Microsoft recommends actually get built.

The practical deliverable is the same in each case: an architecture diagram in which every layer has a named owner, a log and a documented way to swap it out.

What to ask a supplier for

A short list we would put in any request for proposal:

  • A diagram that marks each step as rule, model call or human decision, with an owner and a log for every layer.
  • Data residency for each layer separately, since inference, memory and the vector store can sit in different places.
  • An evaluation and observability plan that covers the whole system, not only the model.
  • An exit plan for the model and the vector store.
  • A reason in writing for any training, fine-tuning or extra agent.

If it would help to put a current proposal against this map, our AI Architectures hub explains how we scope that work, and a short call is usually enough to see which layers need attention.

KEY FACTS
Microsoft's layer model
Microsoft's Azure Well-Architected guidance splits an intelligent AI application into client, intelligence (API, orchestration and agent compute, conversation management), inferencing, knowledge and tools layers.
Highest-risk layer
Microsoft names the tools layer as the highest-risk layer, because actions can be irreversible, and recommends human approval steps for high-risk operations.
Workflows versus agents
Anthropic separates workflows, where LLMs and tools follow predefined code paths, from agents, where the model directs its own process and tool use, and advises starting with the simplest solution.
Start with a single agent
Google Cloud's Architecture Center recommends that teams early in agent development start with a single agent before adopting multi-agent patterns.
MCP tools need consent
The Model Context Protocol specification (2025-11-25) says tools represent arbitrary code execution and that hosts must obtain user consent before invoking a tool.
EU AI Act timing
The European Commission says the AI Act entered into force on 1 August 2024 and became applicable in August 2026, with some exceptions; the AI Omnibus moved high-risk deadlines to December 2027 (Annex III) and August 2028 (Annex I).
Questions

Questions about this project.

What are the main layers of an AI architecture?

Microsoft's Azure Well-Architected guidance describes a client layer, an intelligence layer (API, orchestration and agent compute, conversation management), an inferencing layer, a knowledge layer and a tools layer. It notes that training and fine-tuning components are optional when only pretrained models are used. It is one vendor's model, but the layering transfers well to other platforms.

Should an AI system be built as a workflow or as an agent?

Anthropic defines workflows as LLMs and tools orchestrated through predefined code paths, and agents as systems where the model directs its own process. Anthropic advises the simplest solution that works, and Google Cloud recommends starting with a single agent. Our view is that a fixed workflow is easier to test and explain, and each step towards autonomy should be justified by something the simpler design could not do.

Which layer of an AI system carries the most risk?

Microsoft names the tools layer, because actions in other systems can have irreversible consequences, and recommends human approval for high-risk operations. The Model Context Protocol specification similarly treats tools as arbitrary code execution that needs user consent before it runs.

Does retrieval-augmented generation stop a model making things up?

No. The original RAG paper by Lewis et al. describes combining a model's parametric memory with a non-parametric document index. Retrieval grounds answers in documents that can be updated and cited, which reduces the room for invented answers, but it does not remove it. Evaluation and source logging are still needed.

Which EU AI Act dates matter for an AI architecture?

According to the European Commission, the Act entered into force on 1 August 2024 and became applicable in August 2026, with some exceptions. Under the AI Omnibus, high-risk deadlines moved to December 2027 for Annex III systems and August 2028 for Annex I systems. These dates have moved before, so check the Commission's page; this is orientation, not legal advice.

Continue reading

Shipped & in build

Real work. Check it yourself.

What we built, what stage it is at, and a link to the live thing wherever there is one.

The updated yourOS homepage: Roxy’s open ring surrounded by bento cards for calls, voice, translation, building, design, apps and more.
The yourOS homepage on a phone, with its compact navigation, welcome film button and bento cards.
youros.tech — the homepage bento hero
Our own · coming soon

yourOS

yourOS is an operating system with an AI at its heart. You talk to it like a person, out loud or typed. It makes your calls, plans your days and works on your projects with a crew of agents, on your own private server. Our own product, built from the first commit; the waitlist is open.

What we built
  • Operating system
  • Roxy
  • Agent crew
  • Voice calls
  • App store
  • Website
Meet yourOS →
The Sonora homepage on desktop: a full-bleed dune landscape behind the headline “Transform Your Life with Sound”, with App Store and Google Play download buttons.
The Sonora homepage on a mobile viewport, showing the same hero reflowed to a single column.
sonora.com — homepage, 1440×900
Live · iOS · Android

Sonora

Website, backend and app assets for Sonora, a free AI sound-therapy app on iOS and Android published by Cognitive AI.

What we built
  • Website
  • Backend
  • App assets
Read the case study →
The updated Podswap homepage on desktop: “Grow on Instagram and TikTok for free, with real engagement from creators your size”, beside a tilted wall of exchange, tool and guide cards on a violet gradient.
The updated Podswap homepage on a phone, with its floating navigation, Instagram and TikTok engagement headline and tilted tool cards.
podswap.app — homepage, 1440×900
Five platforms

Podswap

Brand, website, prototype, apps on five platforms, the AI backend and the algorithm-intelligence pipeline for Podswap, a social growth engine that runs without a human in the loop.

What we built
  • Brand
  • Website
  • Prototype
  • Apps on five platforms
  • AI backend
  • Algorithm pipeline
Read the case study →
The unOpen.AI homepage introducing Roxy, a private AI assistant that remembers who you are.
The unOpen.AI homepage on a mobile viewport.
unopen.ai — homepage, 1440×900
Prototype · closed beta

unOpen.AI

In closed beta: Roxy, a private AI assistant with permanent memory running on infrastructure the user owns. Brand, site, product, backend and conversational design.

What we built
  • Brand
  • Site
  • Product
  • Backend
  • Conversational design
Read the case study →
coherence.com on desktop, headed "Intelligence that moves in phase with people".
coherence.com on a mobile viewport, reflowed to a single column.
coherence.com — homepage, 1440×900
Live

Coherence

Live at coherence.com: brand identity generated with AI agents we directed, the motion system and website for the group behind Sonora, AboutAI, WakeUp and MudShadows. Agent work remains in build.

What we built
  • Brand identity
  • Motion system
  • Live website
  • Agent work — in build
Read the case study →
The new Domain Booth homepage on desktop: the headline “Premium Domains. Serious Buyers. Proven Results.” beside the animated DB monogram.
The new Domain Booth homepage on a phone, reflowed to a single column.
Our build of the Domain Booth homepage — 1440×900
Live

Domain Booth

Live at domainbooth.com for DomainBooth, a premium domain brokerage: a new animated mark, every page redesigned and rebuilt with designed mobile layouts, and a custom CMS for its sales record, featured names, press and enquiries.

What we built
  • Animated mark
  • Every page redesigned
  • Designed mobile layouts
  • Custom CMS
Read the case study →
The WakeUp homepage on desktop: 3D code rain behind the headline “Is reality coded?”, with the blog’s navigation along the top.
The WakeUp homepage on a phone, the headline set over the code rain in a single column.
wakeup.com — the homepage, 1440×900
Live

WakeUp

Live at wakeup.com for Coherence: a new 3D mark, a code-rain site built from scratch, a custom CMS for a team of writers with roles, editor review and author pages, 52 posts moved off WordPress at their old addresses, and every page made readable by search engines and AI assistants, ahead of the WakeUp binaural beats app.

What we built
  • 3D mark
  • Site from scratch
  • Custom CMS
  • WordPress move
  • SEO + LLM ready
Read the case study →
Who we have built for

Twenty-one years. Names you know.

See all of our work →
  • BBC Good Food logo
  • Charities Aid Foundation logo
  • GAME logo
  • NatWest logo
  • Next logo
  • NSPCC logo
  • Tesco logo
  • Worldpay logo
  • Samsung logo
  • Sony logo
  • Land Rover logo
  • UAP Limited logo
  • Netflix logo
  • Amazon Prime Video logo
  • Mercedes-Benz dealerships logo
  • San Miguel logo
  • Biovene Barcelona logo
  • Seventy7 logo
  • Littlewoods logo
  • Smile logo
  • The Co-operative Bank logo
Let’s talk

Working on
something like this?

If this is the kind of problem you are working on, we are happy to talk it through.

30-minute technical call · no deck