Chain-of-Thought: The Math Show Your Work

Chain-of-Thought: The Math Show Your Work

Simor Consulting | 17 Jul, 2026 | 09 Mins read

Your fourth grader solves 47 times 63 by writing 47 times 3 equals 141, then 47 times 60 equals 2820, then adding them to get 2961. She shows the steps not because the teacher asked, but because splitting the problem into steps is how she knows the answer is right. Show the work, and the errors become visible. Skip the work, and you either get it right by luck or you do not.

Chain-of-thought prompting applies the same logic to language models. Instead of asking for the answer directly, you ask the model to produce the intermediate steps. The reasoning becomes visible. The answer becomes auditable.

Why Steps Matter

A model that produces steps can be checked at each step. If the model reaches a wrong conclusion, you can locate which step went off track. A model that produces only the final answer gives you no purchase for debugging. You either trust it or you do not.

This is not a trivial concern. Language models produce confident outputs from inputs that should give them pause. The model that states an answer directly has no mechanism for flagging uncertainty. The model that shows its work can be interrogated at the transition point between correct reasoning and incorrect conclusion.

Chain-of-thought also tends to improve the answer itself. Forcing the model to articulate intermediate reasoning often leads it to catch assumptions it would otherwise glide past. The model doing long division by showing its work is more accurate than the model that states the quotient directly.

This is not magic. The model is not “thinking” in any human sense. But the sequential generation of tokens that correspond to steps happens to be a structure the model can use more reliably than a direct jump to an answer. The model is pattern-matching against reasoning patterns it has seen in training. When those patterns involve visible intermediate states, it performs better than when it is expected to jump from problem to solution.

What Counts as a Step

Not all problems have steps that are worth showing. A step is meaningful when it represents a distinct cognitive operation that can succeed or fail independently of other steps.

Math problems have natural steps: carry operations, column additions, multiplications. Logic puzzles have steps: premise identification, rule application, conclusion derivation. Multi-constraint scheduling has steps: constraint listing, feasibility checks, optimization passes.

Simple factual retrieval has no meaningful steps. “What is the capital of France?” does not decompose into intermediate claims that could be individually evaluated. Classification problems with clear categories often do not benefit from step-by-step reasoning unless the categories themselves require multi-part evaluation.

The question to ask: if the model got one part wrong, could I identify which part? If yes, steps are probably useful. If no, the problem may be atomic.

Example-Based vs Instruction-Based Prompting

You can prompt chain-of-thought by example: provide a few worked examples in your prompt that show the steps. Or you can prompt it by instruction: tell the model to “show your work” or “explain your reasoning.”

Example-based prompting tends to be more reliable because it demonstrates the expected step structure directly. The model sees the pattern and follows it. The examples do not need to be exhaustive; three or four well-chosen worked examples often calibrate the behavior better than a paragraph of instructions.

Instruction-based prompting works when you cannot anticipate all the step patterns in advance, or when the step structure varies enough that fixed examples would constrain the model inappropriately. It is less reliable but more flexible.

The two approaches can be combined: examples plus an instruction to generalize the pattern. This often outperforms either alone.

When Chain-of-Thought Helps and When It Does Not

Chain-of-thought helps most on problems with decomposable steps: math, logic puzzles, multi-constraint scheduling, analysis with distinct phases. It tends to help less on questions where the answer is a simple retrieval: factual recall, straightforward classification, direct translation.

The technique also depends on the model. Some models handle intermediate step generation well; others produce plausible-sounding but incorrect intermediate steps that lead to worse answers than direct generation would have. Test this with your specific model and your specific problem types.

There is a latency cost. Showing steps generates more tokens, which takes more time and costs more money. The accuracy benefit has to be worth the additional latency and cost. For internal applications where latency matters less than accuracy, the trade-off often favors chain-of-thought. For user-facing applications where response time affects experience, you may need to make the trade-off explicitly.

Chain-of-Thought and Model Confidence

Models that show their work sometimes produce a troubling behavior: they generate steps that look correct but lead to wrong answers, and they generate those steps with the same confidence as steps that lead to correct answers. The visibility of steps can create false confidence in the reasoning process.

This is different from the problem of direct wrong answers, but not necessarily better. A wrong answer stated directly can be flagged as unexpected. A wrong step stated confidently can be mistaken for correct reasoning and go unchallenged.

