
Generative AI Design Patterns: Solutions to Common Challenges When Building GenAI Agents and Applications
Author(s): Valliappa Lakshmanan (Author), Hannes Hapke (Author)
- Publisher finelybook 出版社: O'Reilly Media
- Publication Date 出版日期: November 11, 2025
- Edition 版次: 1st
- Language 语言: English
- Print length 页数: 506 pages
- ASIN: B0FN37DV9N
- ISBN-13: 9798341622661
Book Description
Generative AI enables powerful new capabilities, but they come with some serious limitations that you'll have to tackle to ship a reliable application or agent. Luckily, experts in the field have compiled a library of 32 tried-and-true design patterns to address the challenges you're likely to encounter when building applications using LLMs, such as hallucinations, nondeterministic responses, and knowledge cutoffs.
This book codifies research and real-world experience into advice you can incorporate into your projects. Each pattern describes a problem, shows a proven way to solve it with a fully coded example, and discusses trade-offs.
- Design around the limitations of LLMs
- Ensure that generated content follows a specific style, tone, or format
- Maximize creativity while balancing different types of risk
- Build agents that plan, self-correct, take action, and collaborate with other agents
- Compose patterns into agentic applications for a variety of use cases
Editorial Reviews
About the Author
Hannes Hapke is a Senior Machine Learning Engineer at Digits, and has co-authored multiple machine learning publications, including the book Building Machine Learning Pipelines and Machine Learning Production Systems by O'Reilly Media. He has also presented state-of-the-art ML work at conferences like ODSC or O’Reilly’s TensorFlow World and is an active contributor to TensorFlow's TFX Addons project. Hannes is passionate about machine learning engineering and production machine learning use cases using the latest machine learning developments.
finelybook
