AI tech stack

An AI tech stack is the set of layers needed to build and run AI products, from chips and data centres through models and data tools to the applications people use.

Software people talk about a stack because each layer relies on the one beneath it. An AI product usually sits on several. At the bottom is compute: specialised chips such as GPUs, housed in data centres and mostly rented through cloud providers. Above that sit the models, the large trained systems that do the language, image or reasoning work. Then comes a layer of tools for feeding data to models, storing it, checking outputs and monitoring costs. At the top are the applications that customers actually see.

The UK Competition and Markets Authority set out the lower layers in its September 2023 review of foundation models. It found that building a model needs ongoing access to computing power, data, technical expertise and capital, and that developers without their own computing resources typically partner with a cloud provider. Once trained, a model can be deployed directly, offered to other firms through an API, or reached through plug-ins, so a business can use a model without building one.

The middle layer was mapped by the venture firm Andreessen Horowitz in June 2023, in a reference architecture for applications built on large language models. It listed data pipelines, an embedding model, a vector database, orchestration tools such as LangChain and LlamaIndex, outside APIs and plug-ins, a cache, logging tools, output validation and app hosting. The core pattern was to use a model off the shelf and steer it with prompts and the company's own retrieved data, rather than retrain it.

A concrete example: a company building a support assistant might pay a model provider per request, store its help articles as embeddings in a vector database, use an orchestration tool to fetch the right articles and assemble each prompt, and log every answer for review. The company owns the top layer and the data; everything below it is rented.

The stack is also a map of power. The CMA observed significant vertical integration, with firms such as Microsoft, Amazon and Google owning data centres, developing models and selling the products that use them. When news stories describe a company moving up or down the stack, they mean it is trying to own more of the layers its business depends on.

Common questions

What are the layers of an AI tech stack?

A common breakdown runs from compute hardware and data centres at the bottom, through foundation models, to tools for data, retrieval, orchestration and monitoring, and finally the applications users see. Different firms slice it differently, but the order from infrastructure to application is consistent.

Does a business need to build every layer?

No. Most businesses use a model through an API or a cloud platform and build only the application and data layers. Building models or data centres takes capital and expertise on a scale few organisations have, which is why those layers are dominated by a small number of large firms.

How is an AI stack different from a traditional software stack?

A traditional stack runs code that behaves the same way every time. An AI stack adds a model whose outputs vary and can be wrong, so it needs extra layers for retrieving context, validating answers, guarding against prompt injection and tracking quality. It also adds a running cost for every request the model handles.

Who controls the AI tech stack?

The lower layers are concentrated. The UK competition regulator found in 2023 that several large firms, including Microsoft, Amazon and Google, are present in two or more layers, owning data centres and developing models as well as selling software. The application layer is far more crowded and competitive.

Finding more

Search for "LLM application architecture", "foundation model value chain" or "AI infrastructure layer" to see how the layers are described and who supplies each. Reliable sources include competition regulators' market studies, cloud providers' architecture documentation and engineering write-ups from companies describing their own systems. Treat stack diagrams from investors and vendors as one view of the market, since they tend to highlight the categories they fund or sell.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.