Skip to main content
LangChain’s power comes from how its components work together to create sophisticated AI applications. This page provides diagrams showcasing the relationships between different components.

Core component ecosystem

The diagram below shows how LangChain’s major components connect to form complete AI applications:

How components connect

Each component layer builds on the previous ones:
  1. Input processing – Transform raw data into structured documents
  2. Embedding & storage – Convert text into searchable vector representations
  3. Retrieval – Find relevant information based on user queries
  4. Generation – Use AI models to create responses, optionally with tools
  5. Orchestration – Coordinate everything through agents and memory systems

Component categories

LangChain organizes components into these main categories:

Common patterns

RAG (Retrieval-Augmented generation)

Agent with tools

Multi-agent system

Learn more