01 · What Is AI? The Big Picture

Before using AI tools well, you need a clear mental map: what "AI" means, how machine learning, deep learning, generative AI and LLMs fit together, and what these systems are and are not good at.

Level 130 minTrack 1 · Foundations

By the end of this page you can

Artificial Intelligence in one sentence

Artificial Intelligence (AI) is the field of building computer systems that perform tasks we normally associate with human intelligence: understanding language, recognising images, making decisions, solving problems, and creating content.

This is an umbrella term. It covers chess engines from the 1990s, the spam filter in your email, the face unlock on your phone, and the chat assistant that writes Scala code with you. These systems work in very different ways.

Two ways to make a computer "smart"

1. Rules written by humans

"If the email contains 'lottery' AND an unknown sender, mark it spam." This is symbolic AI or "expert systems". It is predictable and explainable, but brittle: real life has too many cases to write rules for all of them.

2. Patterns learned from data

Show the system 1 million emails labelled spam / not spam and let it learn the patterns. This is machine learning. It handles messy reality well, but it is harder to explain and can learn the wrong lessons.

Almost all modern AI, including every AI coding assistant, is the second kind: learned from data.

The nesting dolls: AI, ML, DL, GenAI, LLM

Artificial Intelligenceany technique that makes machines act "intelligently" Machine Learninglearns patterns from data Deep Learningmany-layer neural networks Generative AIcreates new content(images, audio, text…) LLMstext & code models
Each box is a subset of the one around it. An LLM is a kind of generative AI, which is a kind of deep learning, which is a kind of machine learning, which is a kind of AI.
TermPlain meaningEveryday example
AIMachines doing tasks that seem to need intelligence.A route planner, a chess engine, a chatbot.
Machine Learning (ML)The machine learns rules from examples instead of being programmed with them.Spam filters, credit scoring, recommendations.
Deep Learning (DL)ML with large neural networks (many layers of simple maths units).Face recognition, speech-to-text, translation.
Generative AI (GenAI)Models that create new content: text, images, audio, code, video.Image generators, music generators, chat assistants.
LLM (Large Language Model)A generative model trained on huge amounts of text (and code) to predict the next piece of text.The models behind chat assistants and AI coding tools.
Foundation modelA big general-purpose model that can be adapted to many tasks.One LLM used for chat, code, summarising and translation.
Multimodal modelUnderstands and/or produces more than one type of data (text + images + audio…).Paste a screenshot of an error and ask "what's wrong?".

How machines learn: the four styles

Supervised learning

Learn from labelled examples: input → correct answer. "Here are 10,000 house descriptions with their prices. Learn to predict the price." Used for classification (spam or not) and regression (predict a number).

Unsupervised learning

Find structure in unlabelled data. "Here are 1 million customers; group them into similar segments." Used for clustering, anomaly detection and compression.

Self-supervised learning

The data creates its own labels. Hide a word in a sentence and predict it, or predict the next word. No human labelling is needed, so you can train on enormous datasets. This is how LLMs are pre-trained, and it is the main reason they could become so large.

Reinforcement learning (RL)

Learn by trial, error and reward. An agent takes actions, gets a reward signal and improves. It is used for game-playing AIs and robotics, and in LLM post-training (for example RLHF, reinforcement learning from human feedback) to make models more helpful and safer.

Analogy: learning to cook Supervised: a teacher shows you dishes and names them. Unsupervised: you sort a pantry into groups that seem to belong together. Self-supervised: you read 10,000 recipes and practise guessing the next step until you are very good at it. Reinforcement: you cook, people rate the dish, and you adjust.

A short history (why now?)

1950Turing test 1956"AI" coined 70s–90sExpert systems,"AI winters" 1997Deep Bluebeats Kasparov 2012Deep learningwins ImageNet 2016AlphaGo 2017Transformerarchitecture 2020Very large LLMs,code models 2022Chat assistantsgo mainstream 2024Multimodal,reasoning models 2025–26Agents, MCP,agentic IDEs
The ideas are old. What changed recently is the combination of the Transformer architecture, huge datasets and massive compute (GPUs).

Three ingredients came together in the 2010s:

  1. Data: the internet, open-source code and digitised books gave billions of examples.
  2. Compute: GPUs (first built for video games) turned out to be ideal for the maths neural networks need.
  3. Algorithms: the Transformer (2017, the paper "Attention Is All You Need") could be trained in parallel and scaled smoothly. Researchers found that bigger models trained on more data kept getting better ("scaling laws").

Model vs product vs agent

People mix these up all the time. Keeping them separate will make every later page clearer.

Model The trained "brain". Text in → text out. No memory, no tools. Product / App UI + system prompt + history + files + safety. e.g. a chat app, IDE plugin Agent Model + tools + loop. Plans, acts, observes, repeats until done.
The same model can power a simple chat product and a powerful coding agent. Much of the "intelligence" you experience comes from the product layer around the model.

What AI is great at, and where it fails

Usually strong

  • Drafting text, code, tests, docs, emails
  • Explaining code and concepts at any level
  • Translating between languages, including Python ↔ Scala
  • Summarising long material
  • Boilerplate, scaffolding, refactoring patterns
  • Brainstorming options and trade-offs
  • Working through common errors and stack traces

Often weak (verify!)

  • Exact facts, dates, version numbers, API names (it may hallucinate)
  • Things newer than its training data, unless given docs or search
  • Your private context: business rules, codebase conventions, unless you provide them
  • Precise arithmetic and counting without tools
  • Long chains of reasoning without checks
  • Knowing when it does not know
The golden rule AI output is a confident draft, not truth. You remain responsible for every line you commit. Expert users are not people who trust AI more. They are people who verify faster.

Narrow AI, general AI and the hype

Common myths

MythReality
"The AI looks things up in a database of facts."An LLM generates text from patterns in its weights. It only "looks things up" if the product gives it a search or retrieval tool.
"It remembers our past chats and learns from me."The model's weights do not change while you chat. Some products store "memories" and add them to the prompt. That is a product feature, not learning.
"If it sounds confident, it's right."Confidence of tone is unrelated to correctness.
"AI will replace developers."AI changes what developers spend time on: less typing, more specifying, reviewing, designing and verifying. People who use AI well are replacing workflows that don't.
"You need maths to use AI well."Not to use it well (Levels 1–3). Maths becomes important when you go into internals (Level 4).
Try it (5 min) Open any AI chat assistant and ask: "Explain the difference between machine learning and deep learning to a Scala developer, using an analogy from functional programming." Then ask: "What are three things you might have got wrong in that answer?" Notice how it critiques itself. You will use this "self-review" pattern a lot.

Key takeaways