liveBook · Manning

LangGraph

As explained in Knowledge Graphs and LLMs in Action

LangGraph is a framework for building stateful, graph-structured workflows and agent applications powered by language models.

LangGraph is a library for building stateful, multi-actor applications powered by language models. It represents workflows as directed graphs whose nodes run agent functions and whose edges control execution. section 15.1

Instead of passing data directly between components, each agent reads and updates a shared state object. A retrieval agent can add documents, after which an answer-generation agent uses the question and retrieved material. section 15.1

A knowledge-graph question-answering pipeline can organize its work into specialized agents:

  • Detect visualization intent and store the output type and reasoning. section 15.1.5

Conditional post-query routing

A post-query edge retries failed execution while retries remain, ends after three attempts, summarizes graph or map results, and ends directly for other output types.

A Streamlit integration exposes the pipeline interactively. Temporary placeholders show agent progress, while MessageHistory preserves questions, answers, intermediate state, reasoning, tables, and maps for display. section 15.2.2

How Knowledge Graphs and LLMs in Action covers it

How deep it goes
Defines shared state, graph nodes, fixed and dynamic edges, then implements intent, schema, query, execution, retry, and summarization agents.
Examples
Demonstrates document retrieval, answer generation, knowledge-graph querying, visualization selection, retries, summaries, tables, and maps.
What it assumes
Assumes language-model and knowledge-graph components, while demonstrating core orchestration through a simpler retrieval-augmented generation workflow.
What you can do after
Build stateful QA pipelines with shared state, conditional routing, error retries, generated summaries, and interactive Streamlit output.
How it connects
Connects language models with retrieval-augmented generation, knowledge graphs, Neo4j, Cypher, Streamlit, and event-driven interfaces.

Also explained in

Compare how 7 books explain LangGraph →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Knowledge Graphs and LLMs in Action. The section links point to the parts of the book it draws on.