book

AI Engineering

by Chip Huyen

First published 2024442 pages

Building applications with foundation models — from model selection and fine-tuning to deployment and evaluation.

Why it’s worth your time

Chip Huyen, who taught machine-learning systems at Stanford and built ML tooling at NVIDIA and Netflix, wrote this O'Reilly book for engineers building products on top of foundation models rather than training them. It covers the whole stack: how large models work, how to evaluate them (the book's longest and best section), prompt engineering, retrieval-augmented generation and agents, finetuning, dataset engineering, inference optimization and the architecture of production systems.

It's the most comprehensive and level-headed guide to the field, focused on principles that last rather than on tools that change monthly, and it became the most-read book on O'Reilly's platform. It assumes some engineering background. Read the evaluation chapters even if you skip others.

Where to start

  1. Chapter 1: Introduction to Building AI Applications with Foundation Models

    What changed with foundation models, which use cases work, and how to plan an AI product.

  2. Chapter 3: Evaluation Methodology

    Why evaluating open-ended AI output is hard, and how to do it anyway. The book's most valuable part.

  3. Chapter 6: RAG and Agents

    Retrieval and tool use, the two patterns behind most real AI applications.

  4. Chip Huyen's Blog

    Her long-form posts on ML and AI systems, where many of the book's ideas started.

About Chip Huyen

Chip Huyen is a writer and computer scientist who grew up in Vietnam. She taught machine-learning systems at Stanford, worked on ML tooling at NVIDIA, Snorkel AI and Netflix, and founded and sold an AI infrastructure company. Her books include Designing Machine Learning Systems and AI Engineering.

Everything by Chip Huyen

More by Chip Huyen

Related

Related dispatches

All dispatches