Resources

AI engineering, explained.

Field guides to building with AI, meant to be read in order — from where it all started, the 2017 Transformer paper, to running AI in production. Plain English, no hype, and every guide cites its sources.

  • 25 guides
  • 6 sections
  • About 4 hours of reading
  • RSS feed

Section 01

Foundations

How modern language models work — attention, training, tokens and reasoning.

4 guides · 38 min

  1. Guide 1: Attention Is All You Need: the paper that started modern AI

    In 2017, eight researchers working at Google replaced recurrence with attention. Here is what they built, why it scaled so well, and why its trade-offs still show up in your latency and GPU bill.

    10 min read
  2. Guide 2: From Transformer to assistant: pretraining, scaling laws, and RLHF

    Every model your team calls went through much the same pipeline. Knowing which stage taught it what tells you which problems prompting, retrieval, or fine-tuning can actually fix.

    10 min read
  3. Guide 3: Tokens, context windows and the economics of attention

    A million-token window is a capacity limit, not a quality guarantee. Here is how tokens are counted and priced, and why attention gets costly and unreliable as context grows.

    9 min read
  4. Guide 4: Reasoning models: what “thinking” changes for engineers

    Frontier models now spend tokens thinking before they answer. That changes your bill, your latency, your agent code, and how far you can trust the explanation that comes back.

    9 min read

Section 02

The harness

Everything around the model that makes it useful: the loop, evals, context and prompts.

4 guides · 39 min

  1. Guide 5: The agent harness: everything around the model

    Two products built on the same model can behave like different species. The difference is the harness — the loop, tools, context, permissions, and checks that turn a model into a worker.

    10 min read
  2. Guide 6: Evals: the harness that tells you whether it works

    Every prompt tweak, tool change, and model upgrade can quietly break an AI product. An evaluation harness is how a team finds out before its users do.

    10 min read
  3. Guide 7: Prompts that survive production: versioning, testing, and structure

    A prompt that works in a demo is a hypothesis. In production it is code that depends on a model you do not control — so version it, test it, constrain its output, and assume someone will attack it.

    10 min read
  4. Guide 8: Context engineering: deciding what the model sees

    A model sees only what is in its context window. For an agent, your code rebuilds that window at every step, and choosing what goes in is where much of the real engineering happens.

    9 min read

Section 03

Agents

Models that take actions — tools, protocols, multi-agent designs and what holds up in production.

6 guides · 55 min

  1. Guide 9: What an AI agent actually is (and isn’t)

    Many products sold as agents are rebranded chatbots or scripts, and many agent projects need no agent at all. A precise definition, a way to set autonomy on purpose, and a test for when to build something simpler.

    10 min read
  2. Guide 10: Tool use and function calling: how AI models take actions

    A model can only write text. Tool use is the contract that turns that text into a database query, a refund, or an email — and your code decides whether it ever runs.

    9 min read
  3. Guide 11: Model Context Protocol (MCP): how AI agents plug into your systems

    MCP turned the messy work of wiring AI apps to tools and data into one shared protocol. Here is how it works, who backs it, what just changed, and where it can hurt you.

    10 min read
  4. Guide 12: Multi-agent systems: when more agents help — and when they don’t

    Splitting work across AI agents can buy breadth, parallelism, and clean context. It also multiplies tokens, handoffs, and failure modes. Here is how to tell which one you are getting.

    9 min read
  5. Guide 13: Coding agents: how AI writes production software

    Google says three-quarters of its new code is now AI-generated, then approved by engineers. The hard work has moved to specifying tasks, checking results, and reviewing what ships.

    9 min read
  6. Guide 14: Agents in production: lessons from Uber, LinkedIn, DoorDash, and Shopify

    A demo takes weeks; a dependable agent takes quarters. Candid engineering write-ups from teams that shipped show where that time goes, and which habits separate durable systems from stalled pilots.

    8 min read

Section 04

Open models

Running and adapting models yourself: open weights, serving, fine-tuning and distillation.

4 guides · 37 min

  1. Guide 15: The open-weight model landscape: licenses, families, and trade-offs

    Open models now trail the closed frontier by months, not years. The harder questions are legal and operational: what the license allows, what the hardware costs, and which safety work moves onto your team.

    9 min read
  2. Guide 16: Serving LLMs yourself: batching, KV cache, and quantization

    Downloading an open-weight model takes minutes. Serving it to many users at once, at a cost that beats an API, is a memory-management problem. Here is how modern inference engines solve it.

    10 min read
  3. Guide 17: Fine-tuning, RAG, or prompting: choosing the right lever

    Teams often reach for fine-tuning first and regret it. Prompting fixes instructions, retrieval fixes knowledge, and tuning fixes behavior and cost — and the order you try them in matters.

    9 min read
  4. Guide 18: Small models and distillation: shrinking a model to fit the job

    Frontier labs routinely build their small models by distilling bigger ones. Your team can use the same technique on a narrow task, provided you know what it transfers and what it quietly drops.

    9 min read

Section 05

RAG & retrieval

Grounding answers in your own data — retrieval, embeddings, ranking, graphs and SQL.

5 guides · 47 min

  1. Guide 19: Retrieval-augmented generation (RAG), explained

    Retrieval-augmented generation is the standard way to put company knowledge in front of a language model. How it works, seven common ways it breaks, and when to skip it altogether.

    9 min read
  2. Guide 20: Embeddings and vector search: a practical guide for engineers

    Vector search is two systems: a model that decides what “similar” means, and an index that finds similar items fast. Each fails in its own way, and each needs its own test.

    10 min read
  3. Guide 21: Chunking, hybrid search, and reranking: getting retrieval right

    Most wrong RAG answers are decided before the model writes a word: the passage it needed never reached it. Three plain engineering levers fix most of that, if you measure them.

    10 min read
  4. Guide 22: GraphRAG: when retrieval needs structure

    Vector search finds passages that look like the question. Graphs help when answers are spread across documents or hidden in relationships — but they cost far more to build, and the evidence is narrower than the hype.

    9 min read
  5. Guide 23: Text-to-SQL in production: why the hard part isn’t the SQL

    Today’s models write fluent SQL. Production systems still stumble on finding the right table, knowing what a column means, and catching a confident wrong number. Here is how teams that shipped handle each.

    9 min read

Section 06

Production

Keeping AI systems safe, affordable and fast once real users arrive.

2 guides · 19 min

  1. Guide 24: Guardrails: keeping LLM systems safe and correct

    Guardrails are the checks outside the model that limit what goes in, what comes out, and what the system may do. Assume the model will be fooled, and design so that a fooled model cannot cause real harm.

    9 min read
  2. Guide 25: LLM cost and latency: caching, batching, routing, and the gateway

    Most LLM bills and slow responses trace back to choices a team controls: which model answers, how much it writes, and how requests are reused, deferred, and measured. Here is where the money and milliseconds go.

    10 min read

Building this? Talk to an engineer.

Send a short brief and a senior engineer replies within one business day to set up a 30-minute call.