AgenticRAGMCP

The AI Engineering Handbook

by handbook.academy

All LevelsBookFree~16 hours of reading across 86 chapters (about 170,000 words), self-paced

A free, open-source book that takes software engineers from model APIs through evals, RAG, agents, security and production AI.

Start LearningAdded Nov 1, 2026 · Updated Nov 1, 2026

Overview

The AI Engineering Handbook is a free, open-source book from the handbook.academy project, written in the open at ai-eng.handbook.academy with its source in the handbook-academy/engineering-handbook GitHub repository, alongside sister handbooks on system design and data structures. Text is licensed CC BY-SA 4.0 and code MIT. Chapters carry no author byline, so its credibility rests on its citations: each chapter ends with a dated reference list mixing papers such as ReAct, Reflexion and Huang et al.'s ICLR 2024 study on self-correction with practitioner writing from Hamel Husain, Eugene Yan and Anthropic. The curriculum runs to 86 chapters and about 170,000 words in twelve parts: Start Here, How Models Behave, Working with Model APIs, Prompt Engineering, Eval Fundamentals, Context Engineering, Retrieval (RAG), Agent Engineering, Evaluation and Observability, Security and Governance, Production AI, and AI Product Engineering, with a capstone track still planned. Evals come in Part 4, before RAG and agents, and the eval-set chapter has you build a roughly 50-row JSONL file in git with binary pass/fail labels. Code samples are short Python, mostly standard library, so they work with any SDK; the agent-loop chapter builds a ReAct skeleton and a StopGuard that caps steps, wall-clock time and dollars. The chapters sampled were updated between June and August 2026, and the book is marked as in active development. Its scope stays above the API: it covers using foundation models and leaves training them to other resources.

At a Glance

Topic
Agentic
Level
All Levels
Format
Book
Cost
Free
Duration
~16 hours of reading across 86 chapters (about 170,000 words), self-paced
Provider
handbook.academy
Hands-on
Yes — code/exercises
Certificate
None

What You’ll Learn

  • ✓Build a versioned 50-example eval set with binary pass/fail labels before writing RAG or agent code
  • ✓Design an agent loop with hard step, wall-clock and dollar limits plus cycle detection
  • ✓Call model APIs with streaming, structured outputs, tool calling, retries, fallbacks and prompt caching
  • ✓Build retrieval pipelines covering chunking, hybrid search, reranking, query understanding and citation grounding
  • ✓Use LLM-as-judge evaluators while guarding against the judge failure modes the book catalogs
  • ✓Defend agents against prompt injection and the lethal trifecta with guardrails, red-teaming and audit trails
  • ✓Engineer production cost and latency, and decide between hosted and self-hosted models
  • ✓Integrate tools through MCP and understand the security risks the protocol introduces

Highlights

  • •Puts evals in Part 4, ahead of RAG and agents, and has you build an eval set early
  • •Every chapter ends with a dated reference list of papers and practitioner sources, mostly from 2024 to 2026
  • •Short framework-neutral Python snippets (standard-library dataclasses and json) that don't depend on one vendor SDK
  • •Openly licensed (CC BY-SA 4.0 text, MIT code), with 864 GitHub stars and 91 forks as of November 1, 2026
  • •Per-chapter reading times and level labels let you jump straight to the 3-hour Agent Engineering part

Who It’s For

Best For

  • ✓Software engineers moving into AI product work without an ML background
  • ✓AI engineers who want one reference covering evals, RAG, agents and production
  • ✓Tech leads setting an eval and security baseline for a team shipping LLM features

Prerequisites

  • •Working software engineering experience in Python or a similar language
  • •Basic familiarity with calling HTTP APIs; no ML or math background is assumed

FAQ

What is The AI Engineering Handbook?

The AI Engineering Handbook is a free, open-source book for software engineers building products on foundation models, with no ML background assumed. It covers model behavior, APIs, prompting, evals, context engineering, RAG, agents, security and production, so you can ship an LLM feature with an eval set, guardrails and cost limits in place.

Is The AI Engineering Handbook free?

The AI Engineering Handbook is free to access.

What level is The AI Engineering Handbook for?

The AI Engineering Handbook is aimed at a all levels audience. Recommended background: Working software engineering experience in Python or a similar language, Basic familiarity with calling HTTP APIs; no ML or math background is assumed.

How long does The AI Engineering Handbook take?

Expect roughly ~16 hours of reading across 86 chapters (about 170,000 words), self-paced. Most learners work through it at their own pace.

What will I learn from The AI Engineering Handbook?

You'll learn: Build a versioned 50-example eval set with binary pass/fail labels before writing RAG or agent code; Design an agent loop with hard step, wall-clock and dollar limits plus cycle detection; Call model APIs with streaming, structured outputs, tool calling, retries, fallbacks and prompt caching; Build retrieval pipelines covering chunking, hybrid search, reranking, query understanding and citation grounding; Use LLM-as-judge evaluators while guarding against the judge failure modes the book catalogs; Defend agents against prompt injection and the lethal trifecta with guardrails, red-teaming and audit trails; Engineer production cost and latency, and decide between hosted and self-hosted models; Integrate tools through MCP and understand the security risks the protocol introduces.

Topics

ai-engineeringllm-evalsagent-engineeringragcontext-engineeringopen-source-book

Sources

This page was written from 5 sources, 1 on domains other than ai-eng.handbook.academy.

  1. 1.ai-eng.handbook.academy — ai-eng.handbook.academyvendor
  2. 2.ai-eng.handbook.academy — curriculumvendor
  3. 3.ai-eng.handbook.academy — the agent loopvendor
  4. 4.ai-eng.handbook.academy — your first eval setvendor
  5. 5.github.com — engineering handbook