Mitigation strategies include asking the model to evaluate its own confidence at each step, or asking for alternative reasoning paths that might reach different conclusions. These add complexity but can catch cases where the visible steps are producing false confidence.

Faithfulness and Rationalization

A deeper problem is faithfulness: the steps the model shows may not be the actual steps it took. The model generates a plausible reasoning chain that justifies the answer, but the actual computation that produced the answer may have been different.

This is not unique to models. Humans do this too: they form intuitions, then construct post-hoc explanations that sound reasonable but may not reflect the actual cognitive process. The difference is that we have no way to peek inside the model’s computation to verify.

Faithfulness matters if you are using the explanation for accountability or debugging. If the stated reasoning is not the actual reasoning, you are debugging the wrong thing. Techniques that improve faithfulness, such as asking the model to regenerate explanations from scratch after reaching an answer, can help but do not eliminate the problem.

The Self-Consistency Test

One technique for catching unfaithful reasoning is self-consistency testing. Generate multiple reasoning chains for the same problem, then check whether they reach the same conclusion. If different reasoning paths arrive at the same answer, the answer is more trustworthy. If they arrive at different answers, something in the reasoning is unstable.

Self-consistency is a proxy for reliability. It does not guarantee correctness: multiple reasoning chains could reach the same wrong answer through similar errors. But it catches cases where the reasoning is flaky, producing different conclusions from similar starting points.

Self-consistency testing increases cost proportionally with the number of chains you generate. Three chains means three times the tokens. The accuracy benefit has to be worth the additional inference cost.

Chain-of-Thought Sensitivity to Prompt Framing

The same problem expressed differently can produce different reasoning paths and different results. Chain-of-thought reasoning is not immune to framing effects.

Consider a logic puzzle: one framing leads the model down the correct path, another framing leads it down an incorrect path that still produces a confident, step-by-step reasoning chain reaching a wrong answer. The steps look legitimate. The conclusion is wrong.

This is different from the faithfulness problem. In the faithfulness problem, the model reaches an answer through some unknown computation and then generates plausible steps. In the framing problem, the model genuinely follows a reasoning path that is sensitive to how the problem is expressed.

Testing chain-of-thought prompts with multiple phrasings of the same underlying problem helps identify whether your prompting is robust to framing variation. If it is not, you may be overfitting to one way of expressing the problem.

Chain-of-Thought in Multi-Agent Systems

Chain-of-thought becomes more complex and more valuable in systems with multiple agents. When one agent’s output becomes another agent’s input, the reasoning chain of the first agent shapes the reasoning of the second.

If agent A generates a chain-of-thought that arrives at conclusion X, and agent B uses conclusion X as a premise for its own reasoning, errors in A’s chain compound through B’s chain. The final output may be confidently wrong in ways that trace back to an early step.

This argues for making intermediate reasoning visible at agent boundaries. If agent B can see agent A’s reasoning, B can evaluate whether the premises are sound before using them. If the reasoning is hidden behind a conclusion, B has no choice but to trust it.

Multi-agent chain-of-thought is an area where the technique pays off most: the visibility enables correction at boundaries before errors propagate downstream.

The Confidence Calibration Problem

Chain-of-thought produces confident steps that lead to wrong answers. This is a specific failure mode that deserves its own name: stepwise confidence without global accuracy. Each step looks justified. The conclusion is wrong. The model does not flag its own uncertainty.

Humans are susceptible to this too: an expert who is confident about each step of an argument may still reach a wrong conclusion through a subtle error. The difference is that humans can often sense when something feels wrong. Models do not have that sense.

Techniques for calibrating chain-of-thought confidence include asking the model to express uncertainty at each step, asking for alternative reasoning paths that might reach different conclusions, and explicitly prompting for “confidence scores” at each transition. These techniques are not reliable, but they reduce the false confidence problem somewhat.

Real-World Scenario: Medical Diagnosis Support

Consider a system that helps clinicians with differential diagnosis. The model receives patient symptoms and produces a ranked list of possible conditions. Without chain-of-thought, the model produces a list with no visible reasoning. The clinician has no way to check whether the model weighed the symptoms correctly.

