Function Calling: The Remote Control

Function Calling: The Remote Control

Simor Consulting | 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 respond. The power button on a properly functioning system always means the same thing: everything relevant turns on or off. The remote abstracts away the complexity of the devices it controls.

Function calling works the same way. The model does not know how to look up a customer record or calculate a shipping rate or check inventory. But it knows that when the user asks for one of these things, it should emit a structured request for the corresponding function. The function executes, returns data, and the model incorporates the result into its response. The model is the remote. The functions are the devices. The model handles conversation; the functions handle computation and data access.

Why This Pattern Is Useful

Function calling separates what the model is good at (understanding intent, generating language, reasoning) from what the model is not designed to do (accessing live data, executing transactions, manipulating external systems). The model reads the user’s request, decides which function to call, and receives structured data back. This is more reliable than asking the model to produce the function call syntax itself, which would require the model to know details about function parameters and formats.

It also provides a clean interface for integrating AI capabilities into existing systems. The function is defined once, documented with its parameters, and the model learns to call it appropriately. Adding a new function does not require retraining; you add the function definition and the model learns to use it based on the documentation. This extensibility is valuable for systems that grow over time.

The separation also enables security boundaries. The model cannot directly access external systems; it can only request access through function calls. The system validates function requests before executing them. This prevents the model from making unauthorized calls while allowing it to trigger useful actions.

Function calling also enables deterministic behavior for tasks that require it. The model can call a function that performs a calculation and return the result. The same input always produces the same output. This contrasts with pure model generation, where the same prompt might produce different outputs.

The Model Function Interface

The interface between model and function is a contract that must be honored by both sides. The model must call functions correctly. The functions must return data in the expected format. Changes to either side can break the contract.

Versioning the interface helps. When a function changes its parameter format or return type, a new version of the function can coexist with the old version. The model continues using the old version until it is updated with documentation for the new version. This allows gradual migration without breaking existing behavior.

Breaking changes require coordination. If the function return format changes, the model must be updated to handle the new format. If the model changes how it calls functions, the function must be updated to accept the new call format. Large language model updates can change function calling behavior in ways that break existing integrations.

The Interface Problem

Functions are as good as their documentation. A function with ambiguous parameters will be called incorrectly. A function that returns data in an unexpected format will produce confusing responses. The model can only use what it is given; if the function description is incomplete or the return format is unclear, the model will guess. The quality of function documentation determines the reliability of function calling.

Consider a function that looks up customer orders. The description says “Gets order information.” The parameter is “order_id.” But what format should the order_id be? What does the function return? If the documentation does not specify, the model might pass an order number when it should pass an order identifier, or might not know how to interpret the returned data.

Poor documentation is the most common cause of function calling failures. Teams build elaborate function calling systems and then wonder why the model calls functions incorrectly. Usually the answer is that the function descriptions were too vague for the model to use them correctly.

Documentation should specify: the purpose of the function, the meaning and expected format of each parameter, the structure of the return value, and error conditions. The model reads this documentation and decides whether to call the function, which function to call, and what arguments to pass.

Schema Design for Reliability

Parameter names should be self-explanatory to a model that has read the function description. Avoid abbreviations that save typing but obscure meaning. “cust_id” is less clear than “customer_id” to a model that encounters it without full context. The model should be able to infer the parameter’s purpose from its name and description.

Type constraints help. If a parameter must be one of a fixed set of values, use an enum. If a parameter must be an integer, declare it as integer rather than string. The more you constrain the model, the less it has to guess. A parameter declared as an enum can only take the enum values; the model cannot guess a wrong value.

Required versus optional parameters should be clear. If a parameter is optional, the function should have a sensible default behavior when it is omitted. If the function cannot function without a required parameter, that parameter should not be optional. A function that returns “unknown” when a required parameter is omitted is less useful than a function that explicitly requires the parameter.

Return values should be structured and documented. If the function returns customer information, specify which fields are included and what they mean. If the function might return no data, document that case. The model needs to know how to interpret the return value to incorporate it into the response.

