<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LangChain on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/langchain/</link><description>Recent content in LangChain on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 21 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/langchain/index.xml" rel="self" type="application/rss+xml"/><item><title>Integrating with Existing Agent Frameworks</title><link>https://ai-blog.noorshomelab.dev/agentic-lightening-guide/integrating-with-existing-agent-frameworks/</link><pubDate>Thu, 06 Nov 2025 22:00:00 +0530</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-lightening-guide/integrating-with-existing-agent-frameworks/</guid><description>&lt;h2 id="integrating-with-existing-agent-frameworks"&gt;Integrating with Existing Agent Frameworks&lt;/h2&gt;
&lt;p&gt;One of the most compelling features of Agentic Lightening is its ability to train and optimize &lt;em&gt;any&lt;/em&gt; AI agent, regardless of the framework it was built with. This means you don&amp;rsquo;t have to throw away your existing LangChain, AutoGen, OpenAI Agent SDK, or custom agents. Instead, you can &amp;ldquo;light them up&amp;rdquo; by wrapping them with a &lt;code&gt;LitAgent&lt;/code&gt; and integrating them into the Agentic Lightening training pipeline.&lt;/p&gt;</description></item><item><title>LangGraph: Building State Machines for Dynamic Agent Workflows</title><link>https://ai-blog.noorshomelab.dev/ai-agent-frameworks-2026/langgraph-state-machines/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ai-agent-frameworks-2026/langgraph-state-machines/</guid><description>&lt;h2 id="introduction-orchestrating-agents-with-state"&gt;Introduction: Orchestrating Agents with State&lt;/h2&gt;
&lt;p&gt;Welcome back, aspiring AI architects! In our previous chapters, we explored the foundational concepts of AI agents, their components, and the challenges of building multi-step reasoning. We understood that truly intelligent agents often need to perform a sequence of actions, make decisions based on intermediate results, and even loop back to previous steps if needed. This is where the magic of orchestration frameworks comes into play.&lt;/p&gt;</description></item><item><title>Tracing AI Workflows: From Prompt to Prediction</title><link>https://ai-blog.noorshomelab.dev/ai-observability-guide/tracing-ai-workflows-prompt-to-prediction/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ai-observability-guide/tracing-ai-workflows-prompt-to-prediction/</guid><description>&lt;h2 id="tracing-ai-workflows-from-prompt-to-prediction"&gt;Tracing AI Workflows: From Prompt to Prediction&lt;/h2&gt;
&lt;p&gt;Welcome back, future MLOps heroes! In our previous chapter, we explored the fundamentals of logging for AI systems, setting the stage for gaining visibility into our applications. We learned how structured, contextual logs are invaluable for understanding &lt;em&gt;what happened&lt;/em&gt;. But what if you need to understand &lt;em&gt;how&lt;/em&gt; something happened, especially when your AI application interacts with multiple services, databases, and external APIs? How do you follow a single user request or an AI agent&amp;rsquo;s decision-making process across all these moving parts?&lt;/p&gt;</description></item><item><title>Building Your First RAG System: Embeddings, Chunking, and Vector Databases</title><link>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/building-first-rag-system/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/building-first-rag-system/</guid><description>&lt;h2 id="introduction-beyond-the-llms-memory"&gt;Introduction: Beyond the LLM&amp;rsquo;s Memory&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid developer! In our previous chapters, you mastered the art of crafting precise prompts and guiding Large Language Models (LLMs) to perform complex tasks. You&amp;rsquo;ve seen the power of zero-shot, few-shot, and Chain-of-Thought prompting. But what happens when an LLM needs to answer questions about information it was &lt;em&gt;not&lt;/em&gt; trained on, or when its knowledge cutoff means it&amp;rsquo;s unaware of recent events?&lt;/p&gt;
&lt;p&gt;This is where a revolutionary technique called &lt;strong&gt;Retrieval-Augmented Generation (RAG)&lt;/strong&gt; comes into play. RAG empowers LLMs to access and integrate external, up-to-date, and domain-specific information into their responses. Instead of relying solely on their pre-trained knowledge, RAG systems allow LLMs to &amp;ldquo;look up&amp;rdquo; relevant facts from a vast external knowledge base before generating an answer. Think of it as giving your LLM an instant, super-fast librarian who can find exactly the right book for any query.&lt;/p&gt;</description></item><item><title>Deconstructing Agentic AI: LLM, Memory, Tools, and Planning</title><link>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/deconstructing-agentic-ai/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/deconstructing-agentic-ai/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid developer! In our previous chapters, you&amp;rsquo;ve mastered the art of crafting precise and powerful prompts, turning Large Language Models (LLMs) into capable text generators. But what if we want LLMs to do more than just generate text? What if we want them to &lt;em&gt;act&lt;/em&gt; in the world, to remember past interactions, and to strategically use external resources to solve complex problems?&lt;/p&gt;
&lt;p&gt;This is where Agentic AI comes into play. Instead of just a single prompt-response interaction, agentic systems empower LLMs with a &amp;ldquo;body&amp;rdquo; and &amp;ldquo;mind&amp;rdquo; beyond their text generation core. They can perceive, plan, act, and reflect, much like a human. This chapter will be your deep dive into the fundamental architecture of these intelligent agents. We&amp;rsquo;ll deconstruct them into their core components: the LLM itself, memory, tools, and the planning mechanism that orchestrates everything.&lt;/p&gt;</description></item><item><title>Chapter 6: Memory &amp;amp; State Management for Persistent AI Interactions</title><link>https://ai-blog.noorshomelab.dev/applied-agentic-ai-2026-guide/memory-state-management/</link><pubDate>Fri, 16 Jan 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/applied-agentic-ai-2026-guide/memory-state-management/</guid><description>&lt;h3 id="introduction"&gt;Introduction&lt;/h3&gt;
&lt;p&gt;Welcome to Chapter 6! In our journey to become expert Applied AI Engineers, we&amp;rsquo;ve explored the foundational elements of large language models (LLMs), mastered the art of prompt engineering, and learned how to equip our AI with tools and external knowledge through Retrieval-Augmented Generation (RAG). Now, it&amp;rsquo;s time to tackle one of the most crucial aspects of building truly intelligent and engaging AI applications: &lt;strong&gt;memory and state management&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Imagine talking to someone who forgets everything you said a minute ago. Frustrating, right? Traditional LLM calls are inherently stateless, meaning each interaction is treated as a brand new conversation. This chapter will teach you how to overcome this limitation, enabling your AI agents to remember past conversations, learn user preferences, and maintain a consistent context across interactions. By the end, you&amp;rsquo;ll be able to build AI applications that offer persistent, personalized, and far more natural user experiences.&lt;/p&gt;</description></item><item><title>Orchestrating Agents with Frameworks: LangChain and LlamaIndex</title><link>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/orchestrating-agents-frameworks/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/orchestrating-agents-frameworks/</guid><description>&lt;h2 id="orchestrating-agents-with-frameworks-langchain-and-llamaindex"&gt;Orchestrating Agents with Frameworks: LangChain and LlamaIndex&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid AI developer! In our previous chapters, you&amp;rsquo;ve mastered the art of crafting precise prompts, understood the power of Retrieval-Augmented Generation (RAG), and explored the core components that make up an intelligent agent. You now know that building sophisticated AI applications involves more than just a single prompt; it requires a symphony of interconnected parts: an LLM for reasoning, memory to retain context, tools to interact with the world, and a planning mechanism to string it all together.&lt;/p&gt;</description></item><item><title>Building a Simple RAG Agent with Memory</title><link>https://ai-blog.noorshomelab.dev/ai-agent-memory-2026/build-simple-rag-agent/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ai-agent-memory-2026/build-simple-rag-agent/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome back, aspiring AI architect! In our previous chapters, we&amp;rsquo;ve explored the fascinating world of AI memory systems, understanding different types like working, short-term, long-term, episodic, and semantic memory, and how vector memory plays a crucial role in enabling AI agents to access vast external knowledge. Now, it&amp;rsquo;s time to bring these concepts to life by building something truly practical: a simple Retrieval Augmented Generation (RAG) agent with integrated memory.&lt;/p&gt;</description></item><item><title>Orchestrating Intelligence: Agentic Retrieval with LLM-Assisted Planning</title><link>https://ai-blog.noorshomelab.dev/rag-2-0-guide-2026/agentic-retrieval-llm-orchestration/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rag-2-0-guide-2026/agentic-retrieval-llm-orchestration/</guid><description>&lt;h2 id="orchestrating-intelligence-agentic-retrieval-with-llm-assisted-planning"&gt;Orchestrating Intelligence: Agentic Retrieval with LLM-Assisted Planning&lt;/h2&gt;
&lt;p&gt;Welcome back, future RAG 2.0 architects! So far in our journey, we&amp;rsquo;ve explored how to supercharge Retrieval-Augmented Generation (RAG) by moving beyond simple chunking. We&amp;rsquo;ve delved into sophisticated techniques like hybrid search, advanced embeddings, GraphRAG, multi-hop retrieval, and intelligent query rewriting. These methods significantly improve &lt;em&gt;how&lt;/em&gt; we retrieve relevant information.&lt;/p&gt;
&lt;p&gt;But what if the Large Language Model (LLM) itself could be more than just a responder? What if it could &lt;em&gt;plan&lt;/em&gt; its own retrieval strategy, decide which tools to use, and even refine its approach based on the results? This is the essence of &lt;strong&gt;Agentic Retrieval&lt;/strong&gt; – an exciting evolution where LLMs transform from passive generators into active, intelligent orchestrators of information.&lt;/p&gt;</description></item><item><title>Empowering Agents with Custom Tools and API Integrations</title><link>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/empowering-agents-custom-tools/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/empowering-agents-custom-tools/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome back, future agent architects! In our previous chapters, we laid the groundwork for building intelligent agents, exploring how they plan, manage memory, and reason. We&amp;rsquo;ve seen how a Large Language Model (LLM) acts as the brain, enabling your agent to understand, generate, and process information.&lt;/p&gt;
&lt;p&gt;However, even the most powerful LLMs have limitations. They operate on the data they were trained on, which means their knowledge is often dated, they can&amp;rsquo;t perform real-time actions, or access proprietary internal systems. This is where &lt;strong&gt;tools&lt;/strong&gt; come into play—they are the hands and eyes of your agent, extending its reach beyond its internal knowledge base.&lt;/p&gt;</description></item><item><title>Project 2: Enhancing a LangChain Agent with Reinforcement Learning</title><link>https://ai-blog.noorshomelab.dev/agentic-lightening-guide/project-enhancing-langchain-agent-with-rl/</link><pubDate>Thu, 06 Nov 2025 22:00:00 +0530</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-lightening-guide/project-enhancing-langchain-agent-with-rl/</guid><description>&lt;h2 id="project-2-enhancing-a-langchain-agent-with-reinforcement-learning"&gt;Project 2: Enhancing a LangChain Agent with Reinforcement Learning&lt;/h2&gt;
&lt;p&gt;This project delves into a more advanced scenario: taking an existing agent built with a popular framework (LangChain) and enhancing its performance using &lt;strong&gt;Reinforcement Learning (RL)&lt;/strong&gt; via Agentic Lightening. Instead of just tuning prompts, we&amp;rsquo;ll focus on optimizing the agent&amp;rsquo;s decision-making and tool-use strategy in a simulated interactive environment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Clear Objective:&lt;/strong&gt; To integrate a LangChain agent into Agentic Lightening and conceptually train it with RL to improve its ability to solve multi-step problems requiring tool usage.&lt;/p&gt;</description></item><item><title>Persistent Agent Memory: Short-Term Context and Long-Term Knowledge Bases</title><link>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/persistent-agent-memory/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/persistent-agent-memory/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome back, fellow AI architect! In previous chapters, we mastered the art of crafting precise prompts and designing agentic workflows. But have you ever noticed that our agents, while brilliant in the moment, sometimes forget what they just said? Or struggle with questions outside their immediate training data? That&amp;rsquo;s where memory comes in.&lt;/p&gt;
&lt;p&gt;This chapter is all about giving our AI agents a memory – both short-term, for coherent conversations, and long-term, for accessing vast knowledge. We&amp;rsquo;ll dive deep into managing the LLM&amp;rsquo;s context window, integrating vector databases for external knowledge, and building truly intelligent agents that remember and learn. By the end, you&amp;rsquo;ll be able to equip your agents with persistent memory, making them far more capable, consistent, and useful in real-world applications.&lt;/p&gt;</description></item><item><title>Developing Robust Agents: Design Patterns for Production Readiness</title><link>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/developing-robust-agents/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/prompt-agent-ai-2026-guide/developing-robust-agents/</guid><description>&lt;h2 id="introduction-to-production-ready-agent-design"&gt;Introduction to Production-Ready Agent Design&lt;/h2&gt;
&lt;p&gt;Welcome back, fellow AI adventurer! In our journey so far, we&amp;rsquo;ve explored the foundational concepts of prompt engineering, delved into advanced techniques like Chain-of-Thought and Tree-of-Thought, and built a solid understanding of Retrieval-Augmented Generation (RAG). We then introduced the core architecture of agentic AI, learning how LLMs can be empowered with memory and tools to perform complex tasks.&lt;/p&gt;
&lt;p&gt;But here&amp;rsquo;s the truth: building a functional agent in a Jupyter notebook is one thing; deploying a &lt;em&gt;robust, reliable, and scalable&lt;/em&gt; agent into a production environment is another challenge entirely. Production-grade AI agents need to be resilient to failures, predictable in their behavior, efficient with resources, and secure against misuse.&lt;/p&gt;</description></item><item><title>Building Your First Agent: A Hands-On Autonomous System Project</title><link>https://ai-blog.noorshomelab.dev/agentic-ai-guide-2026/building-autonomous-agent-project/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/agentic-ai-guide-2026/building-autonomous-agent-project/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Welcome, aspiring agent builder! In this chapter, we&amp;rsquo;re moving from theory to practice. You&amp;rsquo;ve explored the fascinating world of autonomous AI agents, delving into their core components like planning, reasoning, tool usage, and memory systems. Now, it&amp;rsquo;s time to get your hands dirty and build your very first functional AI agent.&lt;/p&gt;
&lt;p&gt;Our goal for this chapter is to construct a simple, yet powerful, &amp;ldquo;research assistant&amp;rdquo; agent. This agent will be capable of understanding a query, deciding if it needs external information, using a web search tool to find that information, and then synthesizing a coherent answer. This project will solidify your understanding of how these theoretical concepts translate into practical code, boosting your confidence in designing and implementing your own intelligent systems.&lt;/p&gt;</description></item><item><title>Build AI Agents with LangGraph</title><link>https://ai-blog.noorshomelab.dev/tutorials/build-ai-agents-with-langgraph/</link><pubDate>Thu, 21 May 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/tutorials/build-ai-agents-with-langgraph/</guid><description>&lt;p&gt;&lt;strong&gt;What you&amp;rsquo;ll build:&lt;/strong&gt; A functional and robust AI agentic system using LangGraph, capable of executing multi-step workflows and utilizing external tools.
&lt;strong&gt;Time needed:&lt;/strong&gt; ~90 minutes
&lt;strong&gt;Prerequisites:&lt;/strong&gt; Python 3.9+, Basic understanding of Large Language Models (LLMs), Familiarity with LangChain concepts (optional but helpful)
&lt;strong&gt;Version used:&lt;/strong&gt; v0.2&lt;/p&gt;
&lt;h2 id="introduction-to-langgraph-and-agentic-systems"&gt;Introduction to LangGraph and Agentic Systems&lt;/h2&gt;
&lt;p&gt;Welcome! In this tutorial, we&amp;rsquo;re going to dive into the exciting world of AI agents and learn how to build them using LangGraph. If you&amp;rsquo;ve ever found yourself wishing an AI could do more than just answer a single question, you&amp;rsquo;re in the right place.&lt;/p&gt;</description></item><item><title>Prompt Engineering and Agentic AI for Production</title><link>https://ai-blog.noorshomelab.dev/guides/prompt-engineering-agentic-ai-guide/</link><pubDate>Mon, 06 Apr 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/guides/prompt-engineering-agentic-ai-guide/</guid><description>&lt;p&gt;Welcome to this learning guide on Prompt Engineering and Agentic AI! This guide is designed for developers like you who are ready to move beyond basic interactions with Large Language Models (LLMs) and start building sophisticated, production-ready AI applications. We&amp;rsquo;ll focus on practical, hands-on techniques, ensuring you gain a deep understanding of &lt;em&gt;how&lt;/em&gt; and &lt;em&gt;why&lt;/em&gt; things work, not just &lt;em&gt;what&lt;/em&gt; to copy-paste.&lt;/p&gt;
&lt;h3 id="what-is-prompt-engineering-and-agentic-ai"&gt;What is Prompt Engineering and Agentic AI?&lt;/h3&gt;
&lt;p&gt;At its heart, &lt;strong&gt;Prompt Engineering&lt;/strong&gt; is the art and science of communicating effectively with Large Language Models (LLMs). It&amp;rsquo;s about crafting the right instructions, context, and examples to guide an LLM to produce the desired output reliably and consistently. Think of it as learning the language of AI to unlock its full potential.&lt;/p&gt;</description></item><item><title>Akka Agentic AI vs LangChain: Complete Comparison 2026</title><link>https://ai-blog.noorshomelab.dev/comparisons/akka-agentic-ai-vs-langchain-comparison/</link><pubDate>Sun, 15 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/comparisons/akka-agentic-ai-vs-langchain-comparison/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The landscape of AI development, particularly around Large Language Models (LLMs) and autonomous agents, is evolving rapidly. As organizations move beyond simple LLM prompts to build complex, stateful, and production-ready agentic systems, the choice of the underlying framework becomes critical. This comparison delves into two prominent, yet fundamentally different, approaches to LLM orchestration and agentic AI development: &lt;strong&gt;Akka Agentic AI&lt;/strong&gt; and &lt;strong&gt;LangChain&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Akka, a long-standing reactive and distributed systems platform, has pivoted its capabilities to offer an enterprise-grade solution for agentic AI, leveraging its strengths in scalability, resilience, and concurrency. LangChain, on the other hand, emerged as a popular, flexible framework for building LLM applications, known for its extensive integrations and ease of use in Python and JavaScript/TypeScript ecosystems.&lt;/p&gt;</description></item><item><title>LlamaIndex vs LangChain: Complete Comparison 2026</title><link>https://ai-blog.noorshomelab.dev/comparisons/llamaindex-vs-langchain-comparison-2026/</link><pubDate>Sun, 15 Feb 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/comparisons/llamaindex-vs-langchain-comparison-2026/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In the rapidly evolving landscape of Large Language Model (LLM) application development, two frameworks have emerged as dominant forces: LlamaIndex and LangChain. Both aim to simplify the creation of LLM-powered applications, but they approach the problem from distinct perspectives, leading to specialized strengths and use cases. As of early 2026, their functionalities have expanded and converged in many areas, yet their core philosophies remain differentiated.&lt;/p&gt;
&lt;p&gt;This comprehensive comparison aims to provide an objective and balanced analysis of LlamaIndex and LangChain. We will delve into their core functionalities, architectural differences, performance characteristics, ecosystem support, and typical use cases. Our goal is to equip developers, architects, and product managers with the insights needed to make informed decisions for their LLM projects, whether choosing one framework, or more increasingly, leveraging both.&lt;/p&gt;</description></item><item><title>LangChain Catalyst - LLM Orchestration Essentials</title><link>https://ai-blog.noorshomelab.dev/cut-the-chase/langchain-catalyst/</link><pubDate>Wed, 14 Jan 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/cut-the-chase/langchain-catalyst/</guid><description>&lt;h1 id="langchain-catalyst---llm-orchestration-essentials"&gt;LangChain Catalyst - LLM Orchestration Essentials&lt;/h1&gt;
&lt;p&gt;LangChain v0.2.x (Jan 2026 release cycle), Python 3.10+&lt;/p&gt;
&lt;h2 id="core-syntax"&gt;Core Syntax&lt;/h2&gt;
&lt;p&gt;Instantiate a ChatModel and get a basic completion. Ensure &lt;code&gt;OPENAI_API_KEY&lt;/code&gt; is set in your environment.&lt;/p&gt;
&lt;div class="highlight"&gt;
&lt;pre class="language-python line-numbers" data-start="1" tabindex="0"&gt;&lt;code class="language-python" data-lang="python"&gt;from langchain_openai import ChatOpenAI # Modern practice: specific integration imports
from langchain_core.messages import HumanMessage # Standard message types
# Initialize a chat model. Default model is typically gpt-3.5-turbo.
llm = ChatOpenAI(temperature=0.7) # Adjust creativity (0.0-1.0)
# Invoke the model with a simple message.
response = llm.invoke([
HumanMessage(content=&amp;#34;What is the capital of France?&amp;#34;) # Input as a list of messages
])
print(response.content) # Access the generated text content&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;h2 id="essential-patterns"&gt;Essential Patterns&lt;/h2&gt;
&lt;p&gt;Combine prompts and models using LangChain Expression Language (LCEL) for robust, composable chains.&lt;/p&gt;</description></item><item><title>Agentic AI Frameworks: Mastering LangChain/LangGraph for Smart Agents</title><link>https://ai-blog.noorshomelab.dev/ai/agentic-ai-frameworks/</link><pubDate>Fri, 22 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ai/agentic-ai-frameworks/</guid><description>&lt;h1 id="agentic-ai-frameworks-mastering-langchainlanggraph-for-smart-agents"&gt;Agentic AI Frameworks: Mastering LangChain/LangGraph for Smart Agents&lt;/h1&gt;
&lt;hr&gt;
&lt;h2 id="1-introduction-to-agentic-ai"&gt;1. Introduction to Agentic AI&lt;/h2&gt;
&lt;p&gt;The world of Artificial Intelligence is evolving at an unprecedented pace. We&amp;rsquo;re moving beyond simple chatbots and static question-answering systems towards intelligent entities that can think, plan, use tools, and even collaborate to achieve complex goals. This is the realm of &lt;strong&gt;Agentic AI&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id="11-what-are-ai-agents"&gt;1.1. What are AI Agents?&lt;/h3&gt;
&lt;p&gt;Imagine a digital assistant that doesn&amp;rsquo;t just answer your questions but &lt;em&gt;understands&lt;/em&gt; your intent, &lt;em&gt;plans&lt;/em&gt; a series of steps to achieve it, &lt;em&gt;uses tools&lt;/em&gt; (like searching the web or interacting with an API) to gather information or perform actions, and &lt;em&gt;learns&lt;/em&gt; from its experiences. That&amp;rsquo;s an AI agent.&lt;/p&gt;</description></item><item><title>Building Agentic AI from Scratch: A Beginner&amp;#39;s Guide to Smart UI and Backend Automation</title><link>https://ai-blog.noorshomelab.dev/guides/agentic-ai-from-scratch-beginner/</link><pubDate>Fri, 22 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/guides/agentic-ai-from-scratch-beginner/</guid><description>&lt;h1 id="building-agentic-ai-from-scratch-a-beginners-guide-to-smart-ui-and-backend-automation"&gt;Building Agentic AI from Scratch: A Beginner&amp;rsquo;s Guide to Smart UI and Backend Automation&lt;/h1&gt;
&lt;p&gt;Welcome to the exciting world of Agentic AI! This comprehensive guide is designed for absolute beginners, taking you on a journey from fundamental concepts to building your first functional AI agent. By the end, you&amp;rsquo;ll have a solid understanding of how AI agents work and the practical skills to apply them to both UI and backend applications.&lt;/p&gt;</description></item><item><title>Building Agentic AI from Scratch: A Beginner&amp;#39;s Guide to Smart UI and Backend Automation</title><link>https://ai-blog.noorshomelab.dev/posts/agentic-ai-from-scratch-beginner/</link><pubDate>Fri, 22 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/posts/agentic-ai-from-scratch-beginner/</guid><description>&lt;h1 id="building-agentic-ai-from-scratch-a-beginners-guide-to-smart-ui-and-backend-automation"&gt;Building Agentic AI from Scratch: A Beginner&amp;rsquo;s Guide to Smart UI and Backend Automation&lt;/h1&gt;
&lt;p&gt;Welcome to the exciting world of Agentic AI! This comprehensive guide is designed for absolute beginners, taking you on a journey from fundamental concepts to building your first functional AI agent. By the end, you&amp;rsquo;ll have a solid understanding of how AI agents work and the practical skills to apply them to both UI and backend applications.&lt;/p&gt;</description></item><item><title>Retrieval-Augmented Generation (RAG): Enhancing LLMs with External Knowledge - A Practical Guide</title><link>https://ai-blog.noorshomelab.dev/ai/retrieval-augmented-generation/</link><pubDate>Fri, 22 Aug 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ai/retrieval-augmented-generation/</guid><description>&lt;h1 id="retrieval-augmented-generation-rag-enhancing-llms-with-external-knowledge---a-practical-guide"&gt;Retrieval-Augmented Generation (RAG): Enhancing LLMs with External Knowledge - A Practical Guide&lt;/h1&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-retrieval-augmented-generation-rag"&gt;Introduction to Retrieval-Augmented Generation (RAG)&lt;/h2&gt;
&lt;p&gt;Large Language Models (LLMs) have revolutionized the way we interact with information, demonstrating remarkable abilities in generating human-like text, answering questions, and summarizing content. However, they come with inherent limitations:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Hallucinations:&lt;/strong&gt; LLMs can sometimes generate factually incorrect or nonsensical information, presenting it confidently as truth. This is a significant hurdle in applications requiring high accuracy.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lack of Up-to-Date Information:&lt;/strong&gt; The knowledge of LLMs is static, frozen at the time of their last training data cutoff. They cannot access real-time information or specific proprietary data sources.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Limited Context Window:&lt;/strong&gt; While LLMs have growing context windows, there&amp;rsquo;s still a limit to how much information they can process in a single prompt. For complex queries requiring extensive background, fitting all relevant data into the prompt becomes challenging.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Retrieval-Augmented Generation (RAG)&lt;/strong&gt; emerges as a powerful paradigm to address these limitations. RAG combines the generative power of LLMs with external, dynamic, and authoritative knowledge bases. Instead of relying solely on its internal, pre-trained knowledge, a RAG system first &lt;strong&gt;retrieves&lt;/strong&gt; relevant information from an external source and then uses this retrieved context to &lt;strong&gt;augment&lt;/strong&gt; the LLM&amp;rsquo;s response generation.&lt;/p&gt;</description></item></channel></rss>