123DevOps··8 min read

What are AI, machine learning, and LLMs? The differences without the jargon

Understand in simple terms the difference between artificial intelligence, machine learning, deep learning, and LLMs, what generative AI does and doesn't do, where it shows up in day-to-day DevOps work, and how to safely try a local model.

AI

Your phone keyboard suggests the next word. Your bank blocks a suspicious purchase. An assistant writes a Bash script from a single sentence. All of this gets called “AI,” but very different things are happening behind the scenes. Let’s untangle AI, machine learning, deep learning, and LLMs without the jargon — and every technical term gets explained on the spot.

Circles inside circles

Think of Russian nesting dolls: one inside the other. AI terms work the same way.

┌──────────────────────────────────────────────────┐
│ Artificial Intelligence (AI)                     │
│   ┌──────────────────────────────────────────┐   │
│   │ Machine Learning                         │   │
│   │   ┌──────────────────────────────────┐   │   │
│   │   │ Deep Learning (neural networks)  │   │   │
│   │   │   ┌──────────────────────────┐   │   │   │
│   │   │   │ Generative AI / LLMs     │   │   │   │
│   │   │   └──────────────────────────┘   │   │   │
│   │   └──────────────────────────────────┘   │   │
│   └──────────────────────────────────────────┘   │
└──────────────────────────────────────────────────┘
  • Artificial Intelligence (AI) is the biggest circle: any technique that makes a computer perform tasks that would require human intelligence, such as recognizing an image or understanding text. It even includes old systems built from hand-written rules.
  • Machine learning is the part of AI where the computer learns patterns from examples.
  • Deep learning is a type of machine learning that uses neural networks with many layers.
  • Generative AI and LLMs (Large Language Models) sit at the center: models that generate new content, such as text, code, and images.

Every LLM is machine learning, but not all machine learning is an LLM — just as every dog is a mammal, but not every mammal is a dog.

Traditional programming vs. machine learning

In traditional programming, a person writes the rules. In machine learning, they provide data and example answers, and the computer figures out the rules.

The spam filter is the classic example:

Traditional programming:
  rules (written by people) + data  →  answer
  IF the subject contains "make money fast" OR the sender is unknown → spam

Machine learning:
  data + answers (labeled examples)  →  model (learned rules)
  10,000 emails marked as "spam" / "not spam" → model that classifies new emails

With manual rules, the spammer changes one word and the filter fails. With machine learning, the algorithm analyzes thousands of examples and finds the signals that matter on its own: words, links, sender, time of day. The result is a model — a file with the learned patterns — that takes a new email and returns a prediction, usually with a probability.

Two important terms: training is the phase where the model learns; inference is using the finished model to answer. In production, what runs is inference.

Machine learning isn’t always the best choice. When the rules are clear and stable, like calculating a discount from a fixed table, traditional code is simpler and easier to explain.

The three types of machine learning

Type How it learns Everyday example IT example
Supervised From examples that already have the right answer (labels) Spam filter, predicting a house’s price Routing tickets to the responsible team
Unsupervised Looks for groups and patterns in unlabeled data Grouping customers with similar shopping habits Finding unusual behavior in metrics
Reinforcement Through trial and error, with rewards and penalties A program that learns to play chess or video games One of the tuning stages of LLMs uses human feedback as a reward

A label is simply the right answer attached to each example: “this email is spam,” “this house sold for this much.”

Deep learning and neural networks

A neural network is a model loosely inspired by the neurons in the brain. It’s made of layers of small units that receive numbers, multiply them by weights (adjustable values), and pass the result along. During training, the weights are nudged little by little, over and over, so the prediction error goes down.

The “deep” comes from the many layers. In a photo, the first layers detect edges, the middle ones detect shapes, and the last ones recognize faces or objects. This works very well for images, audio, and text, but it requires lots of data and lots of compute — which is why you hear so much about GPUs (graphics cards), which are great at running many calculations in parallel.

Generative AI and LLMs

