LLM Engineer's Handbook vs AI Engineering: which should you read?

Short answer

Read AI Engineering if you want the principles of building on foundation models, such as evaluation, prompting, RAG, agents and fine-tuning, explained without tying you to tools. Read LLM Engineer's Handbook if you learn by building: it takes one LLM system from data collection through fine-tuning, RAG, deployment on AWS and monitoring, in code. They complement each other, and many engineers read AI Engineering first.

Written for engineers choosing between the two best known books on building LLM applications, or deciding the order to read them in.

By , co-founder and CTO of Tellme AIPhD in AI, Queen’s University Belfast · Author of From Model to Product · Updated

Key facts

Definitions

LLM Twin
The project LLM Engineer's Handbook builds: a language model fine-tuned and grounded on one person's writing, used as the thread that connects every chapter's pipeline.
LLMOps
The operating practices for language model applications: versioning prompts, data and models, automated pipelines, evaluation, deployment, monitoring and cost control.
Feature, training and inference pipelines
A way of splitting an ML system into three independent parts: one that prepares data, one that trains models, and one that serves predictions. LLM Engineer's Handbook is built around this split.
Preference alignment
Further training a model on pairs of better and worse responses so that it favours the kind of output people prefer. Direct preference optimisation (DPO) is a common method.

How do the books compare?

LLM Engineer's HandbookAI EngineeringHands-On Large Language Models
AuthorsPaul Iusztin, Maxime LabonneChip HuyenJay Alammar, Maarten Grootendorst
Publisher, datePackt, October 2024O'Reilly, December 2024O'Reilly, September 2024
ApproachOne system built end to end in codePrinciples and frameworks, little codeConcepts through figures and notebooks
StackPython, ZenML, AWS SageMaker and moreTool-agnosticPython notebooks, open models
Strongest onPipelines, fine-tuning, RAG, deploymentEvaluation, prompting, RAG, agents, architectureHow LLMs work and how to use them

What LLM Engineer's Handbook is like

The Handbook teaches by construction. One project runs through the book: collecting data, building a RAG feature pipeline, supervised fine-tuning and preference alignment, evaluating the model, optimising inference, deploying the inference pipeline, and wiring it all together with MLOps and LLMOps practices. Its value is seeing every stage connected, which most books only describe.

Two things to expect. The stack is specific, so some tool choices will date faster than the structure; and the full project runs on a paid cloud account, so budget for it or run the parts you need locally. Readers who skip the cloud steps still get the architecture.

What AI Engineering is like

AI Engineering is the map rather than the route. It explains how foundation models behave, how to evaluate open-ended output, when to use prompting, RAG, agents or fine-tuning, how to engineer datasets, and how to make inference faster and cheaper. Each topic is framed as a decision with trade-offs, which is why engineers return to it when the next model arrives.

Its evaluation chapters are the strongest reason to read it: they explain how to judge open-ended output, including when using a model as a judge is reasonable and what its limits are.

It is weaker exactly where the Handbook is strong: it will not walk you through building and deploying a system. The comparison with Designing Machine Learning Systems covers how it relates to Huyen's earlier book.

Where Hands-On Large Language Models fits

Hands-On Large Language Models is the gentlest of the three. It explains tokens, embeddings and the inside of a transformer visually, then applies pretrained models to classification, clustering, semantic search, RAG and fine-tuning in notebooks you can run. It suits engineers who want intuition before architecture, and it is often read first.

Which order should you read them in?