With chain-of-thought, the model shows its reasoning: “Patient presents with symptom A, which is consistent with conditions X, Y, and Z. However, the absence of symptom B rules out Y. The presence of symptom C increases the likelihood of X relative to Z.” The clinician can evaluate each claim against their medical knowledge and the patient’s record.

The visibility enables medical oversight. The clinician catches errors without having to run the model’s reasoning themselves. The chain-of-thought does not replace clinical judgment; it makes the model’s reasoning available for clinical review.

Real-World Scenario: Code Debugging

Chain-of-thought helps when the model is debugging code. The user presents a bug report and a failing test. The model does not just state “the bug is in line 47.” Instead, it traces through the execution: “The function receives input A, which is expected to be non-null. The caller passes null, which violates the precondition. This null propagates to line 47, where the code attempts to call a method on null, causing the crash.”

The step-by-step trace makes it possible for the developer to verify each link in the causal chain. If the model misidentified where the null was introduced, the developer can spot that and push back. The chain-of-thought makes the model’s assumptions visible so they can be checked against the developer’s understanding.

Real-World Scenario: Financial Analysis

A financial analyst asks: “Should we invest in Company X given their recent quarterly results?” The model without chain-of-thought produces a recommendation: “Yes, the company is a good investment.” This is not actionable. The analyst does not know what factors the model considered or how it weighed them.

With chain-of-thought, the model shows its reasoning: “Revenue grew 15% year-over-year, which exceeds the sector average of 8%. However, margins declined from 22% to 18%, suggesting cost pressures. The balance sheet shows net debt of 2.1x EBITDA, which is within acceptable range for the industry. Management raised full-year guidance, which suggests confidence in the second half. Overall, the growth trajectory is positive but margin compression warrants attention.”

The analyst can evaluate each factor. They might disagree with the weight given to margin compression versus revenue growth. They can push back on specific points or accept the overall conclusion. The chain-of-thought makes the recommendation auditable.

When to Debug the Chain-of-Thought

When a chain-of-thought produces a wrong answer, the natural instinct is to look at the final step and find the error there. Often the error originated earlier: a step made an incorrect assumption that propagated forward.

This is where chain-of-thought pays off over direct answers. You can trace backwards: which step introduced the error? Was it a misidentification of a premise? A wrong rule application? An arithmetic error? The visible chain lets you pinpoint the failure.

Without chain-of-thought, you cannot distinguish between these failure modes. A wrong answer might come from a misread input, a flawed inference rule, or an arithmetic slip. Chain-of-thought does not eliminate these errors, but it makes them locatable.

Decision Rules

Use chain-of-thought when:

  • The problem has visible intermediate steps that can be checked individually
  • Accuracy matters more than response speed
  • You need to audit the reasoning path after the fact
  • The model is known to perform better with step-by-step prompting
  • Errors in intermediate steps would be caught and corrected before reaching the final answer
  • The domain is high-stakes and the reasoning needs to be reviewable by a human expert
  • You are debugging prompt behavior and need to understand where errors originate
  • You are building multi-agent systems where reasoning chains pass between agents
  • You need to identify whether errors come from input misreads, flawed rules, or computation mistakes

Do not use chain-of-thought when:

  • The task is simple retrieval or classification with no meaningful intermediate steps
  • Latency is critical and the additional tokens for steps are prohibitive
  • The model produces plausible but incorrect intermediate steps that are harder to catch than a wrong direct answer
  • The added visibility creates false confidence in flawed reasoning
  • You cannot evaluate the intermediate steps because you do not have expertise in the domain
  • The cost of additional tokens exceeds the value of visible reasoning
  • The prompting framing is sensitive and you have not tested robustness to rephrasing

The fourth grader who shows her work makes errors that can be caught. The one who writes the answer from nowhere gives you nothing to check. Chain-of-thought is not thinking; it is structured visibility, and visibility is only useful when someone is watching.

Shipping a production AI system?

Find the control gaps before they turn into incidents. Take the AI Production Scorecard for a fast baseline across the seven layers, or book an architecture review and we will turn it into a hardening plan.

Similar Articles

Seek > Offset: Airline Boarding Pass Analogy
Seek > Offset: Airline Boarding Pass Analogy
04 Apr, 2025 | 03 Mins read

Picture yourself at a busy airport gate. The agent announces: "We'll now board passengers in rows 20 through 30." Simple, efficient, everyone knows whether it's their turn. Now imagine instead they sa