Nested objects should be documented with the same care as top-level fields. If a function returns an address object with street, city, and country fields, document the structure. The model needs to know what fields are available to use in the response.

Error Handling

Functions fail. Networks time out. Databases go down. Services return unexpected responses. The function calling system must handle these failures gracefully, and the function must communicate failures clearly to the model.

When a function fails, the model should know enough to tell the user rather than continuing as if nothing happened. This requires the function to return structured error information, not just a generic failure message. “Function call failed: customer record not found” is more useful than “Function call failed.” The model can then tell the user that the customer record was not found and ask for clarification.

Designing retry logic and fallback behavior is part of function calling design, not an afterthought. Should the system retry on network timeout? How many times? With what backoff? Should it fall back to a different function? Should it tell the user the service is unavailable? These questions should be answered before deployment.

Error handling that is invisible to the model produces confusing responses. If the function fails but returns no error indication, the model receives empty or null data and must decide what to do. The model might fabricate information rather than admitting it received no data.

Distinguishing between retryable errors (network timeout) and non-retryable errors (customer not found) matters for retry logic. Retrying a non-retryable error wastes time and may confuse the model. The function interface should distinguish error types so the system can handle them appropriately.

Function Call Auditing

Every function call is an action with potential consequences. A function that looks up a customer record is a read. A function that places an order is a write. A function that transfers money is a consequential write that may have regulatory requirements. The action is initiated by the model but executed by the system; the auditing must cover both.

Logging function calls supports debugging (what did the model try to do?), auditing (did the system take actions it should not have?), and improvement (what functions are being called incorrectly?). Without logging, you cannot reconstruct why the system produced a particular output. With logging, you can trace the function calls that contributed to each response.

Audit logs should include: the function called, the arguments passed, the return value or error, and the timestamp. The logs should be queryable for incident investigation and should be retained according to your retention policy. High-stakes functions may require additional audit fields.

Function call logs reveal patterns in how the model uses functions. Which functions are called most frequently? Which are never called? Are there sequences of calls that indicate the model is following a recognizable workflow? This information helps optimize the function set and improve prompting.

Chaining and Composition

Simple function calling is one function per request. Complex workflows might chain functions: the output of one function becomes the input to another. The model calls function A, receives result, then calls function B with that result, and so on. This enables multi-step workflows without the model having to know the details of each step.

Chaining adds complexity and failure points. If function A fails, function B cannot run. If function A returns data in an unexpected format, function B may fail. Designing for chaining means designing functions that produce outputs compatible with downstream functions, and designing the system to handle failures at any step.

Composition is a more structured form of chaining. Instead of the model calling functions sequentially, the system defines a fixed workflow that the model triggers. The model calls a “process_return” function that internally calls lookup, validation, and refund functions. The model does not need to know the sequence; it just triggers the composed function.

The trade-off between chaining and composition is flexibility versus robustness. Chaining gives the model flexibility to decide which functions to call and in what order. Composition is more robust because the workflow is predefined and tested. Chaining is more powerful for novel situations; composition is more reliable for known workflows.

Parallel Function Calls

The model may need to call multiple functions that are independent. Instead of calling them sequentially (waiting for each to complete before starting the next), parallel execution calls them simultaneously. This reduces latency when functions do not depend on each other’s results.

Parallel calls introduce new failure modes. What if one function succeeds and another fails? The model needs to handle partial success. If the user asks for information from three independent sources and one source is unavailable, the model should return the two that succeeded and note the failure for the third.

Designing for parallel calls means designing functions that can fail independently. Each function should have clear success/failure semantics. The system should report partial results. The model should be able to incorporate partial results into responses.

The Permission Model

Function calls require a permission model that governs which functions can be called by which users. A guest user should not be able to call functions that access sensitive data. An admin user should be able to call functions that modify system state. The permission model must be enforced by the system, not by the model.

The model cannot be trusted to enforce permissions. It can be manipulated through prompt injection or confused by ambiguous inputs. The permission enforcement must happen outside the model’s control. When the model requests a function call, the system must verify that the requesting user is permitted to call that function before executing it.