A practical rule: read one book for judgement and one for practice. AI Engineering supplies the judgement; either of the other two supplies the practice, depending on whether you want to understand models (Hands-On Large Language Models) or ship a pipeline (LLM Engineer's Handbook). Reading all three back to back before building anything is the slowest way to learn from them.

You want toReadThen
Understand LLMs before buildingHands-On Large Language ModelsAI Engineering
Make sound product decisions about LLM featuresAI EngineeringLLM Engineer's Handbook
Build a full pipeline to learn the moving partsLLM Engineer's HandbookAI Engineering
Fine-tune open modelsLLM Engineer's HandbookHands-On Large Language Models
Ship an LLM feature inside an existing productAI EngineeringFrom Model to Product (disclosed below)

What none of the three is about

All three books treat the language model as the centre of the system. Many products use one as a component instead: rules and a trained classifier make the decision, and the language model explains it, drafts text or answers questions, with a fallback when it is slow, expensive or wrong. Deciding where a language model belongs at all is the step before any of these books begin.

From Model to Product starts there. Its chapter on choosing an approach ranks rules, search, classical ML, deep learning and language models by cost and risk, and its running product uses a language model only to explain decisions that rules and a vision model make, served with FastAPI and containers on any cloud. It does not cover fine-tuning or agents in depth. Disclosure: From Model to Product is written by Dr. Dulan Dias, who also writes this site. It appears where it fits, with what it leaves out, and is not ranked above the other books.

Frequently asked questions

Is LLM Engineer's Handbook worth reading?

Yes, if you learn by building. It is one of the few books that connects data collection, fine-tuning, RAG, deployment and monitoring in a single working codebase. Expect a specific stack, including AWS, and treat its tool choices as examples. Readers who want principles rather than a build may prefer AI Engineering.

Do you need AWS to follow LLM Engineer's Handbook?

The book's full project deploys to AWS, using SageMaker, and its repository estimates roughly 25 US dollars for one run with the default settings. You can follow the architecture, the data pipelines and much of the fine-tuning and RAG work without deploying, and adapt the serving steps to another platform.

Which book is better for learning RAG?

For deciding when and how to use retrieval, AI Engineering, which covers RAG alongside agents, prompting and fine-tuning as alternatives. For building a retrieval pipeline in code, LLM Engineer's Handbook, which implements one as part of its project. Hands-On Large Language Models explains semantic search and RAG with runnable notebooks.

Which book covers fine-tuning in more depth?

LLM Engineer's Handbook covers fine-tuning hands-on, including supervised fine-tuning and preference alignment on its project. AI Engineering explains when fine-tuning is worth it and how parameter-efficient methods work, and Hands-On Large Language Models covers fine-tuning in notebooks.

Is LLM Engineer's Handbook good for beginners?

It suits engineers comfortable with Python and the basics of machine learning, because it moves quickly through a real stack. Beginners usually find Hands-On Large Language Models an easier first book, then come to the Handbook once they want to build a complete system.

Should I read Hands-On Large Language Models before the other two?

If tokens, embeddings and attention are still abstract to you, yes. It builds the intuition the other two assume, and its notebooks let you test each idea. If you already work with LLM APIs daily, you can start with AI Engineering instead.

Which of these books is the most up to date?

All three were published within four months of each other in late 2024, so none covers models released since. AI Engineering ages best because it is organised around decisions rather than tools. The Handbook's specific stack dates fastest, though its pipeline structure does not.

What does From Model to Product add to these books?

From Model to Product, by this site's author Dr. Dulan Dias, covers the system around a language model: deciding whether one is needed, combining it with rules and trained models, serving it with FastAPI and containers, and monitoring cost and reliability. It does not replace these books on fine-tuning, evaluation or agents.

Sources

  1. Packt: LLM Engineer's Handbook
  2. Packt: LLM Engineer's Handbook official repository
  3. Chip Huyen: AI Engineering book repository
  4. O'Reilly: AI Engineering
  5. O'Reilly: Hands-On Large Language Models
  6. travis.media: an AI reading list for developers in 2026
  7. From Model to Product, book page
Dr. Dulan Dias

About the author

Dr. Dulan Dias is co-founder and Chief Technology Officer of Tellme AI in Belfast; founder of EchonLabs, grown from 2017 to more than 60 people before its acquisition in 2026; holder of a PhD in AI and data science from Queen’s University Belfast; and the author of From Model to Product.

Who is Dr. Dulan Dias?

All answers