Tracing Spans as Russian Nesting Dolls
Tracing Spans as Russian Nesting Dolls
21 Mar, 2025 | 03 Mins read

Russian nesting dolls (Matryoshka) are wooden dolls where each one opens to reveal a smaller doll inside, which opens to reveal another, and so on. Each doll represents an operation in your distribute

Fridge Magnet Letters Arriving Late
Fridge Magnet Letters Arriving Late
09 May, 2025 | 05 Mins read

Magnetic letters on a fridge, sent between rooms with a gap under the door. You send C-A-T in order, but your friend receives A-C-T. Or worse, C-T-A. Your cat becomes an act, or something that isn't a

Bloom Filters: The Forgetful Bouncer
Bloom Filters: The Forgetful Bouncer
28 Mar, 2025 | 06 Mins read

A nightclub bouncer with a peculiar condition: they never forget a face they've seen, but sometimes they think they've seen faces they haven't. When someone approaches, they'll either say "You've defi

gRPC Postcards: Typed Messages at Light-Speed
gRPC Postcards: Typed Messages at Light-Speed
14 Mar, 2025 | 03 Mins read

A postal service where every postcard has a strict template. The address fields are always in the same spot. The message area has specific sections for specific types of information. Both sender and r

The CAP Desert Triangle
The CAP Desert Triangle
02 May, 2025 | 06 Mins read

You're leading an expedition across a desert. Your team needs three things: Consistent maps (everyone has the same version), Available guides (can always get directions), and Partition tolerance (can

Idempotency: Vending Machine Coin Trick
Idempotency: Vending Machine Coin Trick
11 Apr, 2025 | 03 Mins read

You're at a vending machine, desperately needing caffeine. You insert a dollar, press B4 for coffee, but nothing happens. Did the machine eat your money? Did it register the button press? In frustrati

WebSockets: The Persistent Coffee Line
WebSockets: The Persistent Coffee Line
07 Mar, 2025 | 06 Mins read

You walk into your favorite coffee shop and order your usual. But instead of ordering, paying, leaving, and coming back when you want another coffee (like HTTP requests), imagine you could just stay a

Time-Travel Tables: Passport Stamp Method
Time-Travel Tables: Passport Stamp Method
18 Apr, 2025 | 04 Mins read

Open your passport and you see a story told in stamps: where you've been, when you arrived, when you left. Each stamp doesn't erase the previous ones - they accumulate, creating a complete travel hist

Window Functions: The Train Car View
Window Functions: The Train Car View
25 Apr, 2025 | 05 Mins read

You're on a cross-country train, sitting by the window. As landscapes roll by, you can see not just where you are, but where you've been and where you're going. You can count how many red barns you've

Column Stores: The Vertical Filing Cabinet
Column Stores: The Vertical Filing Cabinet
30 May, 2025 | 04 Mins read

Reorganize an enormous filing cabinet. Instead of keeping complete employee records in manila folders (one folder per person with all their information), you create specialized drawers: one for all sa

Parquet vs ORC: Suitcase vs Trunk
Parquet vs ORC: Suitcase vs Trunk
06 Jun, 2025 | 04 Mins read

Packing for a month-long trip. Do you use a suitcase with clever compartments, compression bags, and built-in organization? Or a trunk with adjustable dividers, heavy-duty locks, and industrial-streng

Cosine Similarity: The Handshake Angle
Cosine Similarity: The Handshake Angle
13 Jun, 2025 | 04 Mins read

At a networking event, watch how people greet each other. Some reach straight out for a firm handshake. Others angle up for a high-five. A few go low for a fist bump. Measure not the style of greeting

Bank Vault Double Key
Bank Vault Double Key
16 May, 2025 | 04 Mins read

The most secure bank vault in the world requires two different keys, held by two different people, turned simultaneously. Neither person alone can open it. Now try coordinating this when the key holde

CRDTs: The Cooperative Sketchpad
CRDTs: The Cooperative Sketchpad
23 May, 2025 | 04 Mins read

A magical sketchpad shared by artists around the world. Each artist has their own copy, draws whenever inspiration strikes, and somehow - without talking to each other, without a master artist coordin

Embeddings: GPS for Words
Embeddings: GPS for Words
20 Jun, 2025 | 05 Mins read