Permission failures should be handled gracefully. If a user requests a function they are not permitted to call, the system should return a clear error message explaining the permission failure. The model should relay this error to the user rather than attempting to work around the permission restriction.

Testing Function Calling

Function calling requires testing that traditional unit tests do not cover. The model decides when to call functions and with what arguments. Testing this behavior requires integration tests that verify the model’s function calling decisions.

Test cases should cover the expected cases (the model correctly calls the right function with the right arguments), the edge cases (the model refuses to call when it should or calls when it should not), and the failure cases (the function returns an error and the model handles it gracefully).

Automated testing of model behavior is harder than testing deterministic code. The same input may produce different outputs across model versions. Tests must account for this variability. A test that passes with one model version may fail with another.

Testing should include adversarial cases. What happens when a user prompts the model to call a function with malicious arguments? What happens when the model is manipulated to call functions in unexpected sequences? Red team testing of function calling reveals vulnerabilities that happy-path testing misses.

The Function Call Latency Problem

Function calling adds latency to every request that uses it. The model generates a function call request, the system executes the function, the result returns to the model, the model generates a response incorporating the result. This round-trip takes time. For simple requests that the model could answer from its own knowledge, function calling adds overhead without benefit.

Minimizing latency means minimizing function call latency. A function that takes 500ms to execute adds 500ms to every request that calls it. If your function calls a database that takes 400ms, the database is the bottleneck. If your function makes three API calls in sequence, the total latency is the sum of all three. Optimizing function execution time directly reduces the added latency from function calling.

Parallel function execution reduces latency when multiple functions can be called independently. If the model needs data from three functions that do not depend on each other, call them in parallel rather than sequence. The total latency is the latency of the slowest function, not the sum of all three. This optimization requires the model to request all three functions at once rather than sequentially, which requires prompt engineering that supports parallel function calls.

Batching function calls helps when many requests invoke the same function. Instead of executing the function once per request, execute it once for many requests and cache the result. This amortizes the function execution cost across multiple users. The cache must be invalidated appropriately; a function that returns user-specific data cannot be cached across users.

The Schema Evolution Problem

Function schemas change over time. Parameters are added, removed, or renamed. Return formats are modified. New functions are added. Old functions are deprecated. Each change creates a migration problem: old prompts may reference old schema versions that no longer exist.

Versioning functions prevents breaking changes. When a function’s schema changes, create a new version rather than modifying the existing one. The model continues using the old version until it is updated with the new schema. This allows gradual migration without breaking existing integrations.

Deprecation must be explicit and timely. A function that will be removed should announce its deprecation well in advance, with a timeline for removal. The model should be updated before the removal date to use the replacement function. Abrupt removal without deprecation creates immediate failures that could have been prevented with advance notice.

The remote control analogy holds: when the devices controlled by the remote change their interfaces, the remote must be updated. If the television adds a new input source, the remote must have a button for it. If the remote is not updated, the new input source is inaccessible through the remote. Function schemas are the remote’s buttons; when the underlying functions change, the schema must reflect the change.

Decision Rules

Use function calling when:

  • Your application requires access to data or actions outside the model’s knowledge
  • Structured, deterministic behavior is required (calculations, transactions, data retrieval)
  • You want to separate reasoning from execution
  • You need auditability of specific actions taken
  • You want to extend model capability without retraining

Do not use function calling when:

  • The task can be completed with the model’s existing knowledge
  • The functions are unreliable or poorly documented
  • Latency requirements cannot tolerate the round-trip between model and function
  • You need deterministic output for the same input every time
  • The overhead of function infrastructure exceeds the benefit

Design function schemas for:

  • Clear, descriptive parameter names
  • Strict type constraints where applicable
  • Enum values for constrained choices
  • Sensible defaults for optional parameters
  • Structured error returns, not just failure messages

A remote that works today may not work tomorrow if the devices change. A function schema that works today may not work tomorrow if the underlying functions change. Versioning, deprecation notices, and gradual migration are not optional; they are how you maintain a functioning system over time.

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

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

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

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

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

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

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

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

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

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

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 (

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 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

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