The Russian translation of GenAI Design Patterns by Valliappa Lakshmanan and Hannes Hapke is being released almost simultaneously with the updated English edition. The book adds solutions reflecting the development of agentic AI in 2025–2026, including RLM and harness engineering patterns.
What the authors cover
The book addresses practical challenges in developing applications powered by large language models. Many solutions look convincing in demos, but in production they encounter hallucinations, unpredictable behavior, context limitations, and high processing costs.
The authors have collected 32 patterns covering different stages of building GenAI applications: style control, RAG, multi-agent systems, and safeguards such as Guardrails. Valliappa Lakshmanan previously led AI solutions at Google, while Hannes Hapke is a senior ML engineer at Digits and a Google Developer Expert in machine learning.
Pattern 8: Recursive Language Model
The Recursive Language Model pattern offers a different way to work with large amounts of context. Simply expanding the context window to 1–10 million tokens does not solve every problem: as the text grows, it becomes harder for models to find the information they need, and the computational cost of the attention mechanism becomes significant.
With the RLM approach, context is not passed to the model as one enormous block of text. Instead, it is treated as an external variable in a REPL environment, such as a Python sandbox. The book presents this method as an alternative to approaches based solely on expanding the context window.
Pattern 19: Harness Engineering
Harness engineering describes the infrastructure around a language model that coordinates its work as part of an agent. The authors treat the LLM itself as a stateless function: it receives context and generates text, but cannot execute code, write files, or verify its own output on its own.
An agent harness connects the model to tools and the external environment, manages task execution, and verifies results. With this infrastructure layer, a text generator can operate as a full-fledged agentic system, like Devin.
Who the book is for
- Architects and backend developers integrating LLMs into enterprise systems.
- AI engineers who need to compare RAG, GraphRAG, and RLM and determine where each approach fits.
- Team leads designing multi-agent solutions and working with orchestration, memory, and Guardrails.
The near-simultaneous release of the Russian translation and the new English edition gives Russian-speaking developers access to updated material on RLM, agent harnesses, quality degradation with long contexts, and verifying agent actions in production systems.
About the authors and the edition
Valliappa Lakshmanan is co-founder and CTO of Obin.ai, an agentic AI startup, a former head of AI solutions at Google, and an O'Reilly author. Hannes Hapke is a senior ML engineer at Digits, a Google Developer Expert in machine learning, and co-author of Natural Language Processing in Action.
GenAI Design Patterns: Solutions to Common Problems in Building GenAI Agents and Applications is available on the publisher's website. Buyers of the print edition receive the e-book by email as a gift. Habr members get a 25% discount with the promo code GenAI.