Start here

AI, Demystified

A field guide to what AI is, how it works, and what it costs — across the whole ecosystem of models, tools, and processes, not a single product.

It's all context going in, or the model run more cheaply. Everything else is detail.
Two habits that never go stale:
1. Curate what it sees.   2. Treat every answer as a draft.
0
How it started, and what it is
Seventy years, three waves, and one idea that finally clicked. Strip the mystique and the rest is detail on top.
Curious track Builder track Concept ~6 min

· A long road to an overnight success

"AI" isn't new — it's about seventy years old, and it took three big waves to get to the thing in your pocket.

1950s–1980s

Wave one — hand-written rules

The first AI was logic and rules people typed in by hand: if this, then that. Great at chess and tax forms, hopeless at anything messy like language or vision. The world is too big to write down rule by rule.

1990s–2010s

Wave two — learning from data

Instead of writing the rules, let the machine find them in examples. Spam filters, recommendations, image labels. This is "machine learning" — statistics at scale. Powerful, but each model did one narrow job.

2017 → today

Wave three — the Transformer & scale

A 2017 design called the Transformer let models read whole sequences at once and learn what to pay attention to. Feed that architecture enough text and enough compute and something surprising happens: one model gets good at many things at once. That's the large language model — and that's "AI" as most people now mean it.

The unlock wasn't one clever trick. It was scale — more data, more compute, a design that drinks both — tipping over into capability that feels qualitatively new.

· So what is it, underneath?

Strip the wonder and a language model does one humble thing astonishingly well: it predicts the next chunk of text. You hand it words; it returns its best guess at what comes next; you pick one, add it, and ask again. Run that loop thousands of times a second and out comes an essay, a plan, working code.

Your words THE MODEL billions of fixed numbers weights frozen — they don't change Most likely next words
A model is a frozen function. Same input → same output. It doesn't change or “learn” while you chat — running it just pushes your words through fixed math and out comes a best guess.
Training · happens once

Learning the patterns

Oceans of text flow through; the model's guesses are checked against reality and billions of internal numbers get nudged until the guesses are good. Expensive, done once, frozen into a finished artifact. Think school.

Inference · every single time

Running the frozen model

Every time you use it, you run that frozen artifact. Nothing changes, no learning happens. Same input, same answer — in principle. Think the graduate at work: they don't get smarter while answering your email.

Hold that split and three confusing things make sense: why it doesn't remember you on its own, why it can be confidently wrong (it predicts what's plausible, not what's true), and why everything depends on what you put in front of it.

Every lever you'll ever pull is one of two things: shaping the context that goes in, or running the model more cheaply. Hold that and the whole field becomes a map.

Everything ahead is one of those two levers in action — the ways you feed the model (memory it can search, systems it can reach, know-how it can follow), the wider field of tools built on top of it, and what running all of it actually costs.

1
The engine: models & inference
What a "model" really is, and what the chip is actually doing when it answers you.
Builder track Mechanics ~7 min

· A model is a big bag of numbers

A "model" is just the frozen artifact from training: billions of learned numbers — its weights or parameters. That's it. No database of facts, no little person inside. The intelligence is encoded in how those numbers transform whatever you feed in. An inference engine is the software that runs that math, token by token.

· What happens between your words and its answer

  • Tokens. First your text is sliced into bite-size pieces — "playing" might split into "play" + "ing" — and each piece is swapped for a number, because numbers are all the model can actually do math on. Those pieces are called tokens.
  • Embeddings. Each token is turned into a long list of numbers you can picture as a dot placed in a huge space, where things that mean similar stuff sit close together — "king" lands near "queen," "pizza" lands far away. So meaning becomes location. That dot is its embedding, and a little order info is mixed in so "dog bites man" doesn't read like "man bites man."
  • The thinking layers (the "Transformer"). Those dots flow through dozens of identical layers. The key move in each is attention: every word glances back at all the other words and pulls in the ones that matter — the way you reread the start of a sentence to work out who "she" refers to. Stack that 30–100+ times and the model builds a rich read on what you mean.
  • A bet on the next word. The top of the stack turns all that into odds for every possible next token — basically a ranked guess: maybe 70% "the," 9% "a," and so on down the list.
  • Pick one, then do it all again. The engine picks a token from those odds, sticks it on the end, and runs the whole thing over — now one word longer. That loop is generation; it's literally why the answer types itself out one piece at a time.

· The same idea, in pictures