Generative AI is AI that creates new content: text, images, audio, code. An LLM is a generative language model, trained on an enormous amount of text. Well-known examples include the Claude (Anthropic), GPT (OpenAI), Gemini (Google), Llama (Meta), and Mistral families.

What an LLM does

At its core, an LLM does one thing: it predicts the next token. A token is a piece of text — a word, part of a word, or a punctuation mark. Given “The sky is,” the model calculates that “blue” is a likely continuation, appends that token, and repeats, until it has built paragraphs or a code file.

It sounds simple, but at a massive scale the model picks up grammar, styles, programming languages, and many relationships between concepts. The details (tokens, context, temperature) are in how an LLM works.

What an LLM doesn’t do

  • It doesn’t query a database of facts. It generates the most likely text. When it doesn’t know, it can make things up with total confidence — what’s called a hallucination.
  • It doesn’t know what happened after training, unless it gets that information in the conversation or in documents.
  • It doesn’t test what it writes, unless it’s connected to tools that run and check things.
  • It has no commitment to the truth. Plausible is not the same as correct.

Common tasks

Task Example Watch out for
Classify Sort tickets into “bug,” “question,” and “incident” Spot-check a sample of the results
Summarize Summarize the conversation from an incident It may leave out an important detail
Generate code Bash script, Dockerfile, SQL query Review and test before using it
Extract data Pull the IP, timestamp, and error code out of a log Validate the output format
Translate Documentation from Portuguese to English Technical terms and tone
Explain Explain an error message Confirm it against the official docs

To ask better, see prompt engineering for tech professionals.

Where DevOps meets AI

For people working in DevOps, AI shows up on three fronts:

  1. Assistants. Tools that complete code, explain errors, edit files, and, with your permission, run commands. See AI coding assistants.
  2. AIOps. Machine learning applied to operations: detecting anomalies in metrics and grouping related alerts. See AIOps in practice.
  3. Running models. A model in production is a workload like any other, just hungry for GPU and memory. Containers, monitoring, and cost control still apply.

The same safety rules apply to all three: the answer can be wrong, so a human reviews it; never paste secrets or personal data into AI tools without company approval; and agents get only the minimum permissions they need.

Common myths

  • “AI thinks like a person.” It reproduces statistical patterns in text; it has no intent and no experience.
  • “If it answered confidently, it’s right.” The tone is the same whether the model is right or making things up.
  • “AI will replace the DevOps team.” It changes the work, but someone still decides, reviews, operates, and is accountable for the system.
  • “The model learns from every conversation.” The weights don’t change while you chat; it only sees the context. Some services may use conversations to train future versions, depending on your plan’s policy. Check the terms.
  • “I need a supercomputer.” Small models run on an ordinary laptop, with lower quality and speed.

Hands-on: a model running on your machine

Ollama is a tool that downloads and runs open models locally, so nothing you type leaves your machine. Install it following the official documentation, then:

# list the models you've already downloaded
ollama list

# download the model (the first time) and open an interactive chat
ollama run <model>

# ask a single question, without interactive mode
ollama run <model> "Explain what a container is in 3 sentences"

# remove a model to free up disk space
ollama rm <model>

Replace <model> with a name from the Ollama model library; if you’re short on memory, pick a small model. In interactive mode, /bye ends the conversation.

Three experiments: ask something you already know the answer to; ask about a recent event and notice the knowledge cutoff; ask the same question twice and compare. You can also repeat this in a web chat assistant, keeping in mind that whatever you type there goes to a third-party service.

Summary

  • AI contains machine learning, which contains deep learning, which contains LLMs
  • Machine learning learns from examples instead of following hand-written rules
  • The three types are supervised, unsupervised, and reinforcement learning
  • An LLM predicts the next token; it is not a database of facts
  • AI answers always get human review, and secrets never go into the prompt
  • I tried a local model with Ollama or a chat assistant

AI is neither magic nor a threat: it’s statistics at scale, and those who understand the basics use it better and get fooled less.

Get updates on new posts and stay in the loop!