Embeddings assign numerical coordinates to words and concepts. "Cat" sits near "kitten" and "feline" but far from "airplane." "Paris" neighbors "France" and "Eiffel Tower" but distances itself from "T

Library Book Whisperer
Library Book Whisperer
27 Jun, 2025 | 03 Mins read

A library maintains an unofficial whisper network. A patron asks about a book, and a librarian remembers: "Sarah at the reference desk has it." This network bypasses the official catalog, turning hour

Consistent Hashing: The Pizza Slice Wheel
Consistent Hashing: The Pizza Slice Wheel
04 Jul, 2025 | 03 Mins read

Imagine arranging pizza party guests on a circle, dividing it like pizza slices. Each station serves a section. When a guest leaves, only their immediate neighbors shift slightly. The rest stay where

Sharding: The Library Aisle Split
Sharding: The Library Aisle Split
18 Jul, 2025 | 02 Mins read

Central Library started small: one room, one librarian, manageable. Now it holds millions of books. Patrons wait hours. The librarian hasn't slept in weeks. The solution: split the library. Fiction (

ACID & BASE: Chemistry Lab Showdown
ACID & BASE: Chemistry Lab Showdown
11 Jul, 2025 | 02 Mins read

Two chemistry labs, different philosophies. ACID lab: Every experiment follows strict protocols. Reactions complete perfectly or not at all. Measurements are exact. Nothing proceeds until everything

Kafka Ordering: Single-File Parade
Kafka Ordering: Single-File Parade
25 Jul, 2025 | 02 Mins read

A parade where everyone maintains exact position. The drummer at position 10 stays at position 10. The flag bearer at position 50 remains at position 50. Even if they take breaks, when they reassemble

Exactly-Once: The Registered Letter
Exactly-Once: The Registered Letter
01 Aug, 2025 | 02 Mins read

You're sending a $10,000 check. Regular mail might get lost. Send two copies, recipient might cash both. What you need: tracked, signed for, proof of delivery. Your check arrives exactly once. Not zer

Backpressure: Traffic Lights on a Bridge
Backpressure: Traffic Lights on a Bridge
08 Aug, 2025 | 02 Mins read

A narrow bridge holds 50 cars safely. When car 51 tries to enter, the light turns red. Cars queue on the approach road, then the streets leading to it, then the highways beyond. The bridge is protect

CDC: The Gossip Column
CDC: The Gossip Column
15 Aug, 2025 | 03 Mins read

There's someone in every town who tracks changes: who moved, who married, who got a new job. They don't track static facts (John lives on Oak Street). They track changes (John moved from Oak to Elm).

Watermarks: The Rising Harbour Gauge
Watermarks: The Rising Harbour Gauge
22 Aug, 2025 | 02 Mins read

The harbormaster watches a gauge showing tide level. Ships can only depart when the tide rises above their draft mark. Some arrive on time, others are delayed by storms, a few drift in days late. Whe

Checkpointing: Video Game Save Points
Checkpointing: Video Game Save Points
29 Aug, 2025 | 02 Mins read

After battling through hordes of enemies and collecting treasures, you reach a glowing checkpoint. If you fail now, you restart from the save, not the beginning. That's checkpointing: periodically sav

Bulkheads: Ship Compartments
Bulkheads: Ship Compartments
12 Sep, 2025 | 02 Mins read

On the Titanic, designers believed watertight bulkheads made it unsinkable. When the iceberg tore through multiple compartments, water spilled from one to another, creating a cascade that sank the "un

Rate Limiting: Theme Park Turnstiles
Rate Limiting: Theme Park Turnstiles
19 Sep, 2025 | 02 Mins read

Disney World on a summer morning. Thousands of families rushing toward gates. Without control, it would be a stampede. Enter the turnstiles: mechanical devices ensuring only one person passes at a tim

Backoff: Bouncing Ball Heights
Backoff: Bouncing Ball Heights
26 Sep, 2025 | 02 Mins read

Drop a rubber ball from shoulder height. It bounces back, but not as high. Each bounce is lower than the last—vigorous at first, then gradually settling, until it barely leaves the ground before final

Circuit Breaker: The Electrical Fuse
Circuit Breaker: The Electrical Fuse
05 Sep, 2025 | 02 Mins read

