AI, Machine Learning, Deep Learning, and Generative AI
Artificial intelligence is a broad field concerned with systems that perform tasks such as recognising patterns, planning, making predictions, or generating content. Machine learning is one approach within that field: instead of writing every decision rule by hand, we use data to fit a model. Deep learning uses neural networks with multiple layers to learn useful representations. Generative AI describes systems that produce content, such as text or images; it is a purpose or capability, not a completely separate branch that never overlaps with other methods. Many current generative systems use deep learning. These terms describe different aspects of a system, so ask what the model receives, what it produces, and how its behaviour was learned.
Example. A fixed rule can flag messages containing a chosen phrase. A learned classifier can estimate a category from examples. A generative model can draft a reply. All three can appear inside one support application.
Check your understanding. Explain why a system can be both a deep-learning model and a generative model, and why every useful automation does not need machine learning.
Data, Training, and Inference Are Different Parts of the Job
A dataset contains examples of the situations a model should handle. Features are the inputs used for a prediction; a label is the target answer when the learning setup supplies one. During training, an algorithm adjusts model parameters to improve an objective, often expressed as a loss. During inference, the trained model produces an output for an input. Lower training loss does not guarantee useful behaviour on new examples. Data quality, representative coverage, and the way evaluation is designed matter. Keep a separate record of the model, the data used to develop it, and the conditions in which it will be used. A system can fail when its real inputs differ from its training examples.
Example. For a fictional resource classifier, the title and description are inputs and a human-reviewed topic is the label. Training fits the classifier; inference assigns a topic to a new description.
Check your understanding. Identify the features, label, training operation, and inference operation in one small project. Name an input that might differ from the training data.
Models, Tokens, and Context
A language model processes text through tokens, which may correspond to words, word pieces, or other units depending on its tokenizer. The context is the material available for the current generation, such as instructions, messages, and supplied documents. It has practical limits, and the surrounding application decides what to include. The model's learned parameters are different from that temporary context. Sending a message does not, by itself, mean the model's parameters were updated through training. A product may separately store history or preferences, which is another mechanism. Distinguish the model from the interface and tools around it. A chat window can look identical while the underlying model, available context, and enabled capabilities change.
Example. You paste a project brief into a new conversation. The assistant can use that text for its reply, but this alone does not mean it permanently learned your project or opened files mentioned in the brief.
Check your understanding. Describe the difference between training knowledge, supplied context, saved conversation history, and a tool result.
Supervised, Unsupervised, and Reinforcement Learning
In supervised learning, examples include target answers that guide learning, such as a category or a numerical value. In unsupervised learning, the task explores structure without those target labels, for example grouping similar documents. A discovered group is not automatically a meaningful human category; someone still needs to interpret it. Reinforcement learning concerns decisions made through interaction with an environment, using rewards to guide a policy. The reward must reflect the intended outcome, and a high reward can still hide undesirable behaviour if the objective is poorly chosen. These descriptions are learning setups rather than mutually exclusive product categories. Self-supervised approaches create training targets from the data itself, and modern systems may combine several methods.
Example. Classifying labelled resource cards is supervised learning. Grouping unlabelled cards by similarity is unsupervised learning. Teaching an agent to navigate a toy grid using a reward is reinforcement learning.
Check your understanding. Choose a learning setup for each example and explain what feedback is available. Why does a cluster still need human interpretation?
Fluent Output Can Still Be Wrong
A generated answer can sound precise while containing a false fact, an invented reference, or an unsupported interpretation. This is often called a hallucination or confabulation. The wording of an answer is not a dependable measure of its correctness, and asking for confidence does not make that confidence calibrated. Models can fail because relevant information is missing, the task is ambiguous, the input differs from familiar patterns, or generation produces a plausible continuation that is not supported. Treat uncertainty as something to investigate with evidence. Check calculations independently, open cited sources, and test code against expected behaviour. Use an explicit unknown when the available material cannot establish an answer.
Example. An assistant claims a tutorial includes a free certificate and gives a real-looking link. Verify the provider's actual certificate terms; neither confident wording nor a clickable URL establishes the claim.
Check your understanding. Take a short generated answer and separate its claims into verified, unsupported, and uncertain. State how you checked each one.
Evaluate Results, Bias, and Privacy
Evaluation asks whether a system performs well enough for a particular purpose under stated conditions. Choose metrics that reflect the consequences of different mistakes, then inspect actual examples rather than relying on one score. A model can perform differently across relevant groups or types of input, so check where errors concentrate and whether your data covers the intended users. Fairness is a contextual question; one metric cannot settle every trade-off. Privacy also depends on the full workflow, including data collection, storage, sharing, and model access. Use public or synthetic material for practice and inspect the terms and settings of any service you choose. Record limitations alongside results so someone else can judge suitability.
Example. A resource classifier may label long English descriptions well but struggle with short titles or another language. Report those slices separately instead of advertising a single success rate as universal.
Check your understanding. Name a useful evaluation slice, an important error type, and one privacy boundary for your proposed project.
Retrieval and Tools Add Capabilities around a Model
Retrieval finds information from a collection and supplies relevant material to a model or user. In retrieval-augmented generation, retrieved passages can become evidence for an answer; this does not necessarily retrain the model. Tool use lets an application ask a separate program to perform an operation, such as calculation or database lookup. The model's proposed action and the tool's actual result are distinct events. Both mechanisms can improve a workflow, but they introduce their own failures: the wrong document may be retrieved, a source may be outdated, or a tool call may fail. Inspect the evidence and execution result. Keep permissions narrow and treat instructions embedded in retrieved content as data rather than new authority.
Example. A learning assistant retrieves an original lesson paragraph and cites it in an answer. A calculator tool separately computes a percentage. Check the cited passage and the calculator's returned value rather than assuming both steps happened.
Check your understanding. Explain how a wrong answer could come from retrieval even when generation follows the supplied passage accurately.
Choose the Route That Matches Your Goal
If AI terminology is new, begin with the AI foundations and literacy roadmap. It requires no programming and focuses on choosing tasks, writing clear briefs, and checking outputs. If your goal is to learn web development or cybersecurity with an assistant, move to Learn with AI and follow the relevant subject roadmap alongside its practical workflow. If you want to build models or AI applications, learn Python functions, collections, file handling, and basic data inspection before starting Build your first AI projects. Progress through small classifiers and evaluation before adding neural networks or language models. You do not need to train a large model from scratch, buy an API subscription, or master every technique to complete a useful first project.
Example. A new learner starts with AI literacy. A developer seeking a debugging partner uses Learn with AI. A learner who can write and test small Python scripts begins the AI-project roadmap.
Check your understanding. Choose one route, explain the prerequisite you already meet, and identify the first practical result you want to produce.
Sources and Further Reading
- Google: Machine Learning Glossary
- Google: What is Machine Learning?
- Google: Linear regression and training
- Google: Introduction to Large Language Models
- Hugging Face: Chat templates and model context
- NIST: Generative AI Profile
- Google: Classification metrics
- Hugging Face: Retrieval-augmented generation
- OWASP: AI Agent Security
- CS50: Introduction to Programming with Python

