LearnCen Docs
Guides 2 min read v3

1. AI Fundamentals

Learning objectives

By the end of this lesson you should understand:

  • Artificial Intelligence
  • Machine Learning
  • Deep Learning
  • Generative AI
  • Predictive vs generative systems
  • AI inference
  • AI limitations

1.1 What is Artificial Intelligence?

Artificial Intelligence (AI) is the broad field of building systems that perform tasks associated with intelligent behavior.

Examples:

  • Understanding language
  • Recognizing images
  • Speech recognition
  • Planning
  • Prediction
  • Search
  • Code generation
  • Decision support

A simple abstraction:

Input
  |
  v
AI System
  |
  v
Output

AI does not necessarily mean a chatbot. A recommendation system, fraud detector, computer-vision system and coding agent can all be AI systems.


1.2 Machine Learning

Machine Learning (ML) is a major approach to AI in which models learn patterns from data.

Training data
     |
     v
Learning algorithm
     |
     v
Trained model
     |
     v
New input
     |
     v
Prediction

Examples:

  • Predicting house prices
  • Detecting spam
  • Classifying images
  • Predicting customer churn

1.3 Deep Learning

Deep Learning uses neural networks with multiple layers.

It is widely used in:

  • Vision
  • Speech
  • Natural language processing
  • Generative AI
  • Large language models

1.4 Generative AI

Generative AI creates new content.

Examples:

  • Text
  • Code
  • Images
  • Audio
  • Video

Traditional predictive ML might answer:

Is this transaction fraudulent?

A generative model might answer:

Write a Python function that validates this transaction.

1.5 AI inference

Training and inference are different.

Training

A model learns patterns from training data.

Inference

A trained model processes a new input and produces an output.

For an LLM:

Prompt
  |
  v
Model inference
  |
  v
Generated tokens

1.6 Important limitation

AI output is not automatically correct.

A model can:

  • Misunderstand requirements
  • Produce incorrect code
  • Invent unsupported facts
  • Miss edge cases
  • Make insecure assumptions

Therefore an engineering workflow must include verification.

Generate
   |
   v
Test
   |
   v
Review
   |
   v
Verify

Exercise

  1. Give three examples of AI systems that are not chatbots.
  2. Explain the difference between ML and Deep Learning.
  3. Give two examples of predictive ML and two examples of Generative AI.
  4. Explain why generated code still needs testing.