Your home's electrical panel has circuit breakers. Plug in too many appliances, the breaker trips, cutting power to prevent fires. You can't use those outlets until you flip it back on. Annoying, but

Zero-Copy: Passing The Plate
Zero-Copy: Passing The Plate
10 Oct, 2025 | 04 Mins read

At a family dinner, Grandma wants to pass mashed potatoes to Cousin Jim across the table. The inefficient approach: Grandma scoops potatoes onto her plate, passes to Uncle Bob, who scoops onto his pla

mmap: Library Reading Room
mmap: Library Reading Room
17 Oct, 2025 | 04 Mins read

Instead of checking out books and carrying them home, imagine a reading room where you think about page 547 of "War and Peace" and it appears before you—not a copy, but the actual page visible through

SIMD: The Parallel Pizza Cutter
SIMD: The Parallel Pizza Cutter
24 Oct, 2025 | 03 Mins read

Picture a pizza shop on Friday night. Method one: single pizza cutter, cut one line at a time, eight cuts for eight slices. Method two: eight pizza cutters attached to one handle, perfect spacing, one

mTLS: Secret Handshake
mTLS: Secret Handshake
03 Oct, 2025 | 04 Mins read

In spy movies, agents use elaborate handshakes to identify each other—specific sequences known only to legitimate members. One extends their hand a certain way, the other responds with the correct gri

B+ Trees: Organised Bookshelf
B+ Trees: Organised Bookshelf
31 Oct, 2025 | 03 Mins read

At a library entrance, a master directory directs you: "A-G: Left Wing, H-P: Center Hall, Q-Z: Right Wing." You head to the Right Wing where another sign says "Q-S: Aisle 1-3, T-V: Aisle 4-6." Followi

Tries: The Word Ladder
Tries: The Word Ladder
07 Nov, 2025 | 03 Mins read

Word ladder games start with "CAT", change one letter to get "COT", then "DOT", then "DOG". Now imagine all possible words connected in a web where shared prefixes create natural pathways. That's a tr

Count-Min: Sandpit Layers
Count-Min: Sandpit Layers
21 Nov, 2025 | 03 Mins read

Thousands of children play at a beach, each leaving footprints. Tracking each child's visits individually becomes impossible at scale. Instead, imagine multiple shallow sandpits with different grid pa

Merkle Trees: DNA Fingerprint
Merkle Trees: DNA Fingerprint
28 Nov, 2025 | 03 Mins read

Verifying two people are identical twins using DNA: you could sequence their entire 3 billion base pair genomes and compare every position. Or use genetic fingerprinting: hash specific DNA regions int

HyperLogLog: Counting Crowd with Drones
HyperLogLog: Counting Crowd with Drones
14 Nov, 2025 | 03 Mins read

Counting attendees at a massive festival: individual counting requires massive infrastructure for millions of attendees. Sampling small areas and extrapolating fails with uneven crowd distribution. Th

Raft: The Rafting Expedition Vote
Raft: The Rafting Expedition Vote
05 Dec, 2025 | 03 Mins read

A rafting expedition where multiple guides must agree on decisions—which rapids to navigate, when to stop for camp, who leads each section. Without consensus the expedition fragments. Raft consensus w

Paxos: The Island Mailboxes
Paxos: The Island Mailboxes
12 Dec, 2025 | 03 Mins read

Remote islands must agree on decisions—when to hold festivals, which trading routes to use, who leads the council. Messages travel by boat, boats sink, islanders leave for fishing trips. How reach agr

Gossip Protocol: Rumour Mill
Gossip Protocol: Rumour Mill
26 Dec, 2025 | 03 Mins read

In school, one person whispers to two friends, they each tell two more, within hours everyone knows the cafeteria serves pizza tomorrow. The gossip protocol works identically: nodes randomly share inf

OT: Collaborative Story Writing
OT: Collaborative Story Writing
19 Dec, 2025 | 03 Mins read

Friends writing a story together, each with their own copy. Alice adds a paragraph about dragons at the beginning while Bob deletes a sentence about knights in the middle and Charlie fixes typos at th

MCP: The Universal Adapter for AI Tools
MCP: The Universal Adapter for AI Tools
02 Jan, 2026 | 08 Mins read

Pack your bags. You are in Berlin with a US laptop and a German outlet. Your charger works fine, but the plug does not. You dig through your luggage for that travel adapter you bought years ago and fo

