Hands on Engineering Patterns for Building AI Systems
Buch, Englisch, Format (B × H): 155 mm x 235 mm
ISBN: 979-8-8688-3502-5
Verlag: APRESS L.P.
Building AI features that work in demos is easy; building ones that survive real-world production is not. This book is a practical field guide for engineers navigating this gap. It distills hard-earned lessons into fifty actionable patterns that cover the full lifecycle of AI systems from early decision-making to production operations helping teams move from experimental prototypes to reliable, scalable deployments.
The book begins with pre-coding fundamentals, introducing frameworks such as the AI versus no-AI decision model, the failure-first mindset, and evaluation gates that ensure teams build the right solution from the start. It then treats prompts as production code, covering output contracts, versioning, and testing practices, before diving into context management and retrieval design to improve accuracy and efficiency. From there, the focus shifts to integration and production reliability streaming, retries, caching, and protocols like MCP and A2A that enable robust system composition. A significant portion is dedicated to security, addressing prompt injection, input defense, data protection, and trust propagation across multi-step agent workflows. The final sections cover evaluation, testing infrastructure, deployment strategies, observability, and incident response practices required to operate AI systems at scale. Two end-to-end examples, a support agent copilot and a customer-facing assistant evolve throughout the book, demonstrating how patterns apply in real systems.
By the end, readers will be equipped to design, test, secure, and operate AI systems with production-grade discipline. This book provides a clear blueprint for building AI features that are not just functional, but reliable and resilient under real-world conditions.
What you will learn :
- Design prompts as production code using contracts, validation, clear roles, tuning, and CI pipelines to prevent regressions.
- Build robust RAG systems with efficient chunking, hybrid search, reranking, and context control for consistent accuracy.
- Secure AI systems against injection, data leaks, and trust failures using proven patterns from real production incidents.
- Operate AI in production with eval-driven metrics, regression gates, versioning, canary releases, drift checks, and incident playbooks.
Who this book is for :
The primary audience is mid-level to senior software engineers and AI/ML engineers building LLM-backed features in production. The book also speaks directly to security architects evaluating AI systems, ML platform engineers building shared infrastructure and engineering managers responsible for AI initiatives.
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
Part 1 - Thinking and Prompting.- Chapter 1: Think before you build.- Chapter 2: Prompts are code.- Part 2 - Data and Retrieval.- Chapter 3: Context and memory patterns.- Chapter 4: Retrieval and RAG patterns.- Part 3 - Integration and Production.- Chapter 5: API and integration patterns.- Chapter 6: Building reliable AI applications.- Part 4 - Security.- Chapter 7: Prompt injection and input defense.- Chapter 8: Data protection and abuse prevention.- Chapter 9: Trust propagation patterns.- Part 5 - Quality and Ops.- Chapter 10: Testing and evaluation patterns.- Chapter 11: Shipping and operating AI systems.- Appendix: The Patterns.




