Concepts / Foundation Models and How They Are Adapted

Foundation Models and How They Are Adapted

AI engineering is the process of building applications on top of foundation models, and it has emerged as one of the fastest-growing engineering disciplines.

  • Programming

A Feature That Used to Need a Research Team

Imagine a product team that wants to add an intelligent feature, such as summarizing customer emails or drafting replies. Until recently, most people would picture a group of machine learning researchers, a large pile of training data, and a long build process. Today, a single developer can often add that same feature in a few days. That shift is the reason a new discipline has appeared almost overnight. This article explains what that discipline is, why it has grown so quickly, and how its pieces fit together.

What do you think happens?

Before reading on: how much specialized team and time does a small product team need to add an intelligent email-summary feature today?

  • A research team of machine learning experts and a long build process

  • Often a single developer working for a few days

Reveal answer
Answer:

Often a single developer working for a few days.

The source contrasts the older picture of a research team, large training data, and a long build with the present, where one developer can often add the same kind of feature in a few days. The change is what made a new discipline emerge.

Defining AI Engineering

Definition

AI engineering is the process of building applications on top of foundation models. The source describes it as one of the fastest, and possibly the fastest, growing engineering disciplines.

The key phrase in that definition is 'on top of.' An AI engineer is usually not building the underlying model from scratch. The engineer builds the layer that makes a foundation model useful for a particular purpose. A foundation model is general: it can be asked many kinds of questions and can produce many kinds of output. The application layer narrows that generality into a specific job, such as answering questions about a company's internal documents or classifying incoming support messages. The foundation model supplies the broad capability, and the AI engineer supplies the purpose, the inputs, and the way results are presented and checked.

Key point

Who can build the models themselves is a different question from who can build applications on them. Developing foundation models requires resources that only large technology corporations, governments, and well-funded startups can usually muster. In a 2022 interview, the CEO of OpenAI said the biggest opportunity for most people would be to adapt these models for specific applications. AI engineering is the work of that adaptation.

Why the Name AI Engineering Was Chosen

Several terms are used for building applications on top of foundation models, including ML engineering, MLOps, AIOps, and LLMOps. The source explains why AI engineering is the preferred label. ML engineering was not adopted because working with foundation models differs from working with traditional machine learning models in several important ways, and the term ML engineering would not capture that difference. ML engineering remains a good umbrella term that covers both kinds of work.

Terms ending in 'Ops' were set aside for a related reason. Operational components do exist in this work, but the central focus is on tweaking, or engineering, foundation models so they do what you want. To check the choice, the author surveyed 20 people who were developing applications on top of foundation models and asked which term they would use. Most preferred AI engineering.

Three Forces Behind the Growth

The source identifies three forces that drove the growth of AI engineering. The first is investment, the second is a low entrance barrier produced largely by the model as a service approach, and the third is the ability to build applications with minimal coding or in plain English. The three forces reinforce one another: investment funds the models and tools, the service model lowers the cost of using them, and the ease of working with them brings in more builders, which in turn attracts more investment.

Following a Request Through an Application

The clearest way to see where an AI engineer works is to follow a single request. Trace it step by step through the diagram below, then read the walkthrough that follows it.

User querytyped questionApplicationpackages the inputModel APIreceives the queryFoundation modelprocesses the queryModel outputreturned by the APIApplicationformats, checks, combinesResult shownpresented to usersubmitssends packaged inputpasses queryproduces outputreturns to applicationpresents
What happens to a user's question as it moves through the application, out to the model API, and back, and which steps an AI engineer typically builds or manages?
Worked example

Tracing one request through an email-summary feature

A user clicks a button to summarize a long customer email inside a support tool. Follow the request from the click to the summary on screen, and mark which steps belong to the application layer.

  1. 1
    User input

    The user's action is the input. The application takes the email text and any instruction it needs, such as a request for a short summary.

  2. 2
    Packaging

    The application packages that input into the form the model API expects. This is application-layer work the AI engineer designs.

  3. 3
    API call

    The application sends the packaged query to the model API. The application does not host the model itself.

  4. 4
    Model processing

    The foundation model behind the API processes the query and returns an output. The engineer does not control the model's internals here.

  5. 5
    Shaping the output

    The application formats the returned text, may check it, and may combine it with other data, such as the customer's account name. This is again application-layer work.

  6. 6
    Presentation

    The application shows the finished summary to the user.

Result

The model sits behind the API and does the general language work. The application sits between the user and the model and decides what task runs, what inputs go in, and how the output is shaped, presented, and evaluated. Those application-layer decisions are where the AI engineer concentrates effort.

Layers of an AI Application

The request path shows a layered structure. The foundation model is the bottom layer, reached through a model API. Above it sits the application layer, which the AI engineer usually builds and manages. The layer the user touches is the presentation of the application, which displays the result. The diagram below stacks these pieces so you can see which parts sit inside the application and which sit behind the API.

Userasks and reads resultsApplication layertask, inputs, outputshaping, evaluationModel APIaccepts queries, returnsoutputsFoundation modelgeneral, open-ended modelmakes a requestcallsserves
What does the stack look like from the foundation model up to the user, and which layers sit inside the application versus behind the model API?

