Five books for engineers moving into applied LLM work
Five books for engineers moving into applied LLM work
An engineer has been asked to build an assistant that answers questions from internal documentation. The first prototype retrieves a paragraph and sends it to a model; the harder questions are how to measure wrong answers, control latency and cost, and keep retrieved text from steering the assistant’s behavior. These five books help with different parts of that job.
This guide is a research-based reading map, not a hands-on test of the books or their code. Publication details, companion repositories, and availability can change; confirm the edition and code access on the publisher’s listing before buying.
Which LLM book should an application engineer buy first?
Start with O’Reilly AI Engineering for decisions about models, prompts, retrieval, evaluation, and cost across an application. Choose Packt LLM Engineer’s Handbook if you need a more implementation-led production path. The other three are better first purchases when your immediate gap is model internals, visual explanations, or application patterns.
Compare the five books
All five are first-edition titles published in 2024 or 2025. “Code” below describes the role of examples in the book, not a promise that a particular repository or dependency version still runs unchanged.
| Product | Year and edition | Python and machine learning starting point | Code examples | Retrieval and fine-tuning | Evaluation and deployment |
|---|---|---|---|---|---|
| O’Reilly AI Engineering, by Chip Huyen | 2025, first edition | Python familiarity helps; prior machine learning knowledge makes model tradeoffs easier to follow | Examples support design decisions; check the publisher listing for current companion material | Covers both as application choices | Substantial attention to evaluation, inference, and operating tradeoffs |
| O’Reilly Hands-On Large Language Models, by Jay Alammar and Maarten Grootendorst | 2024, first edition | Comfortable Python use and basic machine learning concepts help with exercises | Code-led explanations and worked techniques | Covers embeddings and retrieval as well as approaches to adapting models | Useful evaluation concepts; less of an end-to-end deployment manual |
| Packt LLM Engineer’s Handbook, by Paul Iusztin and Maxime Labonne | 2024, first edition | Working Python skills and some familiarity with model workflows are useful | Implementation-led examples; check the current code and dependency versions | Covers retrieval and model adaptation in an engineering workflow | Strong emphasis on application evaluation and production workflows |
| Manning Build a Large Language Model (From Scratch), by Sebastian Raschka | 2024, first edition | Python and basic machine learning knowledge are important; tensor operations become part of the work | Step-by-step code builds model components | Fine-tuning is central; retrieval is not the main subject | Explains how models work rather than how to deploy a retrieval application |
| Packt Building LLM Applications for Production, by Valentina Alto | 2024, first edition | Best suited to readers who can already write Python applications | Application-focused examples; verify the current companion code | Covers application patterns involving retrieval and fine-tuning | Addresses evaluation and production concerns, though deployment details still need checking against your stack |
The table gives each book the same test: what knowledge it assumes, how it uses code, and how far it takes an engineer toward a running application. None can settle whether a specific model, framework, or hosted service meets your team’s current rate limits, security requirements, or cost target. Those require a small implementation and an evaluation set drawn from the intended task.
What each book is actually good for
O’Reilly AI Engineering: choosing the right application design
O’Reilly AI Engineering is the broadest first purchase for someone moving from conventional software into LLM applications. Its value is the set of decisions surrounding a model call: whether prompting is enough, when retrieval is needed, when fine-tuning is justified, how to evaluate outputs, and how inference choices affect latency and cost. That scope fits an engineer who must explain a design to a team before selecting a framework.
For the documentation assistant, start here if the project is still deciding what the assistant should answer and how success will be measured. A prompt change, a different retrieval method, and a different model can all appear to improve a few sample answers. The useful habit is to define representative questions and failure cases first, then compare changes against the same evaluation set.
The tradeoff is depth of implementation. A reader seeking a single, current sequence of commands for a chosen framework may want a more code-led companion. Published model and API examples also age quickly. Treat an example as an explanation of a design choice, then check the provider’s current API documentation before copying it.
O’Reilly Hands-On Large Language Models: understanding the techniques behind the application
O’Reilly Hands-On Large Language Models suits the engineer who can call an API but wants to understand what embeddings, transformer models, semantic search, and model adaptation are doing. Jay Alammar and Maarten Grootendorst use visual explanations alongside code, which helps when a retrieval system returns plausible but irrelevant passages or when a fine-tuning proposal needs scrutiny.
This is a good choice if “use retrieval-augmented generation” is already on the project brief but the team has not defined how documents become searchable or what a similarity result means. The book can help a reader reason about the retrieval stage separately from the generation stage. That distinction matters: changing a prompt will not repair a search index that regularly omits the relevant document.
Its practical ceiling is the production application around those techniques. The book is not the shortest route to deployment controls, monitoring, access rules, and release procedures. Some chapters will also demand more machine learning background than an API-only application builder expects. Check the sample material if terms such as embeddings and tensor operations are still unfamiliar.
Packt LLM Engineer’s Handbook: turning a prototype into a repeatable workflow
Packt LLM Engineer’s Handbook is aimed at the gap between a working demo and an application that a team can change safely. It is an implementation-led choice for engineers who want retrieval, evaluation, and production workflow decisions connected in one project. The most useful question to bring to it is: “What has to happen every time the data, prompt, or model changes?”
For the documentation assistant, that means preserving a test set, recording which documents were retrieved, comparing answers after a change, and deciding what result blocks a release. A passing unit test for the retrieval function cannot establish that answers are supported by the retrieved text. Model evaluation needs cases that expose missing evidence, irrelevant passages, and confident answers to questions the documents do not resolve.
The book’s concrete toolchain is both an advantage and a maintenance issue. Specific framework examples make a workflow easier to follow, while APIs and dependency versions can move after publication. Before choosing it as a team implementation guide, inspect the publisher’s current code link and compare its dependencies with your approved stack. The engineering sequence remains useful even if a particular command has changed.
Manning Build a Large Language Model (From Scratch): understanding model internals
Manning Build a Large Language Model (From Scratch) has a different purpose from the other four. Sebastian Raschka walks through building model components in code, then training and fine-tuning. Buy it when the limiting question is how tokenization, attention, training, or model adaptation works, rather than how to connect a hosted model to a document store.
That knowledge can improve applied decisions. An engineer who understands the difference between information supplied in a prompt and behavior learned through fine-tuning is better placed to reject the wrong fix. If a support assistant lacks a current policy document, retrieval may supply it; fine-tuning is not a dependable way to keep changing documents available to a model. If the task instead requires a consistent output pattern across many examples, model adaptation may deserve investigation.
The cost is time and scope. Python alone is not enough to make every exercise comfortable; basic machine learning and tensor concepts matter. This is also the clearest case of too much theory for a reader whose immediate assignment is to ship an application using an existing API. It does not replace a guide to application security, retrieval access controls, inference cost, or deployment. The companion code is available through the book’s project repository; check its stated environment before running it.
Packt Building LLM Applications for Production: application patterns after the first demo
Packt Building LLM Applications for Production is for a Python engineer who already sees the application as more than a prompt. Valentina Alto’s subject is the combination of model calls, retrieval, adaptation, evaluation, and operational concerns needed to make an LLM feature usable beyond a demonstration.
It is a relevant pick when the documentation assistant has a clear use case and the next task is to decide how its parts fit together. Retrieval quality needs testing; model output needs evaluation; failures and latency need to be visible. A useful production plan also says what happens when an API hits a rate limit or a document cannot be accessed, rather than assuming every request follows the successful path.
Read framework-specific examples as patterns to inspect, not as permanent API instructions. A book can show where a retriever or evaluation step belongs without guaranteeing that the printed package versions suit a current deployment. Its production coverage should likewise be checked against the actual environment: a team using a managed model API and one using self-hosted inference will have different deployment, cost, and security work.
How the choices differ on a real project
The books separate most clearly by the question an engineer must answer next. O’Reilly AI Engineering helps decide which approach to try and how to judge it. O’Reilly Hands-On Large Language Models explains why the underlying techniques behave as they do. Packt LLM Engineer’s Handbook and Packt Building LLM Applications for Production focus more on assembling and operating an application. Manning Build a Large Language Model (From Scratch) goes deepest into building and adapting the model itself.
Consider a hypothetical internal documentation assistant that answers from documents a user is allowed to read. Prompt engineering can specify that the assistant cite retrieved passages and say when evidence is missing. Retrieval-augmented generation can supply current documents without placing an entire collection in the context window. Evaluation can test whether the right passages were found and whether the answer is supported. Those are separate checks: a fluent answer can still rely on the wrong document.
Fine-tuning enters the decision for a different reason, such as improving a repeatable task using suitable examples. It does not remove the need to retrieve changing facts or evaluate errors. Likewise, a lower inference cost per token does not guarantee a cheaper application if longer prompts, repeated retrieval, or retries increase total usage. Measure request-level cost and latency with the intended workload.
Security belongs in the design from the start. Retrieved documents may contain instructions that try to override the application’s prompt. An assistant must also respect document permissions before retrieval and avoid exposing private text in logs or evaluation files. Books can explain the risks, but the application needs its own access checks and tests against the data it will handle.
Which one should you buy?
If you can buy one book and your assignment is still loosely defined, choose O’Reilly AI Engineering. It gives you a way to frame model selection, retrieval, evaluation, and inference tradeoffs before implementation choices become expensive.
If the use case is defined and your next job is to build a repeatable Python workflow, choose Packt LLM Engineer’s Handbook. Compare its current companion code with your toolchain first. Choose Packt Building LLM Applications for Production when you want another application-focused treatment of the path from prototype to operation; inspect its contents for the deployment topics your environment requires.
Choose O’Reilly Hands-On Large Language Models when embeddings, retrieval results, or fine-tuning methods still feel opaque. Choose Manning Build a Large Language Model (From Scratch) when model internals are the work, or when a deeper understanding of training and fine-tuning will inform future decisions. Neither is the most direct first purchase for an engineer who needs to deploy a retrieval application this month.
Before ordering any edition, inspect the publisher’s contents, sample chapter, and code link. That quick check catches two common disappointments: prerequisites that are steeper than the cover suggests, and examples tied to an older model API. A book can teach a lasting method while its exact calls need updating.
FAQ
Do you need to learn fine-tuning before building a retrieval application?
No. Start by testing whether the application can retrieve the right material and produce an answer supported by it. Investigate fine-tuning when you have a defined behavior to improve, suitable examples, and an evaluation that can show whether adaptation helped.
Which book is best if you already know Python but little machine learning?
Start with O’Reilly AI Engineering if the immediate task is application design. O’Reilly Hands-On Large Language Models is a useful next step for understanding embeddings and model techniques. Preview the exercises before choosing Manning Build a Large Language Model (From Scratch) as a first book.
Will a 2024 or 2025 book have current API examples?
Do not assume so. Model names, framework interfaces, and provider APIs can change faster than a print edition. Use the book to understand the workflow, then verify installation steps, parameters, limits, and pricing in current provider documentation.
Can one of these books replace evaluation on your own data?
No. Each can help define what to measure, but a release decision needs representative tasks and failure cases from the intended application. Track retrieval results and answer quality separately, and include latency and cost at the request level.
Want help putting AI to work in your own business? See how offhaul.com plans and builds practical AI workflows.
