Move beyond individual prompts and engineer the full information environment an AI model receives. Learn to design, test, measure, and govern context for reliable AI workflows.
AI agents don’t fail because they forget everything. They fail because they remember badly. This book shows you how to engineer memory that stays accurate, efficient and useful over time. From SQLite and PostgreSQL to vector indexes and multi-agent systems, you’ll learn what it takes to build agents that can run for days without losing the plot.
Turn a small language model into an AI agent that runs on your own hardware. This practical guide takes you from choosing a base model to fine-tuning, tool use, evaluation and deployment. With reproducible code and real configurations throughout, you'll learn how to build specialized local agents that are capable, efficient and truly yours.
This book shows how to structure project information so that AI produces software that is consistent, predictable, and aligned with your engineering practices.
Prompt engineering got you a demo; context engineering ships it. This hands-on book teaches you to decide what goes into the model's context window — retrieval, memory, assembly, compression, caching — by building ctxkit, a real Python context engine, one chapter at a time.
Most vector search books start with the database. This one starts with the machine. Build a search engine from scratch, then push it from brute force to billion-scale retrieval with SIMD, HNSW, quantization and distributed systems. By the end, vector search won't be a black box. It'll be something you know how to build, tune and scale.
AI coding agents can move fast, but speed without clear intent creates expensive mistakes. This practical guide shows how Behavior-Driven Development turns specifications into a reliable contract between you and autonomous coding systems, helping agents build the right thing, catch problems earlier and produce software you can trust.
Specification Engineering turns complex ideas into clear, workable specifications. This practical guide takes you from core principles to advanced methods for defining, validating, managing and evolving requirements across products, software, systems and services. Built for real-world use, it gives you the tools to create specifications that people can understand and act on.
ChatGPT can save you time, sharpen your ideas and change the way you work, but only if you know how to use it well. This practical guide takes you from your first prompt to advanced techniques, with real-world examples for writing, research, coding, business and creativity. Learn what works, what doesn’t and how to get better results every day.
Vectors, embeddings, retrieval, agents, and evaluation are all built from first principles inside the chapter that needs them. No mathematics. No machine learning background. No prior AI experience and no framework knowledge is required. We build with plain Python and small, single-purpose libraries.
Build smarter AI applications with Redis at the core. This practical guide shows you how to use vector search, RAG, semantic caching, agent memory and real-time inference to create fast, scalable systems. With runnable Python examples throughout, you’ll learn how to take AI projects from prototype to production.
Unlock the full potential of Qwen 3.8 with a practical guide built for real results. Learn the techniques behind stronger prompts, avoid common mistakes, and create reliable outputs for coding, research, business, creative projects and AI agents with clear examples you can use right away.
AI has changed the way code is written, but its true impact lies in software engineering. This book explains why specification, architecture, and context have moved to the center of modern development.
AI changes the security game. New attack paths demand new ways of thinking. This practical guide shows you how to build, deploy and defend AI systems with confidence using proven patterns, real code and production-tested techniques. Built for engineers who need security that works in the real world.
This book is a workshop where things go wrong on the page, in front of you, and then get fixed in code, with the output that proves the fix worked. There's no need to be a security expert to follow along. We'll be moving from the interpreter to the supply chain, from the token to the human clicking Allow, and from a single tool to a whole host of untrusting servers.