Stacks Horizon

All posts

Search: “agentic ai” Category: Code and Tech — 3 articles.

3 articles in Code and Tech · matching agentic ai

  • Building Agentic Workflows in Python: Beyond Basic RAG with LangGraph
    Code and Tech

    Building Agentic Workflows in Python: Beyond Basic RAG with LangGraph

    Here is a quick breakdown of what the article covers: * **The Shift:** Traditional RAG follows a rigid, linear pipeline (`Retrieve -> Generate`). **Agentic RAG** introduces dynamic, self-correcting loops using the LLM as a reasoning engine within a state machine. * **Why LangGraph:** Unlike standard DAG (Directed Acyclic Graph) pipelines, LangGraph supports **cyclic workflows** (loops), enabling self-evaluation, error handling, and tool re-invocations. * **Core Architecture:** Built around three elements: * **State:** A shared dictionary (`AgentState`) tracking history and variables across steps. * **Nodes:** Python functions that execute steps (agent reasoning, evaluation, web search). * **Edges:** Conditional routes that direct execution flow based on state evaluation. * **Production Best Practices:** Always enforce **iteration limits** to prevent infinite loops, use **lightweight models** for evaluators to reduce latency, and keep evaluation separate from tool execution.

    Read more