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 01: Think Before You Build.- Chapter 02: Prompts Are Code.- Part 2 - Data and Retrieval.- Chapter 03: Context and Memory Patterns.- Chapter 04: Retrieval and RAG Patterns.- Part 3 - Integration and Production.- Chapter 05: API and Integration Patterns.- Chapter 06: Building Reliable AI Applications.- Part 4 - Security.- Chapter 07: Prompt Injection and Input Defense.- Chapter 08: Data Protection and Abuse Prevention.- Chapter 09: Trust Propagation Patterns.- Chapter 10: Securing Third-Party Connectors.- Part 5 - Quality and Ops.- Chapter 11: Testing and Evaluation Patterns.- Chapter 12: Shipping and Operating AI Systems.- Appendix.




