← AI Practitioner study path

AI and ML basics · 10 min

AI, machine learning, generative AI and agentic AI

In this lesson you will learn what AI, machine learning, deep learning, generative AI, an LLM and agentic AI are, how they relate to each other and how to tell them apart when a question mixes them.

Task 1.1 of the AIF-C01 exam asks you to define the basic AI terms and describe how they are similar and how they differ. Those terms are artificial intelligence, machine learning, deep learning, generative AI and agentic AI, and each one is contained in the previous one or builds on it.

What is artificial intelligence?

AWS defines artificial intelligence (AI) as the technology that lets machines solve problems the way a person would, for example recognizing images, generating content or making predictions with data. It is the broadest term of all, so it covers everything from a voice assistant to a robot vacuum. For example, an online store uses AI when its search engine finds a product from a photo the customer uploads.

The three branches of AI: computer vision, natural language processing and speech recognition, each with what it does

The exam guide names three branches of AI:

  • Computer vision, which extracts information from images and video, as when it recognizes faces or reads the text in a photo.
  • Natural language processing (NLP), which interprets human language, as when it classifies a text or detects the sentiment of a review.
  • Speech recognition, which turns what a person says into text.

A single company can use all three branches. For example, the store uses computer vision to recognize the product in a photo, NLP to know whether a review is positive or negative and speech recognition to turn its customers' calls into text.

What is machine learning?

Machine learning (ML) is a type of AI that learns from data, instead of following rules someone wrote. In the AWS example, a bank wants to separate fraudulent transactions from legitimate ones, but nobody writes the rules by hand. Instead, the system receives thousands of past transactions in which it is already known which ones were fraud, and it finds the patterns on its own.

Because of this way of learning, the result of an ML model is a probability. A regular program says "if this happens, do that", while an ML model says "if this happens, there is an X% probability that it is fraud". For example, faced with a purchase made in the early morning hours from another country, the bank's model doesn't say "it is fraud", but gives a high probability of fraud, and with that number the bank decides whether to block the card.

Neural networks and deep learning

Neural network with an input layer, hidden layers and an output layer connected to each other

A neural network is an AI method inspired by the brain and made up of nodes, which are small units of calculation, connected in layers. The input layer receives the data, for example the of a photo, the hidden layers process what the previous layer passes them and the output layer gives the result. Each connection has a weight, which is a number that says how much importance that connection has, and training the network consists of adjusting those weights every time it gets something wrong. For example, if the network answers "cat" for a photo of a dog, training changes the weights a little so that next time it gets closer to "dog".

Deep learning uses neural networks with many hidden layers, and AWS talks about hundreds. It is a subset of ML, that is, a part of it, that works well with text, images and audio without anyone telling it by hand what to look for. For example, a deep learning network learns to recognize shoes in the store's photos without anyone explaining to it what a shoe is shaped like. However, not all ML uses neural networks: a and a are ML and are not networks.

Generative AI, foundation models and LLMs

Generative AI is a type of AI that creates new content, such as conversations, stories, images, video and music. Models that classify or predict analyze data that already exists, while generative AI produces something that wasn't there before, and AWS describes it as a very advanced form of deep learning. For example, a model that says whether a store review is positive analyzes a text that already exists, while a model that drafts the reply to that review creates a new text.

Behind generative AI are foundation models (FMs), which are very large models, trained on huge amounts of general data and useful for many different tasks. A large language model (LLM) is a type of foundation model focused on text, and AWS says it usually has hundreds of billions of . Domain 2 of the exam covers these models in depth.

Does it analyze or create?

0 of 5

Tap the correct column for each system.

  1. A filter that decides whether an email is spam

  2. A model that writes a product description from its features

  3. A system that recognizes the owner's face to unlock the phone

  4. A tool that draws an image from a description

  5. A model that calculates the probability that a purchase is fraud

How do these terms relate to each other?

Nested circles: artificial intelligence contains machine learning, which contains deep learning, which contains generative AI with foundation models and LLMs; agentic AI appears separately, as a system that uses those models

Objective 1.1.2 of the guide asks for the similarities and differences between these terms, and the main one is that each is contained in the previous one. So all generative AI is deep learning, all deep learning is ML and all ML is AI.

This relationship doesn't hold the other way around, because there is AI that is not ML and there is ML that is not deep learning. Agentic AI, on the other hand, is not part of this chain, because it describes a way of using a model and not a type of model. For example, a decision tree that approves returns at the store is ML but not deep learning, and an assistant that uses an LLM to change orders on its own is agentic AI that relies on a generative AI model.

What is agentic AI?

AWS defines agentic AI as an autonomous system, that is, one that decides its own steps, that acts on its own to achieve defined goals, without constant human supervision. It is almost always an LLM that is given tools, which are programs it can use, like looking up an order or sending an email, and a goal, so the model is one piece of the system and not the whole system.

Cycle of an agentic AI system: starting from a goal, it perceives, reasons, acts and learns

A person sets the goal, and from there the system follows a four-stage cycle:

  • Perceive, which is gathering data from , documents and systems.
  • Reason, which is when an LLM interprets the goal and builds a plan.
  • Act, which is using tools and applications, and where in some systems a person approves first.
  • Learn, which is adjusting what it does based on the result.

This way of working sets an agent apart from a , because a chatbot answers you and you do the rest. The AWS example is a customer service agent, which searches the company's documents, asks you for the missing information, resolves the case and, if it can't, hands it over to a person. For example, if a store customer asks to change the delivery address, a chatbot explains how to do it, while an agent looks up the order, changes the address and confirms the change.

Chatbot or agent?

A system receives the goal "rebook the customer's flight". It looks up the booking, searches for available flights, changes the booking and notifies the customer. What best describes this system?

On the exam

Since objective 1.1.2 asks for similarities and differences, a question may give you several statements about how the terms relate or describe a system so you choose what type of AI it is. In the question, these words point to each term:

  • The words "creates", "generates" or "writes", which point to generative AI.
  • The phrases "many layers" or "images and audio without anyone saying what to look for", which point to deep learning.
  • The words "goal", "tools" or "acts on its own", which point to agentic AI.
  • The phrase "learns from historical data", which points to ML.

For example, if a question describes a system that "writes" the product descriptions for a store, the word "writes" points to generative AI.

Review question

Which statement about AI, ML and deep learning is correct?

Next