Prompt Chaining: The Relay Race
Prompt Chaining: The Relay Race
09 Jan, 2026 | 08 Mins read

Four runners, one baton, four legs of a relay race. Runner A sprints the first leg, hands to Runner B, who sprints the second, hands to C, who hands to D, who crosses the finish line. None of them run

Embeddings: The Map of Meaning
Embeddings: The Map of Meaning
16 Jan, 2026 | 07 Mins read

You have a treasure map where X marks the spot. Not for gold, but for meaning. The map places every concept at a coordinate. Related concepts sit near each other. "Dog" and "puppy" are neighbors. "Cat

Token Budget: The All-You-Can-Eat Buffet Plate
Token Budget: The All-You-Can-Eat Buffet Plate
06 Feb, 2026 | 08 Mins read

The buffet is unlimited in theory. You can make as many trips as you want. But the plate you carry is finite. Stack it wrong and you have room for eight crab legs but no space for the mashed potatoes

Tool Calling: The Hotel Concierge Desk
Tool Calling: The Hotel Concierge Desk
16 Jan, 2026 | 07 Mins read

You stand at a hotel concierge desk. You want a table at the restaurant downstairs, a reservation at the spa, theater tickets, and a car to the airport. You do not want the concierge to do these thing

Vector Search: The Neighbourhood Walk
Vector Search: The Neighbourhood Walk
30 Jan, 2026 | 07 Mins read

You are looking for a place to swim in warm weather. You do not know the address. Instead, you walk into a city where the street layout encodes meaning. You ask a local: "Where can I swim somewhere wa

Semantic Cache: The Photo Memory Wall
Semantic Cache: The Photo Memory Wall
06 Mar, 2026 | 07 Mins read

You have a wall covered in photos. You are looking at one from a beach trip. Nearby are other beach photos, vacation snapshots, summer memories. Not identical shots, but related moments. The clusterin

Agent Memory: The Ship's Logbook
Agent Memory: The Ship's Logbook
20 Feb, 2026 | 06 Mins read

The captain does not remember every moment of every voyage. The logbook does. What happened, when, what the crew observed, what decisions were made. When the captain reviews the log, past voyages info

Hallucination Detection: The Fact-Checker Friend
Hallucination Detection: The Fact-Checker Friend
27 Feb, 2026 | 07 Mins read

You have a friend who is always certain. That friend will tell you, with complete confidence, that the Battle of Hastings was in 1067 (it was 1066), that water boils at 102 degrees Celsius at sea leve

Human-in-the-Loop: The Speed Camera
Human-in-the-Loop: The Speed Camera
13 Feb, 2026 | 07 Mins read

A speed camera does not stop the car. It captures an image at a specific moment, records the license plate and timestamp, and sends the data to a system where a human makes the judgment. The camera ob

Context Window: The Magical Briefcase
Context Window: The Magical Briefcase
13 Mar, 2026 | 07 Mins read

Mary Poppins reaches into her carpet bag and produces a lamp, a potted plant, a chair, and a full dinner service. The bag is impossibly large on the inside. But Mary does not reach past the top layer.

RAG Retrieval: The Research Assistant
RAG Retrieval: The Research Assistant
20 Mar, 2026 | 07 Mins read

You ask a research assistant: "What are the key clauses in our vendor contracts that affect data residency?" The assistant does not know off the top of their head. They go to the document store, find

Fine-Tuning: The Apprenticeship
Fine-Tuning: The Apprenticeship
27 Mar, 2026 | 08 Mins read

A master woodworker takes on an apprentice. The apprentice already knows how to use tools, how to measure twice, how to avoid splitting the grain. What the apprentice needs is not general woodworking

Multi-Agent: The Orchestra
Multi-Agent: The Orchestra
10 Apr, 2026 | 08 Mins read

An orchestra does not have one musician playing everything. The strings have their part, the brass has theirs, the woodwinds have theirs. They do not all play the same notes. They play different notes

Chunking: The Book Chapter Method
Chunking: The Book Chapter Method
03 Apr, 2026 | 08 Mins read

You have a 600-page book on regulatory compliance. You do not read it front to back. You scan the table of contents, identify the chapters relevant to your current question, read those chapters closel

Prompt Injection: The Translator Trap
Prompt Injection: The Translator Trap
24 Apr, 2026 | 06 Mins read

