Learn AI Engineering

In-depth pieces on LLM internals, retrieval, agents, MCP, and evals.

Newly added

The latest pieces across every category, newest first.

Chunking strategies that survive production

Listed inChunkingRAGon

Structural, recursive and semantic splitting compared, with the sizes to start from for short lookups and for prose. Chunk size sets a ceiling on what retrieval can return, and several common mistakes lower it further.

Intermediate8 min
#rag
#retrieval
#pipeline

Building effective agents

Listed inWhat are AI Agents?AI Agentson

Anthropic on the difference between workflows and agents, five composable patterns, and why most teams should start with the simplest thing that works.

External
Anthropic · anthropic.com
#agents
#patterns

Stop estimating tokens

Listed inTokensHow LLMs Workon

Character and word counts disagree with real token counts, which is a problem because every limit you hit is counted in tokens. How byte pair encoding splits text, and how to budget a request so a response is not cut off mid-sentence.

Beginner6 min
#fundamentals
#cost

Introducing contextual retrieval

Listed inChunkingRAGon

Prepending model-generated context to each chunk before embedding, and the measured drop in failed retrievals it produced.

External
Anthropic · anthropic.com
#rag
#retrieval

MCP in one sitting

Listed inModel Context Protocol (MCP)Model Context Protocolon

Hosts, clients and servers, and the three primitives a server exposes: tools, resources and prompts. Includes a working TypeScript server in about forty lines, and the mistakes that make a server unusable in practice.

Intermediate9 min
#mcp
#tools
#integration

What is an AI Engineer?

Listed inWhat is an AI Engineer?Introductionon

A single support-reply feature, taken through the failures it hits in production: supplying a refund policy, grounding replies in help-center articles, structuring output for a ticket tool, and handling prompt injection in customer email. The role is the engineering around the model call.

Beginner5 min
#career

Google Gemini

Listed inGoogle GeminiModels & Providerson

Images, audio and video travel in the request and are billed as input tokens, at different per-second rates for audio and video. The same models are reachable through the Gemini Developer API and through Google Cloud, which differ in the platform around them rather than in capability.

Beginner4 min
#providers
#multimodal

Deterministic Evals

Listed inDeterministic EvalsEvaluationon

An evaluation is deterministic when it is computed rather than judged by a model, which is not the same as exact rather than fuzzy. A similarity score is computed, so it sits between exact matching and a judge model, and it costs nothing to run.

Intermediate4 min
#evaluation

Inference

Listed inInferenceIntroductionon

What happens between your request and the answer: time to first token against total response time, why output length drives latency, where token costs accumulate, and the inference failures to handle in code.

Beginner5 min
#concepts