<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Agentic-Design-Patern-Ebooks on AI VOID</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/</link><description>Recent content in Agentic-Design-Patern-Ebooks on AI VOID</description><generator>Hugo</generator><language>en</language><atom:link href="https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/index.xml" rel="self" type="application/rss+xml"/><item><title>Dedication</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/dedication/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/dedication/</guid><description>&lt;p&gt;To my son, Bruno,&lt;/p&gt;
&lt;p&gt;who at two years old, brought a new and brilliant light into my life. As I explore the systems that will define our tomorrow, it is the world you will inherit that is foremost in my thoughts.&lt;/p&gt;
&lt;p&gt;To my sons, Leonardo and Lorenzo, and my daughter Aurora,&lt;/p&gt;
&lt;p&gt;My heart is filled with pride for the women and men you have become and the wonderful world you are building.&lt;/p&gt;</description></item><item><title>Acknowledgment</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/acknowledgment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/acknowledgment/</guid><description>&lt;h1 id="acknowledgment"&gt;Acknowledgment&lt;/h1&gt;
&lt;p&gt;I would like to express my sincere gratitude to the many individuals and teams who made this book possible.&lt;/p&gt;
&lt;p&gt;First and foremost, I thank Google for adhering to its mission, empowering Googlers, and respecting the opportunity to innovate.&lt;/p&gt;
&lt;p&gt;I am grateful to the Office of the CTO for giving me the opportunity to explore new areas, for adhering to its mission of &amp;ldquo;practical magic,&amp;rdquo; and for its capacity to adapt to new emerging opportunities.&lt;/p&gt;</description></item><item><title>Foreword</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/foreword/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/foreword/</guid><description>&lt;h1 id="foreword"&gt;Foreword&lt;/h1&gt;
&lt;p&gt;The field of artificial intelligence is at a fascinating inflection point. We are moving beyond building models that can simply process information to creating intelligent systems that can reason, plan, and act to achieve complex goals with ambiguous tasks. These &amp;ldquo;agentic&amp;rdquo; systems, as this book so aptly describes them, represent the next frontier in AI, and their development is a challenge that excites and inspires us at Google.&lt;/p&gt;
&lt;p&gt;&amp;ldquo;Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems&amp;rdquo; arrives at the perfect moment to guide us on this journey. The book rightly points out that the power of large language models, the cognitive engines of these agents, must be harnessed with structure and thoughtful design. Just as design patterns revolutionized software engineering by providing a common language and reusable solutions to common problems, the agentic patterns in this book will be foundational for building robust, scalable, and reliable intelligent systems.&lt;/p&gt;</description></item><item><title>A Thought Leader&amp;#39;s Perspective: Power and Responsibility</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/a-thought-leaders-perspective-power-and-responsibility/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/a-thought-leaders-perspective-power-and-responsibility/</guid><description>&lt;h1 id="a-thought-leaders-perspective-power-and-responsibility"&gt;A Thought Leader&amp;rsquo;s Perspective: Power and Responsibility&lt;/h1&gt;
&lt;p&gt;Of all the technology cycles I’ve witnessed over the past four decades—from the birth of the personal computer and the web, to the revolutions in mobile and cloud—none has felt quite like this one. For years, the discourse around Artificial Intelligence was a familiar rhythm of hype and disillusionment, the so-called “AI summers” followed by long, cold winters. But this time, something is different. The conversation has palpably shifted. If the last eighteen months were&lt;br&gt;
about the engine—the breathtaking, almost vertical ascent of Large Language Models (LLMs)—the next era will be about the car we build around it. It will be about the frameworks that harness this raw power, transforming it from a generator of plausible text into a true agent of action.&lt;/p&gt;</description></item><item><title>Introduction</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/introduction/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/introduction/</guid><description>&lt;h1 id="preface"&gt;Preface&lt;/h1&gt;
&lt;p&gt;Welcome to &amp;ldquo;Agentic Design Patterns: A Hands-On Guide to Building Intelligent Systems.&amp;rdquo; As we look across the landscape of modern artificial intelligence, we see a clear evolution from simple, reactive programs to sophisticated, autonomous entities capable of understanding context, making decisions, and interacting dynamically with their environment and other systems. These are the intelligent agents and the agentic systems they comprise.&lt;/p&gt;
&lt;p&gt;The advent of powerful large language models (LLMs) has provided unprecedented capabilities for understanding and generating human-like content such as text and media, serving as the cognitive engine for many of these agents. However, orchestrating these capabilities into systems that can reliably achieve complex goals requires more than just a powerful model. It requires structure, design, and a thoughtful approach to how the agent perceives, plans, acts, and interacts.&lt;/p&gt;</description></item><item><title>What makes an AI system an &amp;#34;agent&amp;#34;?</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/what-makes-an-ai-system-an-agent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/what-makes-an-ai-system-an-agent/</guid><description>&lt;h1 id="what-makes-an-ai-system-an-agent"&gt;What makes an AI system an Agent?&lt;/h1&gt;
&lt;p&gt;In simple terms, an &lt;strong&gt;AI agent&lt;/strong&gt; is a system designed to perceive its environment and take actions to achieve a specific goal. It&amp;rsquo;s an evolution from a standard Large Language Model (LLM), enhanced with the abilities to plan, use tools, and interact with its surroundings. Think of an Agentic AI as a smart assistant that learns on the job. It follows a simple, five-step loop to get things done (see Fig.1):&lt;/p&gt;</description></item><item><title>Chapter 1: Prompt Chaining</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/prompt-chaining/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/prompt-chaining/</guid><description>&lt;h1 id="chapter-1-prompt-chaining"&gt;Chapter 1: Prompt Chaining&lt;/h1&gt;
&lt;h1 id="prompt-chaining-pattern-overview"&gt;Prompt Chaining Pattern Overview&lt;/h1&gt;
&lt;p&gt;Prompt chaining, sometimes referred to as Pipeline pattern, represents a powerful paradigm for handling intricate tasks when leveraging large language models (LLMs). Rather than expecting an LLM to solve a complex problem in a single, monolithic step, prompt chaining advocates for a divide-and-conquer strategy. The core idea is to break down the original, daunting problem into a sequence of smaller, more manageable sub-problems. Each sub-problem is addressed individually through a specifically designed prompt, and the output generated from one prompt is strategically fed as input into the subsequent prompt in the chain.&lt;/p&gt;</description></item><item><title>Chapter 2: Routing</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/routing/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/routing/</guid><description>&lt;h1 id="chapter-2-routing"&gt;Chapter 2: Routing&lt;/h1&gt;
&lt;h1 id="routing-pattern-overview"&gt;Routing Pattern Overview&lt;/h1&gt;
&lt;p&gt;While sequential processing via prompt chaining is a foundational technique for executing deterministic, linear workflows with language models, its applicability is limited in scenarios requiring adaptive responses. Real-world agentic systems must often arbitrate between multiple potential actions based on contingent factors, such as the state of the environment, user input, or the outcome of a preceding operation. This capacity for dynamic decision-making, which governs the flow of control to different specialized functions, tools, or sub-processes, is achieved through a mechanism known as routing.&lt;/p&gt;</description></item><item><title>Chapter 3: Parallelization</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/parallelization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/parallelization/</guid><description>&lt;h1 id="chapter-3-parallelization"&gt;Chapter 3: Parallelization&lt;/h1&gt;
&lt;h1 id="parallelization-pattern-overview"&gt;Parallelization Pattern Overview&lt;/h1&gt;
&lt;p&gt;In the previous chapters, we&amp;rsquo;ve explored Prompt Chaining for sequential workflows and Routing for dynamic decision-making and transitions between different paths. While these patterns are essential, many complex agentic tasks involve multiple sub-tasks that can be executed &lt;em&gt;simultaneously&lt;/em&gt; rather than one after another. This is where the &lt;strong&gt;Parallelization&lt;/strong&gt; pattern becomes crucial.&lt;/p&gt;
&lt;p&gt;Parallelization involves executing multiple components, such as LLM calls, tool usages, or even entire sub-agents, concurrently (see Fig.1). Instead of waiting for one step to complete before starting the next, parallel execution allows independent tasks to run at the same time, significantly reducing the overall execution time for tasks that can be broken down into independent parts.&lt;/p&gt;</description></item><item><title>Chapter 4: Reflection</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/reflection/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/reflection/</guid><description>&lt;h1 id="chapter-4-reflection"&gt;Chapter 4: Reflection&lt;/h1&gt;
&lt;h1 id="reflection-pattern-overview"&gt;Reflection Pattern Overview&lt;/h1&gt;
&lt;p&gt;In the preceding chapters, we&amp;rsquo;ve explored fundamental agentic patterns: Chaining for sequential execution, Routing for dynamic path selection, and Parallelization for concurrent task execution. These patterns enable agents to perform complex tasks more efficiently and flexibly. However, even with sophisticated workflows, an agent&amp;rsquo;s initial output or plan might not be optimal, accurate, or complete. This is where the &lt;strong&gt;Reflection&lt;/strong&gt; pattern comes into play.&lt;/p&gt;
&lt;p&gt;The Reflection pattern involves an agent evaluating its own work, output, or internal state and using that evaluation to improve its performance or refine its response. It&amp;rsquo;s a form of self-correction or self-improvement, allowing the agent to iteratively refine its output or adjust its approach based on feedback, internal critique, or comparison against desired criteria. Reflection can occasionally be facilitated by a separate agent whose specific role is to analyze the output of an initial agent.&lt;/p&gt;</description></item><item><title>Chapter 5: Tool Use</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/tool-use/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/tool-use/</guid><description>&lt;h1 id="chapter-5-tool-use-function-calling"&gt;Chapter 5: Tool Use (Function Calling)&lt;/h1&gt;
&lt;h1 id="tool-use-pattern-overview"&gt;Tool Use Pattern Overview&lt;/h1&gt;
&lt;p&gt;So far, we&amp;rsquo;ve discussed agentic patterns that primarily involve orchestrating interactions between language models and managing the flow of information within the agent&amp;rsquo;s internal workflow (Chaining, Routing, Parallelization, Reflection). However, for agents to be truly useful and interact with the real world or external systems, they need the ability to use Tools.&lt;/p&gt;
&lt;p&gt;The Tool Use pattern, often implemented through a mechanism called Function Calling, enables an agent to interact with external APIs, databases, services, or even execute code. It allows the LLM at the core of the agent to decide when and how to use a specific external function based on the user&amp;rsquo;s request or the current state of the task.&lt;/p&gt;</description></item><item><title>Chapter 6: Planning</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/planning/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/planning/</guid><description>&lt;h1 id="chapter-6-planning"&gt;Chapter 6: Planning&lt;/h1&gt;
&lt;p&gt;Intelligent behavior often involves more than just reacting to the immediate input. It requires foresight, breaking down complex tasks into smaller, manageable steps, and strategizing how to achieve a desired outcome. This is where the Planning pattern comes into play. At its core, planning is the ability for an agent or a system of agents to formulate a sequence of actions to move from an initial state towards a goal state.&lt;/p&gt;</description></item><item><title>Chapter 7: Multi-Agent</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/multi-agent/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/multi-agent/</guid><description>&lt;h1 id="chapter-7-multi-agent-collaboration"&gt;Chapter 7: Multi-Agent Collaboration&lt;/h1&gt;
&lt;p&gt;While a monolithic agent architecture can be effective for well-defined problems, its capabilities are often constrained when faced with complex, multi-domain tasks. The Multi-Agent Collaboration pattern addresses these limitations by structuring a system as a cooperative ensemble of distinct, specialized agents. This approach is predicated on the principle of task decomposition, where a high-level objective is broken down into discrete sub-problems. Each sub-problem is then assigned to an agent possessing the specific tools, data access, or reasoning capabilities best suited for that task.&lt;/p&gt;</description></item><item><title>Chapter 8: Memory Management</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/memory-management/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/memory-management/</guid><description>&lt;h1 id="chapter-8-memory-management"&gt;Chapter 8: Memory Management&lt;/h1&gt;
&lt;p&gt;Effective memory management is crucial for intelligent agents to retain information. Agents require different types of memory, much like humans, to operate efficiently. This chapter delves into memory management, specifically addressing the immediate (short-term) and persistent (long-term) memory requirements of agents.&lt;/p&gt;
&lt;p&gt;In agent systems, memory refers to an agent&amp;rsquo;s ability to retain and utilize information from past interactions, observations, and learning experiences. This capability allows agents to make informed decisions, maintain conversational context, and improve over time. Agent memory is generally categorized into two main types:&lt;/p&gt;</description></item><item><title>Chapter 9: Learning and Adaptation</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/learning-and-adaptation/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/learning-and-adaptation/</guid><description>&lt;h1 id="chapter-9-learning-and-adaptation"&gt;Chapter 9: Learning and Adaptation&lt;/h1&gt;
&lt;p&gt;Learning and adaptation are pivotal for enhancing the capabilities of artificial intelligence agents. These processes enable agents to evolve beyond predefined parameters, allowing them to improve autonomously through experience and environmental interaction. By learning and adapting, agents can effectively manage novel situations and optimize their performance without constant manual intervention. This chapter explores the principles and mechanisms underpinning agent learning and adaptation in detail.&lt;/p&gt;
&lt;h1 id="the-big-picture"&gt;The big picture&lt;/h1&gt;
&lt;p&gt;Agents learn and adapt by changing their thinking, actions, or knowledge based on new experiences and data. This allows agents to evolve from simply following instructions to becoming smarter over time.&lt;/p&gt;</description></item><item><title>Chapter 10: Model Context Protocol (MCP)</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/model-context-protocol-mcp/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/model-context-protocol-mcp/</guid><description>&lt;h1 id="chapter-10-model-context-protocol"&gt;Chapter 10: Model Context Protocol&lt;/h1&gt;
&lt;p&gt;To enable LLMs to function effectively as agents, their capabilities must extend beyond multimodal generation. Interaction with the external environment is necessary, including access to current data, utilization of external software, and execution of specific operational tasks. The Model Context Protocol (MCP) addresses this need by providing a standardized interface for LLMs to interface with external resources. This protocol serves as a key mechanism to facilitate consistent and predictable integration.&lt;/p&gt;</description></item><item><title>Chapter 11: Goal Setting and Monitoring</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/goal-setting-and-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/goal-setting-and-monitoring/</guid><description>&lt;h1 id="chapter-11-goal-setting-and-monitoring"&gt;Chapter 11: Goal Setting and Monitoring&lt;/h1&gt;
&lt;p&gt;For AI agents to be truly effective and purposeful, they need more than just the ability to process information or use tools; they need a clear sense of direction and a way to know if they&amp;rsquo;re actually succeeding. This is where the Goal Setting and Monitoring pattern comes into play. It&amp;rsquo;s about giving agents specific objectives to work towards and equipping them with the means to track their progress and determine if those objectives have been met.&lt;/p&gt;</description></item><item><title>Chapter 12: Exception Handling and Recovery</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/exception-handling-and-recovery/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/exception-handling-and-recovery/</guid><description>&lt;h1 id="chapter-12-exception-handling-and-recovery"&gt;Chapter 12: Exception Handling and Recovery&lt;/h1&gt;
&lt;p&gt;For AI agents to operate reliably in diverse real-world environments, they must be able to manage unforeseen situations, errors, and malfunctions. Just as humans adapt to unexpected obstacles, intelligent agents need robust systems to detect problems, initiate recovery procedures, or at least ensure controlled failure. This essential requirement forms the basis of the Exception Handling and Recovery pattern.&lt;/p&gt;
&lt;p&gt;This pattern focuses on developing exceptionally durable and resilient agents that can maintain uninterrupted functionality and operational integrity despite various difficulties and anomalies. It emphasizes the importance of both proactive preparation and reactive strategies to ensure continuous operation, even when facing challenges. This adaptability is critical for agents to function successfully in complex and unpredictable settings, ultimately boosting their overall effectiveness and trustworthiness.&lt;/p&gt;</description></item><item><title>Chapter 13: Human-in-the-Loop</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/human-in-the-loop/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/human-in-the-loop/</guid><description>&lt;h1 id="chapter-13-human-in-the-loop"&gt;Chapter 13: Human-in-the-Loop&lt;/h1&gt;
&lt;p&gt;The Human-in-the-Loop (HITL) pattern represents a pivotal strategy in the development and deployment of Agents. It deliberately interweaves the unique strengths of human cognition—such as judgment, creativity, and nuanced understanding—with the computational power and efficiency of AI. This strategic integration is not merely an option but often a necessity, especially as AI systems become increasingly embedded in critical decision-making processes.&lt;/p&gt;
&lt;p&gt;The core principle of HITL is to ensure that AI operates within ethical boundaries, adheres to safety protocols, and achieves its objectives with optimal effectiveness. These concerns are particularly acute in domains characterized by complexity, ambiguity, or significant risk, where the implications of AI errors or misinterpretations can be substantial. In such scenarios, full autonomy—where AI systems function independently without any human intervention—may prove to be imprudent. HITL acknowledges this reality and emphasizes that even with rapidly advancing AI technologies, human oversight, strategic input, and collaborative interactions remain indispensable.&lt;/p&gt;</description></item><item><title>Chapter 14: Knowledge Retrieval (RAG)</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/knowledge-retrieval-rag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/knowledge-retrieval-rag/</guid><description>&lt;h1 id="chapter-14-knowledge-retrieval-rag"&gt;Chapter 14: Knowledge Retrieval (RAG)&lt;/h1&gt;
&lt;p&gt;LLMs exhibit substantial capabilities in generating human-like text. However, their knowledge base is typically confined to the data on which they were trained, limiting their access to real-time information, specific company data, or highly specialized details. Knowledge Retrieval (RAG, or Retrieval Augmented Generation), addresses this limitation. RAG enables LLMs to access and integrate external, current, and context-specific information, thereby enhancing the accuracy, relevance, and factual basis of their outputs.&lt;/p&gt;</description></item><item><title>Chapter 15: Inter-Agent Communication (A2A)</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/inter-agent-communication-a2a/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/inter-agent-communication-a2a/</guid><description>&lt;h1 id="chapter-15-inter-agent-communication-a2a"&gt;Chapter 15: Inter-Agent Communication (A2A)&lt;/h1&gt;
&lt;p&gt;Individual AI agents often face limitations when tackling complex, multifaceted problems, even with advanced capabilities. To overcome this, Inter-Agent Communication (A2A) enables diverse AI agents, potentially built with different frameworks, to collaborate effectively. This collaboration involves seamless coordination, task delegation, and information exchange.&lt;/p&gt;
&lt;p&gt;Google&amp;rsquo;s A2A protocol is an open standard designed to facilitate this universal communication. This chapter will explore A2A, its practical applications, and its implementation within the Google ADK.&lt;/p&gt;</description></item><item><title>Chapter 16: Resource-Aware Optimization</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/resource-aware-optimization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/resource-aware-optimization/</guid><description>&lt;h1 id="chapter-16-resource-aware-optimization"&gt;Chapter 16: Resource-Aware Optimization&lt;/h1&gt;
&lt;p&gt;Resource-Aware Optimization enables intelligent agents to dynamically monitor and manage computational, temporal, and financial resources during operation. This differs from simple planning, which primarily focuses on action sequencing. Resource-Aware Optimization requires agents to make decisions regarding action execution to achieve goals within specified resource budgets or to optimize efficiency. This involves choosing between more accurate but expensive models and faster, lower-cost ones, or deciding whether to allocate additional compute for a more refined response versus returning a quicker, less detailed answer.&lt;/p&gt;</description></item><item><title>Chapter 17: Reasoning Techniques</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/reasoning-techniques/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/reasoning-techniques/</guid><description>&lt;h1 id="chapter-17-reasoning-techniques"&gt;Chapter 17: Reasoning Techniques&lt;/h1&gt;
&lt;p&gt;This chapter delves into advanced reasoning methodologies for intelligent agents, focusing on multi-step logical inferences and problem-solving. These techniques go beyond simple sequential operations, making the agent&amp;rsquo;s internal reasoning explicit. This allows agents to break down problems, consider intermediate steps, and reach more robust and accurate conclusions. A core principle among these advanced methods is the allocation of increased computational resources during inference. This means granting the agent, or the underlying LLM, more processing time or steps to process a query and generate a response. Rather than a quick, single pass, the agent can engage in iterative refinement, explore multiple solution paths, or utilize external tools. This extended processing time during inference often significantly enhances accuracy, coherence, and robustness, especially for complex problems requiring deeper analysis and deliberation.&lt;/p&gt;</description></item><item><title>Chapter 18: Guardrails/Safety Patterns</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/guardrails-safety-patterns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/guardrails-safety-patterns/</guid><description>&lt;h1 id="chapter-18-guardrailssafety-patterns"&gt;Chapter 18: Guardrails/Safety Patterns&lt;/h1&gt;
&lt;p&gt;Guardrails, also referred to as safety patterns, are crucial mechanisms that ensure intelligent agents operate safely, ethically, and as intended, particularly as these agents become more autonomous and integrated into critical systems. They serve as a protective layer, guiding the agent&amp;rsquo;s behavior and output to prevent harmful, biased, irrelevant, or otherwise undesirable responses. These guardrails can be implemented at various stages, including Input Validation/Sanitization to filter malicious content, Output Filtering/Post-processing to analyze generated responses for toxicity or bias, Behavioral Constraints (Prompt-level) through direct instructions, Tool Use Restrictions to limit agent capabilities, External Moderation APIs for content moderation, and Human Oversight/Intervention via &amp;ldquo;Human-in-the-Loop&amp;rdquo; mechanisms.&lt;/p&gt;</description></item><item><title>Chapter 19: Evaluation and Monitoring</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/evaluation-and-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/evaluation-and-monitoring/</guid><description>&lt;h1 id="chapter-19-evaluation-and-monitoring"&gt;Chapter 19: Evaluation and Monitoring&lt;/h1&gt;
&lt;p&gt;This chapter examines methodologies that allow intelligent agents to systematically assess their performance, monitor progress toward goals, and detect operational anomalies. While Chapter 11 outlines goal setting and monitoring, and Chapter 17 addresses Reasoning mechanisms, this chapter focuses on the continuous, often external, measurement of an agent&amp;rsquo;s effectiveness, efficiency, and compliance with requirements. This includes defining metrics, establishing feedback loops, and implementing reporting systems to ensure agent performance aligns with expectations in operational environments (see Fig.1)&lt;/p&gt;</description></item><item><title>Chapter 20: Prioritization</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/prioritization/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/prioritization/</guid><description>&lt;h1 id="chapter-20-prioritization"&gt;Chapter 20: Prioritization&lt;/h1&gt;
&lt;p&gt;In complex, dynamic environments, Agents frequently encounter numerous potential actions, conflicting goals, and limited resources. Without a defined process for determining the subsequent action, the agents may experience reduced efficiency, operational delays, or failures to achieve key objectives. The prioritization pattern addresses this issue by enabling agents to assess and rank tasks, objectives, or actions based on their significance, urgency, dependencies, and established criteria. This ensures the agents concentrate efforts on the most critical tasks, resulting in enhanced effectiveness and goal alignment.&lt;/p&gt;</description></item><item><title>Chapter 21: Exploration and Discovery</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/exploration-and-discovery/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/exploration-and-discovery/</guid><description>&lt;h1 id="chapter-21-exploration-and-discovery"&gt;Chapter 21: Exploration and Discovery&lt;/h1&gt;
&lt;p&gt;This chapter explores patterns that enable intelligent agents to actively seek out novel information, uncover new possibilities, and identify unknown unknowns within their operational environment. Exploration and discovery differ from reactive behaviors or optimization within a predefined solution space. Instead, they focus on agents proactively venturing into unfamiliar territories, experimenting with new approaches, and generating new knowledge or understanding. This pattern is crucial for agents operating in open-ended, complex, or rapidly evolving domains where static knowledge or pre-programmed solutions are insufficient. It emphasizes the agent&amp;rsquo;s capacity to expand its understanding and capabilities.&lt;/p&gt;</description></item><item><title>Appendix A: Advanced Prompting Techniques</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/advanced-prompting-techniques/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/advanced-prompting-techniques/</guid><description>&lt;h1 id="appendix-a-advanced-prompting-techniques"&gt;Appendix A: Advanced Prompting Techniques&lt;/h1&gt;
&lt;h1 id="introduction-to-prompting"&gt;Introduction to Prompting&lt;/h1&gt;
&lt;p&gt;Prompting, the primary interface for interacting with language models, is the process of crafting inputs to guide the model towards generating a desired output. This involves structuring requests, providing relevant context, specifying the output format, and demonstrating expected response types. Well-designed prompts can maximize the potential of language models, resulting in accurate, relevant, and creative responses. In contrast, poorly designed prompts can lead to ambiguous, irrelevant, or erroneous outputs.&lt;/p&gt;</description></item><item><title>Appendix B - AI Agentic ….: From GUI to Real world environment</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/ai-agentic-from-gui-to-real-world-environment/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/ai-agentic-from-gui-to-real-world-environment/</guid><description>&lt;h1 id="appendix-b---ai-agentic-interactions-from-gui-to-real-world-environment"&gt;Appendix B - AI Agentic Interactions: From GUI to Real World environment&lt;/h1&gt;
&lt;p&gt;AI agents are increasingly performing complex tasks by interacting with digital interfaces and the physical world. Their ability to perceive, process, and act within these varied environments is fundamentally transforming automation, human-computer interaction, and intelligent systems. This appendix explores how agents interact with computers and their environments, highlighting advancements and projects.&lt;/p&gt;
&lt;h1 id="interaction-agents-with-computers"&gt;Interaction: Agents with Computers&lt;/h1&gt;
&lt;p&gt;The evolution of AI from conversational partners to active, task-oriented agents is being driven by Agent-Computer Interfaces (ACIs). These interfaces allow AI to interact directly with a computer&amp;rsquo;s Graphical User Interface (GUI), enabling it to perceive and manipulate visual elements like icons and buttons just as a human would. This new method moves beyond the rigid, developer-dependent scripts of traditional automation that relied on APIs and system calls. By using the visual &amp;ldquo;front door&amp;rdquo; of software, AI can now automate complex digital tasks in a more flexible and powerful way, a process that involves several key stages:&lt;/p&gt;</description></item><item><title>Appendix C - Quick overview of Agentic Frameworks</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/quick-overview-of-agentic-frameworks/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/quick-overview-of-agentic-frameworks/</guid><description>&lt;h1 id="appendix-c---quick-overview-of-agentic-frameworks"&gt;Appendix C - Quick overview of Agentic Frameworks&lt;/h1&gt;
&lt;h1 id="langchain"&gt;LangChain&lt;/h1&gt;
&lt;p&gt;LangChain is a framework for developing applications powered by LLMs. Its core strength lies in its LangChain Expression Language (LCEL), which allows you to &amp;ldquo;pipe&amp;rdquo; components together into a chain. This creates a clear, linear sequence where the output of one step becomes the input for the next. It&amp;rsquo;s built for workflows that are Directed Acyclic Graphs (DAGs), meaning the process flows in one direction without loops.&lt;/p&gt;</description></item><item><title>Appendix D - Building an Agent with AgentSpace (on-line only)</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/building-an-agent-with-agentspace-online-only/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/building-an-agent-with-agentspace-online-only/</guid><description>&lt;h1 id="appendix-d---building-an-agent-with-agentspace"&gt;Appendix D - Building an Agent with AgentSpace&lt;/h1&gt;
&lt;h1 id="overview"&gt;Overview&lt;/h1&gt;
&lt;p&gt;AgentSpace is a platform designed to facilitate an &amp;ldquo;agent-driven enterprise&amp;rdquo; by integrating artificial intelligence into daily workflows. At its core, it provides a unified search capability across an organization&amp;rsquo;s entire digital footprint, including documents, emails, and databases. This system utilizes advanced AI models, like Google&amp;rsquo;s Gemini, to comprehend and synthesize information from these varied sources.&lt;/p&gt;
&lt;p&gt;The platform enables the creation and deployment of specialized AI &amp;ldquo;agents&amp;rdquo; that can perform complex tasks and automate processes. These agents are not merely chatbots; they can reason, plan, and execute multi-step actions autonomously. For instance, an agent could research a topic, compile a report with citations, and even generate an audio summary.&lt;/p&gt;</description></item><item><title>Appendix E - AI Agents on the CLI (online)</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/ai-agents-on-the-cli-online/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/ai-agents-on-the-cli-online/</guid><description>&lt;h1 id="appendix-e---ai-agents-on-the-cli"&gt;Appendix E - AI Agents on the CLI&lt;/h1&gt;
&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;​​The developer&amp;rsquo;s command line, long a bastion of precise, imperative commands, is undergoing a profound transformation. It is evolving from a simple shell into an intelligent, collaborative workspace powered by a new class of tools: AI Agent Command-Line Interfaces (CLIs). These agents move beyond merely executing commands; they understand natural language, maintain context about your entire codebase, and can perform complex, multi-step tasks that automate significant parts of the development lifecycle.&lt;/p&gt;</description></item><item><title>Appendix F - Under the Hood: An Inside Look at the Agents’ Reasoning Engines</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/under-the-hood-an-inside-look-at-the-agents-reasoning-engines/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/under-the-hood-an-inside-look-at-the-agents-reasoning-engines/</guid><description>&lt;h1 id="appendix-f---under-the-hood-an-inside-look-at-the-agentsreasoning-engines"&gt;Appendix F - Under the Hood: An Inside Look at the Agents’Reasoning Engines&lt;/h1&gt;
&lt;p&gt;The emergence of intelligent Agents represents a pivotal shift in artificial intelligence. These are systems designed to plan, strategize, and execute complex tasks, and at the cognitive core of each lies a LLM. This LLM is not merely a sophisticated text generator; it serves as the foundational reasoning engine, the central &amp;ldquo;mind&amp;rdquo; that empowers the Agent to make decisions, formulate plans, and interact with its environment.&lt;/p&gt;</description></item><item><title>Appendix G - Coding agents</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/coding-agents/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/coding-agents/</guid><description>&lt;h1 id="appendix-g---coding-agents"&gt;Appendix G - Coding Agents&lt;/h1&gt;
&lt;h1 id="vibe-coding-a-starting-point"&gt;Vibe Coding: A Starting Point&lt;/h1&gt;
&lt;p&gt;&amp;ldquo;Vibe coding&amp;rdquo; has become a powerful technique for rapid innovation and creative exploration. This practice involves using LLMs to generate initial drafts, outline complex logic, or build quick prototypes, significantly reducing initial friction. It is invaluable for overcoming the &amp;ldquo;blank page&amp;rdquo; problem, enabling developers to quickly transition from a vague concept to tangible, runnable code. Vibe coding is particularly effective when exploring unfamiliar APIs or testing novel architectural patterns, as it bypasses the immediate need for perfect implementation. The generated code often acts as a creative catalyst, providing a foundation for developers to critique, refactor, and expand upon. Its primary strength lies in its ability to accelerate the initial discovery and ideation phases of the software lifecycle. However, while vibe coding excels at brainstorming, developing robust, scalable, and maintainable software demands a more structured approach, shifting from pure generation to a collaborative partnership with specialized coding agents.&lt;/p&gt;</description></item><item><title>Conclusion</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/conclusion/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/conclusion/</guid><description>&lt;h1 id="conclusion"&gt;Conclusion&lt;/h1&gt;
&lt;p&gt;Throughout this book we have journeyed from the foundational concepts of agentic AI to the practical implementation of sophisticated, autonomous systems. We began with the premise that building intelligent agents is akin to creating a complex work of art on a technical canvas—a process that requires not just a powerful cognitive engine like a large language model, but also a robust set of architectural blueprints. These blueprints, or agentic patterns, provide the structure and reliability needed to transform simple, reactive models into proactive, goal-oriented entities capable of complex reasoning and action.&lt;/p&gt;</description></item><item><title>Glossary</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/glossary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/glossary/</guid><description>&lt;h1 id="glossary"&gt;Glossary&lt;/h1&gt;
&lt;h1 id="fundamental-concepts"&gt;Fundamental Concepts&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Prompt:&lt;/strong&gt; A prompt is the input, typically in the form of a question, instruction, or statement, that a user provides to an AI model to elicit a response. The quality and structure of the prompt heavily influence the model&amp;rsquo;s output, making prompt engineering a key skill for effectively using AI.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Context Window:&lt;/strong&gt; The context window is the maximum number of tokens an AI model can process at once, including both the input and its generated output. This fixed size is a critical limitation, as information outside the window is ignored, while larger windows enable more complex conversations and document analysis.&lt;/p&gt;</description></item><item><title>Index of Terms</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/index-of-terms/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/index-of-terms/</guid><description>&lt;h1 id="glossary"&gt;Glossary&lt;/h1&gt;
&lt;h1 id="fundamental-concepts"&gt;Fundamental Concepts&lt;/h1&gt;
&lt;h1 id="prompt-a-prompt-is-the-input-typically-in-the-form-of-a-question-instruction-or-statement-that-a-user-provides-to-an-ai-model-to-elicit-a-response-the-quality-and-structure-of-the-prompt-heavily-influence-the-models-output-making-prompt-engineering-a-key-skill-for-effectively-using-ai"&gt;Prompt: A prompt is the input, typically in the form of a question, instruction, or statement, that a user provides to an AI model to elicit a response. The quality and structure of the prompt heavily influence the model&amp;rsquo;s output, making prompt engineering a key skill for effectively using AI.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="context-window-the-context-window-is-the-maximum-number-of-tokens-an-ai-model-can-process-at-once-including-both-the-input-and-its-generated-output-this-fixed-size-is-a-critical-limitation-as-information-outside-the-window-is-ignored-while-larger-windows-enable-more-complex-conversations-and-document-analysis"&gt;Context Window: The context window is the maximum number of tokens an AI model can process at once, including both the input and its generated output. This fixed size is a critical limitation, as information outside the window is ignored, while larger windows enable more complex conversations and document analysis.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="in-context-learning-in-context-learning-is-an-ais-ability-to-learn-a-new-task-from-examples-provided-directly-in-the-prompt-without-requiring-any-retraining-this-powerful-feature-allows-a-single-general-purpose-model-to-be-adapted-to-countless-specific-tasks-on-the-fly"&gt;In-Context Learning: In-context learning is an AI&amp;rsquo;s ability to learn a new task from examples provided directly in the prompt, without requiring any retraining. This powerful feature allows a single, general-purpose model to be adapted to countless specific tasks on the fly.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="zero-shot-one-shot--few-shot-prompting-these-are-prompting-techniques-where-a-model-is-given-zero-one-or-a-few-examples-of-a-task-to-guide-its-response-providing-more-examples-generally-helps-the-model-better-understand-the-users-intent-and-improves-its-accuracy-for-the-specific-task"&gt;Zero-Shot, One-Shot, &amp;amp; Few-Shot Prompting: These are prompting techniques where a model is given zero, one, or a few examples of a task to guide its response. Providing more examples generally helps the model better understand the user&amp;rsquo;s intent and improves its accuracy for the specific task.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="multimodality-multimodality-is-an-ais-ability-to-understand-and-process-information-across-multiple-data-types-like-text-images-and-audio-this-allows-for-more-versatile-and-human-like-interactions-such-as-describing-an-image-or-answering-a-spoken-question"&gt;Multimodality: Multimodality is an AI&amp;rsquo;s ability to understand and process information across multiple data types like text, images, and audio. This allows for more versatile and human-like interactions, such as describing an image or answering a spoken question.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="grounding-grounding-is-the-process-of-connecting-a-models-outputs-to-verifiable-real-world-information-sources-to-ensure-factual-accuracy-and-reduce-hallucinations-this-is-often-achieved-with-techniques-like-rag-to-make-ai-systems-more-trustworthy"&gt;Grounding: Grounding is the process of connecting a model&amp;rsquo;s outputs to verifiable, real-world information sources to ensure factual accuracy and reduce hallucinations. This is often achieved with techniques like RAG to make AI systems more trustworthy.&lt;/h1&gt;
&lt;h1 id="core-ai-model-architectures"&gt;Core AI Model Architectures&lt;/h1&gt;
&lt;h1 id="transformers-the-transformer-is-the-foundational-neural-network-architecture-for-most-modern-llms-its-key-innovation-is-the-self-attention-mechanism-which-efficiently-processes-long-sequences-of-text-and-captures-complex-relationships-between-words"&gt;Transformers: The Transformer is the foundational neural network architecture for most modern LLMs. Its key innovation is the self-attention mechanism, which efficiently processes long sequences of text and captures complex relationships between words.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="recurrent-neural-network-rnn-the-recurrent-neural-network-is-a-foundational-architecture-that-preceded-the-transformer-rnns-process-information-sequentially-using-loops-to-maintain-a-memory-of-previous-inputs-which-made-them-suitable-for-tasks-like-text-and-speech-processing"&gt;Recurrent Neural Network (RNN): The Recurrent Neural Network is a foundational architecture that preceded the Transformer. RNNs process information sequentially, using loops to maintain a &amp;ldquo;memory&amp;rdquo; of previous inputs, which made them suitable for tasks like text and speech processing.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="mixture-of-experts-moe-mixture-of-experts-is-an-efficient-model-architecture-where-a-router-network-dynamically-selects-a-small-subset-of-expert-networks-to-handle-any-given-input-this-allows-models-to-have-a-massive-number-of-parameters-while-keeping-computational-costs-manageable"&gt;Mixture of Experts (MoE): Mixture of Experts is an efficient model architecture where a &amp;ldquo;router&amp;rdquo; network dynamically selects a small subset of &amp;ldquo;expert&amp;rdquo; networks to handle any given input. This allows models to have a massive number of parameters while keeping computational costs manageable.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="diffusion-models-diffusion-models-are-generative-models-that-excel-at-creating-high-quality-images-they-work-by-adding-random-noise-to-data-and-then-training-a-model-to-meticulously-reverse-the-process-allowing-them-to-generate-novel-data-from-a-random-starting-point"&gt;Diffusion Models: Diffusion models are generative models that excel at creating high-quality images. They work by adding random noise to data and then training a model to meticulously reverse the process, allowing them to generate novel data from a random starting point.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="mamba-mamba-is-a-recent-ai-architecture-using-a-selective-state-space-model-ssm-to-process-sequences-with-high-efficiency-especially-for-very-long-contexts-its-selective-mechanism-allows-it-to-focus-on-relevant-information-while-filtering-out-noise-making-it-a-potential-alternative-to-the-transformer"&gt;Mamba: Mamba is a recent AI architecture using a Selective State Space Model (SSM) to process sequences with high efficiency, especially for very long contexts. Its selective mechanism allows it to focus on relevant information while filtering out noise, making it a potential alternative to the Transformer.&lt;/h1&gt;
&lt;h1 id="the-llm-development-lifecycle"&gt;The LLM Development Lifecycle&lt;/h1&gt;
&lt;h1 id="the-development-of-a-powerful-language-model-follows-a-distinct-sequence-it-begins-with-pre-training-where-a-massive-base-model-is-built-by-training-it-on-a-vast-dataset-of-general-internet-text-to-learn-language-reasoning-and-world-knowledge-next-is-fine-tuning-a-specialization-phase-where-the-general-model-is-further-trained-on-smaller-task-specific-datasets-to-adapt-its-capabilities-for-a-particular-purpose-the-final-stage-is-alignment-where-the-specialized-models-behavior-is-adjusted-to-ensure-its-outputs-are-helpful-harmless-and-aligned-with-human-values"&gt;The development of a powerful language model follows a distinct sequence. It begins with Pre-training, where a massive base model is built by training it on a vast dataset of general internet text to learn language, reasoning, and world knowledge. Next is Fine-tuning, a specialization phase where the general model is further trained on smaller, task-specific datasets to adapt its capabilities for a particular purpose. The final stage is Alignment, where the specialized model&amp;rsquo;s behavior is adjusted to ensure its outputs are helpful, harmless, and aligned with human values.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="pre-training-techniques-pre-training-is-the-initial-phase-where-a-model-learns-general-knowledge-from-vast-amounts-of-data-the-top-techniques-for-this-involve-different-objectives-for-the-model-to-learn-from-the-most-common-is-causal-language-modeling-clm-where-the-model-predicts-the-next-word-in-a-sentence-another-is-masked-language-modeling-mlm-where-the-model-fills-in-intentionally-hidden-words-in-a-text-other-important-methods-include-denoising-objectives-where-the-model-learns-to-restore-a-corrupted-input-to-its-original-state-contrastive-learning-where-it-learns-to-distinguish-between-similar-and-dissimilar-pieces-of-data-and-next-sentence-prediction-nsp-where-it-determines-if-two-sentences-logically-follow-each-other"&gt;Pre-training Techniques: Pre-training is the initial phase where a model learns general knowledge from vast amounts of data. The top techniques for this involve different objectives for the model to learn from. The most common is Causal Language Modeling (CLM), where the model predicts the next word in a sentence. Another is Masked Language Modeling (MLM), where the model fills in intentionally hidden words in a text. Other important methods include Denoising Objectives, where the model learns to restore a corrupted input to its original state, Contrastive Learning, where it learns to distinguish between similar and dissimilar pieces of data, and Next Sentence Prediction (NSP), where it determines if two sentences logically follow each other.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="fine-tuning-techniques-fine-tuning-is-the-process-of-adapting-a-general-pre-trained-model-to-a-specific-task-using-a-smaller-specialized-dataset-the-most-common-approach-is-supervised-fine-tuning-sft-where-the-model-is-trained-on-labeled-examples-of-correct-input-output-pairs-a-popular-variant-is-instruction-tuning-which-focuses-on-training-the-model-to-better-follow-user-commands-to-make-this-process-more-efficient-parameter-efficient-fine-tuning-peft-methods-are-used-with-top-techniques-including-lora-low-rank-adaptation-which-only-updates-a-small-number-of-parameters-and-its-memory-optimized-version-qlora-another-technique-retrieval-augmented-generation-rag-enhances-the-model-by-connecting-it-to-an-external-knowledge-source-during-the-fine-tuning-or-inference-stage"&gt;Fine-tuning Techniques: Fine-tuning is the process of adapting a general pre-trained model to a specific task using a smaller, specialized dataset. The most common approach is Supervised Fine-Tuning (SFT), where the model is trained on labeled examples of correct input-output pairs. A popular variant is Instruction Tuning, which focuses on training the model to better follow user commands. To make this process more efficient, Parameter-Efficient Fine-Tuning (PEFT) methods are used, with top techniques including LoRA (Low-Rank Adaptation), which only updates a small number of parameters, and its memory-optimized version, QLoRA. Another technique, Retrieval-Augmented Generation (RAG), enhances the model by connecting it to an external knowledge source during the fine-tuning or inference stage.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="alignment--safety-techniques-alignment-is-the-process-of-ensuring-an-ai-models-behavior-aligns-with-human-values-and-expectations-making-it-helpful-and-harmless-the-most-prominent-technique-is-reinforcement-learning-from-human-feedback-rlhf-where-a-reward-model-trained-on-human-preferences-guides-the-ais-learning-process-often-using-an-algorithm-like-proximal-policy-optimization-ppo-for-stability-simpler-alternatives-have-emerged-such-as-direct-preference-optimization-dpo-which-bypasses-the-need-for-a-separate-reward-model-and-kahneman-tversky-optimization-kto-which-simplifies-data-collection-further-to-ensure-safe-deployment-guardrails-are-implemented-as-a-final-safety-layer-to-filter-outputs-and-block-harmful-actions-in-real-time"&gt;Alignment &amp;amp; Safety Techniques: Alignment is the process of ensuring an AI model&amp;rsquo;s behavior aligns with human values and expectations, making it helpful and harmless. The most prominent technique is Reinforcement Learning from Human Feedback (RLHF), where a &amp;ldquo;reward model&amp;rdquo; trained on human preferences guides the AI&amp;rsquo;s learning process, often using an algorithm like Proximal Policy Optimization (PPO) for stability. Simpler alternatives have emerged, such as Direct Preference Optimization (DPO), which bypasses the need for a separate reward model, and Kahneman-Tversky Optimization (KTO), which simplifies data collection further. To ensure safe deployment, Guardrails are implemented as a final safety layer to filter outputs and block harmful actions in real-time.&lt;/h1&gt;
&lt;h1 id="enhancing-ai-agent-capabilities"&gt;Enhancing AI Agent Capabilities&lt;/h1&gt;
&lt;h1 id="ai-agents-are-systems-that-can-perceive-their-environment-and-take-autonomous-actions-to-achieve-goals-their-effectiveness-is-enhanced-by-robust-reasoning-frameworks"&gt;AI agents are systems that can perceive their environment and take autonomous actions to achieve goals. Their effectiveness is enhanced by robust reasoning frameworks.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="chain-of-thought-cot-this-prompting-technique-encourages-a-model-to-explain-its-reasoning-step-by-step-before-giving-a-final-answer-this-process-of-thinking-out-loud-often-leads-to-more-accurate-results-on-complex-reasoning-tasks"&gt;Chain of Thought (CoT): This prompting technique encourages a model to explain its reasoning step-by-step before giving a final answer. This process of &amp;ldquo;thinking out loud&amp;rdquo; often leads to more accurate results on complex reasoning tasks.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="tree-of-thoughts-tot-tree-of-thoughts-is-an-advanced-reasoning-framework-where-an-agent-explores-multiple-reasoning-paths-simultaneously-like-branches-on-a-tree-it-allows-the-agent-to-self-evaluate-different-lines-of-thought-and-choose-the-most-promising-one-to-pursue-making-it-more-effective-at-complex-problem-solving"&gt;Tree of Thoughts (ToT): Tree of Thoughts is an advanced reasoning framework where an agent explores multiple reasoning paths simultaneously, like branches on a tree. It allows the agent to self-evaluate different lines of thought and choose the most promising one to pursue, making it more effective at complex problem-solving.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="react-reason-and-act-react-is-an-agent-framework-that-combines-reasoning-and-acting-in-a-loop-the-agent-first-thinks-about-what-to-do-then-takes-an-action-using-a-tool-and-uses-the-resulting-observation-to-inform-its-next-thought-making-it-highly-effective-at-solving-complex-tasks"&gt;ReAct (Reason and Act): ReAct is an agent framework that combines reasoning and acting in a loop. The agent first &amp;ldquo;thinks&amp;rdquo; about what to do, then takes an &amp;ldquo;action&amp;rdquo; using a tool, and uses the resulting observation to inform its next thought, making it highly effective at solving complex tasks.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="planning-this-is-an-agents-ability-to-break-down-a-high-level-goal-into-a-sequence-of-smaller-manageable-sub-tasks-the-agent-then-creates-a-plan-to-execute-these-steps-in-order-allowing-it-to-handle-complex-multi-step-assignments"&gt;Planning: This is an agent&amp;rsquo;s ability to break down a high-level goal into a sequence of smaller, manageable sub-tasks. The agent then creates a plan to execute these steps in order, allowing it to handle complex, multi-step assignments.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="deep-research-deep-research-refers-to-an-agents-capability-to-autonomously-explore-a-topic-in-depth-by-iteratively-searching-for-information-synthesizing-findings-and-identifying-new-questions-this-allows-the-agent-to-build-a-comprehensive-understanding-of-a-subject-far-beyond-a-single-search-query"&gt;Deep Research: Deep research refers to an agent&amp;rsquo;s capability to autonomously explore a topic in-depth by iteratively searching for information, synthesizing findings, and identifying new questions. This allows the agent to build a comprehensive understanding of a subject far beyond a single search query.&lt;/h1&gt;
&lt;h1&gt;&lt;/h1&gt;
&lt;h1 id="critique-model-a-critique-model-is-a-specialized-ai-model-trained-to-review-evaluate-and-provide-feedback-on-the-output-of-another-ai-model-it-acts-as-an-automated-critic-helping-to-identify-errors-improve-reasoning-and-ensure-the-final-output-meets-a-desired-quality-standard"&gt;Critique Model: A critique model is a specialized AI model trained to review, evaluate, and provide feedback on the output of another AI model. It acts as an automated critic, helping to identify errors, improve reasoning, and ensure the final output meets a desired quality standard.&lt;/h1&gt;
&lt;h1 id="index-of-terms"&gt;Index of Terms&lt;/h1&gt;
&lt;p&gt;This index of terms was generated using Gemini Pro 2.5. The prompt and reasoning steps are included at the end to demonstrate the time-saving benefits and for educational purposes.&lt;/p&gt;</description></item><item><title>Online Contribution - Frequently Asked Questions: Agentic Design Patterns</title><link>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/faq-agentic-design-patterns/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-design-patern-ebook/chapters/faq-agentic-design-patterns/</guid><description>&lt;h3 id="frequently-asked-questions-agentic-design-patterns"&gt;&lt;strong&gt;Frequently Asked Questions: Agentic Design Patterns&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;What is an &amp;ldquo;agentic design pattern&amp;rdquo;?&lt;/strong&gt; An agentic design pattern is a reusable, high-level solution to a common problem encountered when building intelligent, autonomous systems (agents). These patterns provide a structured framework for designing agent behaviors, much like software design patterns do for traditional programming. They help developers build more robust, predictable, and effective AI agents.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What is the main goal of this guide?&lt;/strong&gt; The guide aims to provide a practical, hands-on introduction to designing and building agentic systems. It moves beyond theoretical discussions to offer concrete architectural blueprints that developers can use to create agents capable of complex, goal-oriented behavior in a reliable way.&lt;/p&gt;</description></item></channel></rss>