One line of text → a handful of tokens, each mapped to a number Token9126 izing6315 ·is382 ·just1102 ·chunks24508 .13
Tokens are chunks, not letters or whole words. Common pieces get their own token; the dot (·) marks a leading space that rides along. Each tile is really just its number — that's all the model does math on.
cat dog puppy ≈ animals king queen prince ≈ royalty pizza
An embedding turns each word into a point. Close together means close in meaning — “king” sits by “queen,” “cat” by “dog,” while “pizza” floats off alone. Nobody labeled those groups; they fall out of the numbers.
The cat sat on the  ____ mat41%← picked floor23% sofa14% roof9% moon3%
It ranks the next token, then picks one. No fact lookup — just odds over every possible next chunk. Add the choice, run the whole thing again one token longer, and the answer types itself out.

· Why speed, cost, and memory behave the way they do

  • The context window is its only memory. Everything the model can use for this answer — your question, the chat so far, any files — has to fit inside one fixed-size window. Anything outside it simply doesn't exist for this reply: no attic, no notebook it can wander off to check. That window is the context.
  • Reading is fast; writing is slow. It reads your whole prompt in one big gulp (engineers call that the prefill), then writes the reply one word at a time (the decode). Writing is the slow part — which is why a long answer takes longer than an equally long question.
  • The KV cache — its scratch notes. To write word #500 it would otherwise have to re-read the first 499 every single time. So it jots its work-so-far in a sticky-note pile and reuses it, the way you keep notes beside a book instead of restarting from page one. That pile is the KV cache: fast, but bulky — and how much memory it eats is usually the real limit on how long a conversation can run.
  • The speed tricks. Everything done for speed is really "do less work": quantization (rounding the numbers to shorter ones that are quicker to shuffle around), mixture-of-experts (waking only the slice of a giant model each word needs, not all of it), and batching (handling many people's requests together in one pass). Same goal every time — move fewer bytes, do fewer sums.

· Not all models are the same

Models split along a few axes you'll choose between constantly: closed/frontier (Claude, GPT, Gemini, Grok — you rent access over the internet; an API is just a hatch one app uses to call another) vs. open weights (Llama, Mistral, DeepSeek, Qwen — you can download and run them yourself); big & smart vs. small & cheap; reasoning models that think longer vs. fast models for bulk. The craft is matching the model to the job, not running the biggest one on everything.

2
Searchable memory: vector databases & RAG
How you give a forgetful, frozen model access to your documents — without retraining it.
Builder track Mechanics ~6 min

· The problem this solves

The model is frozen at training time and has no memory between calls. It doesn't know your contracts, your wiki, last week's meeting, or anything that happened after training. And you can't just paste a 5,000-page library into the window — it doesn't fit. So you need a way to find the few passages worth spending precious context tokens on, and hand only those over.

· Embeddings, again — meaning as coordinates

The same trick from Part 1 does the heavy lifting. Run any chunk of text through an embedding model and you get that dot in space again, where similar meaning lands nearby no matter the exact words. "How do I reset my password" and "I'm locked out of my account" end up neighbors even though they barely share a word.

· A vector database is a map of meaning

Chop your documents into chunks, turn each into its dot, and store the millions of dots in a vector database (Pinecone, Weaviate, Chroma, or pgvector living right inside a normal Postgres database). To answer a question, you drop the question's dot onto the same map and grab the dots sitting closest to it — the chunks most similar in meaning. (The technical name for "closest dots" is nearest neighbors.) It's search by idea, not by matching keywords.

· RAG — retrieve, then generate

Retrieval-Augmented Generation is the whole move in one line: retrieve the most relevant chunks, paste them into the context window, then let the model generate its answer grounded in them. It isn't teaching the model anything — the weights never change — it's curating the input so the answer is grounded in your material and can cite where it came from.

Your question + docs → dots Search your docs for the closest chunks Paste matches into the prompt Grounded answer your documents (chopped into chunks)
RAG = look it up, then answer. Your question and your files both become dots; the closest chunks are pasted into the prompt before the model writes — so the reply is grounded in your material and can cite it. The model itself never changes.
RAG doesn't give the model new knowledge. It fetches the few passages most worth spending tokens on and pastes them in before the forward pass. Context engineering, literally.

This is the engine under "talk to my documents" tools like NotebookLM, under most enterprise AI, and under the kit's own setup. Get the sources right and the answers get right; feed it noise and it drowns.

3
Reach: connectors & MCP
RAG lets it read your documents. Connectors let it reach your live systems and act.
Curious track Builder track Concept + Mechanics ~5 min

· From knowing to doing

So far the model can think and, with RAG, read your files. But your work lives in live systems — email, calendars, a ticketing tool, a database, the web. A connector is the wiring that lets the model reach those systems: pull a real value out, or take a real action (send, create, update) when you allow it.

· MCP — one standard plug for everything

MCP (the Model Context Protocol) is the open standard that makes this sane. Rather than a custom integration per tool per model, MCP gives every tool one common way to describe what it offers and every model one common way to call it. Think USB-C for AI: one port, many devices. A server can expose tools (actions), resources (data/context), and prompts (ready-made templates). It started at Anthropic and is now adopted broadly across the ecosystem.

· Why it matters — and the catch

Reach is exactly what turns an assistant (answers you) into an agent (does the job). It's also where the risk lives: capability without governance is the danger. A connector can read and act, so least-privilege access, auditing, and trusting the source of a tool are first-class concerns — not afterthoughts.

4
Know-how & named assistants: Skills, Gems, GPTs
Teaching it how to do a task — and packaging the whole setup into a reusable thing you can name.
Curious track Builder track Concept ~6 min

· Skills — the recipe cards

A Skill is a folder of procedural know-how — step-by-step instructions, and even scripts the agent can run — that it pulls out only when a task matches. Building a clean spreadsheet or a slide deck? There's a recipe behind that telling it how to do it properly, instead of improvising each time.

  • Progressive disclosure. Only a one-line description sits in memory by default; the full recipe loads when it's needed — so a pile of skills costs almost nothing until used.
  • It can run code. Skills aren't just prose; they can carry and execute scripts, which is how reliable document creation actually works.
  • An open standard. The same Skill format runs across Claude, the API, and a growing set of other agents — not locked to one product.

· The "named assistant" pattern — same idea, many brands

Here's the unlock for the whole ecosystem: every major platform lets you package a reusable assistant — pre-loaded instructions + knowledge + tools — once, and reuse it forever instead of starting cold each time. Same idea, different names:

Projects
Claude · ChatGPT

A container with your files and standing instructions, so every chat starts with your context already loaded.

Gems
Google Gemini

Custom, instruction-tuned assistants you define once and call up for a recurring kind of task.

Custom GPTs
OpenAI

Packaged assistants with their own instructions, knowledge, and actions — shareable with others.

Spaces · Notebooks
Perplexity · NotebookLM

Persistent project context and a fixed source set, so answers stay grounded in what you chose.

Skills, RAG, MCP, and memory are all context-assembly strategies. Gems, GPTs, and Projects just bundle them into a named thing you can reuse and share.

· The other path — changing the model itself

Everything above leaves the model untouched and works on the input. There’s one move that changes the model: fine-tuning — feeding it many examples so its weights shift toward your style or domain. It’s how open models like Hermes get their flavor. Heavier than prompting, and usually the last lever to reach for, not the first.

Base model general-purpose fine-tuning the weights actually change Your tuned model speaks your style / domain your examples Prompt · RAG · Skills = change the INPUT Fine-tuning = change the MODEL
Fine-tuning is the other path. Most “customizing” (prompt, RAG, Skills) only changes the input and leaves the model untouched. Fine-tuning feeds many examples and nudges the weights themselves, baking in a style or specialty — powerful, but heavier, and rarely the first thing to reach for.
5
The whole ecosystem
It was never just one company. Here's the field of platforms, systems, and tools — and how to think across it.
Curious track Builder track Reference ~7 min

· Read every vendor through three lenses

Comparing AI tools on a single score is how you get confused. Three separate lenses actually differentiate them, and a company can win on one while losing another:

  • Model — the raw intelligence (reasoning, coding, writing). Reorders every few months.
  • Product — the app around the model: projects, agents, connectors, image/video/voice. Usually the real day-to-day differentiator.
  • Deployment — cloud-hosted (convenient, your data leaves your boundary) vs. self-hosted open weights (you own the infra and the data). A governance call as much as a technical one.

· The players, in one breath

Anthropic · Claude
Generalist + agents

Top-tier reasoning, leading coding, careful writing; Skills + MCP; agentic tooling. No native image/video.

OpenAI · ChatGPT
Versatility + ecosystem

Broadest feature set and connectors, strong images, Custom GPTs. Confusing tiers; verify facts.

Google · Gemini
Long context + Workspace

Huge context, native Google-doc workflows, strong multimodal (image/video). Sprawling surface.

Microsoft · Copilot
Governed M365 work

AI inside Excel/Outlook/Teams with an enterprise data boundary. Weaker as a standalone chatbot.

Perplexity
Cited research

Live-web answers with every claim sourced; deep-research deliverables. Not for creative or coding.

NotebookLM
Source-grounded studio

Answers only from your sources, with audio/mind-map/quiz outputs. Source-capped, isolated notebooks.

xAI · Grok
Real-time / social

Live social signal and a permissive tone. Governance and brand-safety trade-offs.

Open weights
Llama · Mistral · DeepSeek · Qwen

Download and self-host for full data control and cost-at-scale. You own the infra and the guardrails.

· The layer beneath: systems & processes

Around the chat boxes sits the real machinery: agents and coding agents that do multi-step work; deep-research modes that browse and synthesize; and a self-hosting stack for running open models yourself — vLLM for throughput, Ollama/LM Studio for local runs, LibreChat/Open WebUI as governed front-ends, pgvector for retrieval. Same context-assembly ideas from Parts 2–4, just operated on your own hardware.

No single product wins every job. The highest-leverage move is a deliberate stack — a generalist, a coder, a cited-research tool, a source-grounded studio, and on-prem for sensitive data — and routing each task to the right one.
6
The truth about energy
No hype, no doom. Two things are true at once — and most people only hold one of them.
Curious track Builder track The honest version ~7 min

True thing #1 — your prompt is tiny

A typical text prompt uses a fraction of a watt-hour. Google measured its median Gemini prompt at 0.24 Wh (and about five drops of water); OpenAI's Sam Altman put an average ChatGPT query near 0.34 Wh — roughly an oven running for one second, or nine seconds of TV. The scary old "3 Wh per query" figure was about 10× too high for today's models. Feeling guilty over a single question is misplaced.

True thing #2 — the total is enormous

Multiply by billions of queries, plus training and 24/7 buildout, and it's a serious load. Global data centers used roughly 485 TWh in 2025, projected to nearly double to ~950 TWh by 2030 (~3% of world electricity). AI-focused data-center power surged ~50% in 2025. In the US, data centers already top 4% of electricity and could approach ~12% by 2028.

0.24 Wh
measured median Gemini text prompt (Google, 2025) — ~9 seconds of TV
~950 TWh
projected data-center electricity by 2030, ~2× of 2025 (IEA base case)
~50%
growth in AI data-center electricity in a single year, 2025 (IEA)

· The honest nuances

  • It varies wildly by model and task. A simple prompt is fractions of a watt-hour; a reasoning model or a very long prompt can be 10–65× more (GPT-5-class responses ~18–40 Wh; some reasoning models ~29 Wh). Cheap-to-buy is not cheap-to-run.
  • Inference now dominates. The headline used to be giant training runs (a frontier model can train on tens of GWh). But the bigger ongoing draw is now everyday use — inference — growing ~30% a year.
  • Water and carbon, briefly. Liquid cooling cuts direct water use 70–90%, but it doesn't reduce the electricity, which is the dominant cost. Energy per query keeps falling fast (Google reports a 33× drop in a year); total emissions are still rising because growth outpaces clean-energy supply.
  • It's local, not just global. The strain shows up in specific places — Ireland's data centers already exceed 20% of national electricity; parts of Virginia, Texas, and Arizona face real grid build-out.
The footprint that matters isn't your single prompt — it's the buildout, the grid, and where the power comes from. Per-query efficiency is improving fast and total demand is rising fast. Both are true.
Sources: IEA, Energy and AI / Electricity 2026 (2025–26); Google, Measuring Gemini environmental impact (2025); Epoch AI (2025); Brookings (2026); US DOE. Figures are mid-2026 estimates and move quickly — re-verify before quoting.
7
Build it — a live session
Reading only gets you so far. Right here you'll make three things — a picture, a scrap of working code, and a moving scene — by describing what you want and nudging it until it's right.
Curious track Builder track Hands-on ~10 min

· Every build is the same little loop

A poster, an app, a video clip — building any of them with AI runs the same circle. You don't need to know the how; you need to know the loop:

1Describe→ 2Draft→ 3Run & look→ 4Fix→ 5Ship

You bring the describe and the fix — the taste and the judgment. The tool does the draft and the run. So below, you're the director: change the description, watch it rebuild, keep what you like.

· Your turn — pick something to make

Palette
Poster word
How busy
Style
 
 

That's the image loop: describe (palette, word, busy-ness) → look → reroll or tweak → download. A real image model swaps these knobs for a sentence, but the loop is identical.

Tap the instructions in order — like talking to a coding agent

You said: nothing yet — tap ① to start.
Headline
Accent
Roundness

What runs

The code it wrote

You spoke in plain language; the tool wrote the code and ran it. You only judged the result and asked for the next change. That's the whole job.

Speed
How many
 

Video is just many pictures shown fast. Here you direct the motion — how quick, how much is happening — then press play. Same describe–look–fix loop, now over time.

Notice what you actually did: described, looked, adjusted — again and again. The tool handled the how; you steered the what. That's true whether you're making a poster or a payroll app.

· Now take it off the page

Those knobs were training wheels — in the real thing you just say what you want. Open a coding agent like Claude Code, type "build me a one-page site for my dog-walking gig," and it writes the files, runs them, and shows you the result. You read it and say "make the header teal and add a booking form," and it does. Same loop you just ran — only now the agent does the typing.

Try this first. Pick the smallest real thing you wish existed — a tip calculator, a birthday-countdown page, a script that renames your photos. Describe it in one sentence, let the agent draft it, run it, and ask for one fix. You'll have built something real before the loop stops feeling new.
8
Make anything — the generator playbook
Ten ways to make real things with today's tools — each one a little hands-on toy you can poke right here. Pictures, video, voice, sound, music, code, automation.
Curious track Builder track Interactive tools · mid-2026
The tools change every few months; the trick doesn't. It's the prompt, not the platform. Below, ten different little machines — play with each, then go do the real thing in the named tools.
1Make a picturetext → image
Describe it like a photo to a friend. Tap chips to build a prompt — the more specific, the better the picture.
Subject
Style
Light
ToolsNano Banana (Gemini)MidjourneyGPT ImageIdeogramFirefly
Group dare: everyone paste this same prompt into a different tool — see who lands closest.
2Fix & restyle a photoimage → image
Upload a picture and say what to change. Drag the handle to compare; tap a look to restyle it.
ToolsGemini / Nano BananaPhotoshop + FireflyMagnific (upscale)
Group dare: pass one selfie around; each person adds one ridiculous edit.
3Make a short videotext/image → motion
Think one 5–10 second shot: subject + camera move + vibe. Pick a move and hit play to preview the feel.
🎬
ToolsGoogle Veo (+audio)RunwayKlingLumaPika
Group dare: turn your group photo into a 5-second movie.
4Give it a voicetext → speech
Type a line, pick a delivery, press speak — this one really talks (your browser's built-in voice).
ToolsElevenLabsChatGPT voiceGemini
Group dare: have it read your group chat in a movie-trailer voice.
5Make sound effectstext → sound
Describe a sound and you get it. Tap a pad — these actually play (made live in your browser).
ToolsElevenLabs SFX
Group dare: score your office as if it's a horror movie.
6Write a songtext → music
Name a genre, a mood and a tempo. Press play for a taste — real notes, generated on the spot.
Tempo
ToolsSunoUdioElevenLabs MusicStable Audio
Group dare: a 60-second team theme song. (AI songs can echo real artists — mind commercial use.)
7Build an app by describing ittext → code
Say what you want; it writes and runs it. Tap a request — the working app appears below, for real. ("Vibe coding.")
No-codeLovableReplitBoltv0
In an editorClaude CodeCursorCopilot
Group dare: build a "who's buying coffee?" spinner in ten minutes.
8Spark an ideaidea engine
Stuck on what to make? Pull the lever. Don't judge the first one — spin a few, pick the one that makes you grin.
a to-do app
dog owners
that talks like a pirate
Toolsany chat modelthe Idea Seeder
Group dare: spin three times; build whichever makes the room laugh.
9Automate it — agentic systemsagents & workflows
An agentic system doesn't just answer — it plans, uses tools, and runs the steps itself, looping until it's done. Snap a flow together, then hit Run and watch it move.
Add a step:
Toolsn8n (visual workflows)Claude Cowork (hands off whole tasks)OpenClaw (open-source local agent)Zapier
Group dare: design a 5-step "Monday morning briefing" flow together.
10Pick your stackplatforms & models
No single tool wins. Answer two questions and get a starting stack — an all-in-one hub, a specialist, or fully local on your own machine.
In the mixChatGPTGeminiClaudeHermes / Llama (open weights)OpenClaw (local agent)Claude Cowork
Group dare: everyone runs it — compare the stacks you each land on.
One honest caveat. Every one of these hands you a fast, often great first draft — and sometimes a confidently wrong or generic one (Part 0). You're still the editor: generate, look, fix, and check anything you'll actually publish. Now go make something that didn't exist this morning.