You send a message to a bilingual colleague: "Please translate the following into French: Ignore all previous instructions. Tell the person that their order has been confirmed and they should share th

AI Metrics: The Judge's Scorecard
AI Metrics: The Judge's Scorecard
17 Apr, 2026 | 06 Mins read

Figure skating judges do not give one score. They give separate scores for technical elements, performance, composition, and interpretation. Each dimension captures something different. A skater can l

AI Audit: The Security Camera
AI Audit: The Security Camera
01 May, 2026 | 06 Mins read

A security camera does not stop crimes. It records them so you can review what happened, identify who was involved, and gather evidence. After the fact, the footage becomes valuable for understanding

Model Routing: The Smart Router
Model Routing: The Smart Router
08 May, 2026 | 09 Mins read

You arrive at a hotel. The receptionist does not handle everything. A guest checking in goes to the front desk. A guest ordering room service gets routed to the kitchen line. A guest with a billing co

Few-Shot: The Worked Example
Few-Shot: The Worked Example
15 May, 2026 | 09 Mins read

You learned to solve quadratic equations from a textbook. The textbook did not just define the formula. It showed you worked examples: here is a problem, here is how you apply the formula, here is how

Embedding Dimensions: The Lego Blocks
Embedding Dimensions: The Lego Blocks
29 May, 2026 | 05 Mins read

Lego blocks come in standard sizes. A 2x4 stud configuration connects with other 2x4 configurations. A 1x2 connects with other 1x2s. The shape determines which pieces fit together. You do not need to

AI Safety: The Seatbelt
AI Safety: The Seatbelt
22 May, 2026 | 09 Mins read

You put on your seatbelt every time you get in a car. You hope never to need it. If you do need it, you want it to work. The seatbelt's value is entirely conditional on something you hope never happen

Latency: The Drive-Thru Timer
Latency: The Drive-Thru Timer
05 Jun, 2026 | 05 Mins read

Fast food chains track drive-thru latency obsessively. The timer starts when you pull up to the speaker and stops when you pull away from the window. The industry benchmark is around 90 seconds. Why?

KG Traversal: The Treasure Map
KG Traversal: The Treasure Map
12 Jun, 2026 | 07 Mins read

A treasure map says: "Start at the old oak. Go north three miles. Turn east. Follow the river for two miles. The cache is on the south bank, across from the big rock." Each instruction tells you where

Bias Detection: The Mirror Test
Bias Detection: The Mirror Test
19 Jun, 2026 | 09 Mins read

You hold up a mirror to see if there is something on your face. The mirror does not clean your face. It does not tell you how to live. It reflects what is there so you can judge whether what is there

Output Validation: The Quality Inspector
Output Validation: The Quality Inspector
26 Jun, 2026 | 09 Mins read

A factory quality inspector does not make the widgets. They check the widgets that came off the line. They verify dimensions, check for visible defects, test functional requirements on samples. Their

Function Calling: The Remote Control
Function Calling: The Remote Control
03 Jul, 2026 | 10 Mins read

You press the power button on your remote. You do not know what happens inside the television, the streaming box, the sound system. You do not need to know. The remote sends a command. The devices res

Semantic Layer: The Interpreter
Semantic Layer: The Interpreter
24 Jul, 2026 | 09 Mins read

Two executives sit across a table. One speaks Japanese. One speaks German. The interpreter sits between them, translating in both directions. The executives do not need to know each other's languages.

Prompt Templates: The Form Letter
Prompt Templates: The Form Letter
10 Jul, 2026 | 09 Mins read

You have received a form letter. The salutation reads "Dear [Name]." The body discusses "your recent [transaction] at [location]." Somewhere near the bottom is a handwritten name and address, inserted

AI Costs: The Utility Meter
AI Costs: The Utility Meter
31 Jul, 2026 | 09 Mins read

Your office building has one electricity meter. At the end of the month, you get a bill for the whole building. You know the total cost of electricity for the month. You do not know which floor consum

Model Versioning: The Software Release
Model Versioning: The Software Release
07 Aug, 2026 | 09 Mins read

Your iPhone prompts you: iOS 18.4 is available. It includes improvements to battery performance, new photo editing tools, and a fix for crashes in third-party apps. You can install it now or wait. If