AI Hints
Home›LangGraph Tutorial›Patterns and Models
LangGraph · Lesson 112 of 120

Common Patterns

A recap.

⏱ 2 min read▶ Video at 2:00:42🎓 Free
Watch this lesson in the LangGraph courseWatch on YouTube ↗Full LangGraph course

Over this course, you've met the patterns that most LangGraph apps are built from. Let's line them up, with what each is for.

Common Patterns
From the video: Common Patterns
  • The building patterns
  • Line them up
  • What each is for

The patterns

A router sends work down the right branch. The ReAct loop lets an agent use tools. Map reduce with Send handles many items in parallel. Human in the loop pauses for approval. Corrective RAG checks its own retrieval. Reflection improves its own work. And supervisors coordinate teams of agents.

PatternUse it for
Routerchoosing a branch
ReAct loopagents with tools
Map-reduce (Send)many items in parallel
Human in the loopapprovals
Corrective RAGtrustworthy answers
Reflectionbetter drafts
Supervisorteams of agents

Combining patterns

Real apps combine patterns. Our support desk used a router, ReAct specialists, and human in the loop. Because each pattern is just nodes and edges, they fit together naturally, often as subgraphs.

keyvalue
Real appscombine them
Deskrouter + ReAct + HITL
Fit togethernodes and edges
Subgraphskeep it tidy

Summary

Most LangGraph apps combine a few core patterns. Routers, loops, map reduce, approvals, RAG checks, reflection, and supervisors. Next, choosing a model for each node.

Key takeaways
  • Know the patterns
  • Combine them
  • Use subgraphs
Next up: Choosing Models per Node — big and small