Skip to content
SparkTime, home
AI From Zero to Productive
Lessons
1 · Understanding Modern AI
2 · Talking to AI Effectively
3 · AI for Learning
4 · AI for Work and Productivity
5 · AI for Developers
6 · AI for Career Growth
7 · Research, Verification and Responsible AI
8 · Automation and AI Agents
9 · Build Your Personal AI System
Lesson 2 of 35

Lesson 2 · Understanding Modern AI

AI, Machine Learning, Generative AI and LLMs: The Map

AI, machine learning, deep learning, generative AI, LLM, chatbot, model, agent: the words get used as if they mean the same thing. They do not. This article draws one simple map so every later article makes sense.

On this page

Key takeaways

  • AI is the broad goal of software that does tasks needing intelligence. Machine learning is one way to get there: learning patterns from data instead of following hand-written rules.
  • Generative AI creates new content such as text, images or code. A large language model is a generative model trained on text.
  • A model is not the same as a product. ChatGPT, Gemini, Claude and Copilot are products that wrap models with tools, settings and safety layers.
  • Predictive AI and generative AI fail in different ways, so they need different kinds of checking.
  • Use the vocabulary in this article as the shared language for the rest of the course.

If you have tried to read about AI, you have met a pile of words that seem to blur together. A news story says "AI", a course advert says "machine learning", a colleague says "the model", and your phone offers a "smart assistant". Are these the same thing, or five things?

They are related, and once you see how, most of the confusion goes away. This article is a map, not a lecture. By the end you will know which word to use for what, and why that matters when you are deciding how far to trust a tool.

What you will learn

#
  • The nested relationship between AI, machine learning, deep learning, generative AI and large language models.
  • The difference between writing rules and learning from data.
  • The difference between AI that predicts and AI that generates.
  • The difference between a model, a product and an interface.
  • The shared vocabulary used in the rest of the course.

The idea in plain words: rules versus learning

#

Imagine you want software that decides whether an email is spam.

Approach one: write rules. You sit down and write: "If the subject contains 'winner' and the sender is unknown, mark as spam." You add more rules for every trick you notice. This works for a while. Then spammers change their wording and your rules fall behind. Someone has to keep writing rules forever.

Approach two: learn from examples. You collect many thousands of emails that people have already labelled "spam" or "not spam". You give them to a program that searches for patterns that separate the two groups. The result is a model: a large set of numbers that captures those patterns. Now, when a new email arrives, the model scores it. No one wrote a rule about the word "winner". The model picked up what mattered from the examples.

Approach two is machine learning. The key shift is this:

Traditional programming

Machine learning

You supply

Rules and data

Data and the right answers (examples)

The computer produces

Answers

The rules (in the form of a model)

Good for

Tasks you can describe step by step

Tasks too messy to describe, such as recognising speech

That is almost the whole difference. When people say a system "was trained", they mean that approach two was used to produce the model.

The map: circles inside circles

#

Here is how the common terms nest. Read it from the outside in.

Term

What it means

Everyday example

Artificial intelligence (AI)

The broad aim of making software do tasks that normally need human intelligence

A route planner, a chess program, a chatbot

Machine learning (ML)

One way of doing AI: learn patterns from data instead of writing rules

A bank flagging unusual card payments

Deep learning

A kind of ML using large, layered networks of numbers called neural networks

Voice assistants recognising speech

Generative AI

AI that creates new content: text, images, audio, code, video

A tool that drafts an email or paints a picture from a description

Large language model (LLM)

A generative model trained on huge amounts of text to produce text

The engine behind AI chat assistants

Two details matter. First, not all AI is machine learning. A chess engine that follows hand-written search rules is AI without learning. Second, not all machine learning is generative. A spam filter does not create anything; it classifies.

Three ways machines learn (one paragraph each)

#