This layering explains why AI engineering is more than calling an API. The model is general and open-ended, so the application layer decides what task the model performs, what inputs it receives, and how its outputs are presented and evaluated. Two applications built on the same model API can behave very differently because their application layers differ.

Categories of Use Cases

Because foundation models are general, the range of applications is very wide. The source notes that the number of potential applications seems endless and that it is impossible to list every use case. Categorizing them is also hard, because different surveys use different categories. Amazon Web Services has grouped enterprise generative AI use cases into three buckets: customer experience, employee productivity, and process optimization. Other groupings exist, such as eight categories including programming, data analysis, customer support, marketing copy, other copy, research, web design, and art. Some groupings are organized by value captured, such as cost reduction, process efficiency, growth, and accelerating innovation.

A single application can belong to more than one category. A bot might provide companionship and also aggregate information, and an application might extract structured data from a document and then answer questions about it. The source also notes that some categories look rare in open source projects simply because those applications are rarely released openly. Builders of education, data organization, and writing applications may find enterprise use more suitable.

Business motivation varies too. In a 2023 Gartner survey of 2,500 executives, 7% cited business continuity, meaning the risk that an organization could go out of business if it did not adopt generative AI, as their reason for embracing it. The source reports this as a single data point, so it shows that business continuity was a minority motive rather than the dominant one.

Why Enterprises Start With Lower-Risk Work

Not every promising use case is a good first project. The enterprise world generally prefers applications with lower risk. Companies deploy internal-facing applications, such as internal knowledge management, faster than external-facing applications, such as customer support chatbots. Internal applications let a company build its AI engineering expertise while limiting exposure to data privacy, compliance, and potentially catastrophic failures. The comparison below sets the two kinds of starting points side by side.

Internal knowledgemanagementinternal-facingCustomer supportchatbotexternal-facingClose-endedclassificationeasier to evaluateData privacy andcompliancelarger exposure
How do example applications differ in risk and stakes, and why do enterprises usually begin with the lower-risk column?

The source also observes that although foundation models are open-ended, many applications built on them are still close-ended, such as classification. Classification tasks are easier to evaluate, which makes their risks easier to estimate. When you design an application, asking how easily its output can be checked is a practical way to judge its risk.

Common Mistakes Beginners Make

  • Common mistake

    Thinking AI engineering means building the foundation model itself

    What it looks like

    A developer plans to design and train a new general model before shipping an email-summary feature.

    Why it fails

    The source says AI engineering is usually not building the underlying model from scratch. Developing foundation models is possible only for large corporations, governments, and well-funded startups.

    Do this instead

    Start from an existing model accessed through an API and focus on the application layer that gives it a specific job.

  • Common mistake

    Treating the model API as the whole application

    What it looks like

    A team sends user text straight to the API and displays whatever comes back, with no packaging, checks, or formatting.

    Why it fails

    The model is general and open-ended. The application layer decides the task, the inputs, and how outputs are presented and evaluated.

    Do this instead

    Design the application layer deliberately: define the task, structure the inputs, shape and check the output, then present it.

  • Common mistake

    Assuming one use case fits exactly one category

    What it looks like

    A document tool that extracts structured data and then answers questions about it is filed under only one bucket.

    Why it fails

    The source notes that the same application can belong to more than one category, and that categorization itself is hard because surveys differ.

    Do this instead

    Describe an application by all of its functions, then judge its risk by the functions that face users or touch sensitive data.

  • Common mistake

    Choosing an external, high-stakes application as the first project because it looks most impressive

Sorting a Feature Idea

MEDIUM

A team proposes three AI features: (1) an internal assistant that searches the company's policy documents for employees, (2) a public chatbot that answers customer billing questions, and (3) a tool that labels incoming support tickets as billing, shipping, or other. Using the source's reasoning, decide which feature the team should build first, and explain your choice in terms of internal versus external exposure and how easily each output can be checked.

Hints
  • Compare which features are internal-facing and which are external-facing.
  • Ask which output is a close-ended classification and which is easier to check by a person.
  • The source says enterprises often start with lower-risk internal and close-ended applications.

Where the Engineer Works

Once the request path is clear, the engineer's role is easy to locate. The foundation model and its API are provided by someone else, and the engineer works in the application layer between the user and the model. That layer determines what the model is asked to do, how inputs are prepared, how outputs are shaped and checked, and what the user sees.

Key Takeaways

  • AI engineering is the process of building applications on top of foundation models, and it has emerged as one of the fastest-growing engineering disciplines.
  • Three forces drove its growth: increased investment after the success of ChatGPT, a low entrance barrier enabled by the model as a service approach, and the ability to build with minimal coding or in plain English.
  • In a typical AI application, a user's query passes through the application layer to a model API and returns as output. The engineer's work concentrates in the application layer between user and model.
  • Use cases span many categories, and enterprises often start with lower-risk internal and close-ended applications, which are easier to evaluate.

Related concepts

More concepts starting with F