You do not need these for daily use, but they help you read news and documentation.

  • Supervised learning uses examples with answers. Show a model many house details and their sale prices, and it learns to estimate prices for new houses. Spam filters and loan-scoring systems are mostly of this kind.
  • Unsupervised learning finds structure without answers. Give a shop its customers' purchase histories and ask the program to group similar customers. No one told it what the groups should be.
  • Reinforcement learning learns by trial, reward and penalty. A game-playing program tries moves, gets a score, and gradually prefers moves that earn more. It is also one ingredient used to make chat assistants more helpful, which a later article touches on.

Predictive AI versus generative AI

#

This distinction is the most useful one for deciding how to check output.

  • Predictive (or discriminative) AI takes input and produces a label or number: spam or not spam, fraud or not fraud, a price estimate. The output space is small and checkable. You can measure how often it is right on test data.
  • Generative AI takes input and produces new content. The output space is huge: any paragraph, image or function. There is rarely one right answer, so "is it right?" is harder to answer.

That difference changes how you work with each. If a fraud model is wrong 2 percent of the time, a bank can count that. If a writing assistant produces a fluent paragraph containing one invented fact, nothing flags it. The fluency hides the error. We will return to this in Why AI Sounds Right and Still Gets Things Wrong.

Where large language models fit

#

A large language model is a generative model for text. It is trained on a very large collection of writing so that, given some text, it can continue it plausibly. "Large" refers to the amount of data and the number of adjustable numbers in the model (often billions). Because language includes explanations, code, translations and question-and-answer pairs, a model that continues text well can also do many things that look like "understanding", such as answering questions and following instructions.

Some models today are multimodal, meaning they can take in or produce more than text: images, audio, sometimes video. Image generators work on a different technical principle than text models, but you use them in a similar way: you describe what you want. For this course, almost everything we do uses language models, because language is the interface to most useful work.

The next article opens the box to show how they work. For now, remember one idea: an LLM is trained to produce plausible text, and plausible is not the same as true.

A model is not a product

#

This is the confusion that trips up most beginners, and clearing it up saves a lot of time.

  • A model is the trained numbers: the engine.
  • A product is the thing you use: the car around the engine. It adds an interface, settings, saved conversations, file upload, web search, safety rules, connectors to other apps and sometimes a memory feature.
  • An interface is how you reach the product: a web page, a phone app, a plug-in inside your editor, a chat box in your word processor.

Layer

Examples (current, and likely to change)

What can differ

Model

The language models made by AI labs, which are released and retired regularly

Quality, speed, cost, strengths, how recent its training data is

Product

ChatGPT, Gemini, Claude, Microsoft Copilot, Perplexity, GitHub Copilot, and many others

Features, tools, privacy terms, whether it searches the web, whether it keeps memory

Interface

Web, mobile, editor extension, office-suite sidebar

Convenience, what context it can see

Why this matters to you:

  1. The same underlying model can behave differently in different products, because the product decides what it can see, which tools it can use and what rules apply.
  2. Two products can share a model family but have different privacy terms. For example, a company's approved enterprise product and a consumer app may handle your data differently. Always check the product's own documentation.
  3. Product names change. For instance, Microsoft's own documentation notes that "Microsoft 365 Copilot is now named Microsoft Copilot", and Google's announcements have described NotebookLM notebooks becoming usable as sources inside the Gemini app. Learning the layers protects you from relearning everything after each rename.

The vocabulary this course uses

#

Terms are used the same way in every article. Keep this table handy.

Term

Meaning in this course

AI assistant

A chat-style product built on a language model

Language model / LLM

The trained model underneath, which predicts and produces text

Prompt

Everything you send to the model in a request: instructions, background, examples, pasted material

Context

Everything the model can see during a conversation: your messages, its replies, attached files, and any tool results

Token

A small piece of text the model reads and writes (covered next)

Grounding

Tying an answer to specific source material, either pasted by you or retrieved by a tool

Hallucination

A fluent output that is false, unsupported or invented

Workflow

A fixed series of steps, some of which may use AI

Agent

A system where the AI chooses actions and tools to pursue a goal, covered in Module 8

What this map does not claim

#

Notice what we left out: no prediction about when machines will "match" human thinking, no claim that today's assistants understand like people do, no list of winners. Those debates are interesting, and they are unresolved, and none of them is needed to use these tools well. A practical stance is: treat current AI as powerful, uneven and fallible, and design your habits around that.

Common misconceptions

#
  • "AI and machine learning are the same." ML is one method inside AI.
  • "The AI looks things up." A language model alone generates text from what it learned in training and what is in the conversation. Some products add search or document tools, which is a different thing. Always find out which you are using.
  • "The AI remembers me." Some products keep memory features, and many do not. A bare model has no memory beyond the current conversation's context.
  • "Newer always means more accurate for my task." Newer models are often stronger, but not on every task, and not at being honest about uncertainty.
  • "A confident tone means it knows." Tone is a property of the writing, not of the knowledge behind it.

Exercises

#

Exercise 1

Predict or generate?

#

Label each as predictive or generative AI: (a) a system that rates a photo as "contains a cat" or "does not", (b) a tool that writes a product description from three bullet points, (c) a model that estimates the delivery time of an order, (d) a tool that turns a spoken request into an image.

Exercise 2: Rules or learning?

#

For each task, say whether you would start with hand-written rules or a learned model, and why: (a) checking that a form's PIN code field has six digits, (b) deciding whether a photo of a leaf shows a diseased plant, (c) calculating GST on an invoice.

Exercise 3: Model, product or interface?

#

Sort these into model, product or interface: (a) "the chat window in my phone's app", (b) "the underlying system trained on text that does the predicting", (c) "an assistant that can also search the web and read my uploaded PDFs", (d) "a sidebar inside my document editor".

Exercise 4: Find the wrong sentence

#

One sentence below is wrong. Find it and fix it. "Machine learning is a way of building AI by learning patterns from data. A large language model is a kind of generative model trained on text. Because a model is fluent, we can assume its statements are accurate. A product wraps a model with features and settings."

Show solutionHide solution

(a) Predictive. It outputs a label from a small fixed set. (b) Generative. It creates new text. (c) Predictive. It outputs a number, an estimate. (d) Generative. It creates a new image (and it is multimodal because it takes in speech and produces an image).

Why this matters: (a) and (c) can be scored against known answers, so you can measure their accuracy. (b) and (d) have no single right answer, so judging them requires a person or a checklist.

Exercise 2

Show solutionHide solution

(a) Rules. "Exactly six digits" is a precise rule, and a simple check is faster, cheaper and perfectly reliable. (b) Learning. The appearance of disease varies enormously and cannot be captured in a short list of rules, so you would train a model on labelled photos. (c) Rules. GST follows defined rates and arithmetic. Using a language model here would add risk with no benefit, since a calculator gets it right every time.

The lesson carries into Module 8: when a precise rule exists, use it. Machine learning and language models earn their place when the rules are too messy to write down.

Exercise 3

Show solutionHide solution

(a) Interface. (b) Model. (c) Product. It adds tools (web search and file reading) around a model. (d) Interface. It is a place where a product shows up inside another application.

If you hesitated on (c), the test is: does it add features beyond raw text prediction? If yes, it is a product.

Exercise 4

Show solutionHide solution

The wrong sentence is the third: "Because a model is fluent, we can assume its statements are accurate." Fluency is not evidence of accuracy. A language model is trained to produce plausible text, and it can write a smooth, confident paragraph that contains false statements.

A corrected version: "Even though a model is fluent, its statements still need checking, in proportion to the stakes."

Where to go next

#

Sources & further reading

  1. learn.microsoft.com
  2. workspaceupdates.googleblog.com
  • Guide · Technology

    Writing Better AI Prompts: A Practical Guide

  • Guide · Technology

    How Do AI Chatbots Like ChatGPT and Claude Actually Work?

  • Guide · Career

    A LinkedIn Profile That Gets Recruiter Messages