Skip to main content

The LangChain ecosystem

"LangChain" is often used loosely to mean four separate projects that compose together: LangChain itself, LangGraph, LangSmith, and LangServe.

ProjectWhat it doesYou need it whenCovered in
LangChainBuilding blocks: chat models, prompts, retrieval, tools, output parsingYou're assembling any LLM-powered pipelineThis whole section
LangGraphStateful, cyclic orchestration of agents and multi-step workflowsYour flow loops, branches on model decisions, or needs to pause/resumeWhy LangGraph
LangSmithTracing, evaluation, and prompt managementYou need to see what a chain/agent actually did, or regression-test prompt changesTracing
LangServeExposing a Runnable as an HTTP APIYou're serving a chain over HTTP and want schemas/streaming for freeLangServe

How they relate at runtime

LangChain supplies the components. LangGraph decides the control flow when a single linear chain isn't enough. LangSmith watches both, regardless of which one is running. LangServe (or a hand-rolled FastAPI app) puts the result behind an HTTP endpoint.

tip

You don't need all four for every project. A single retrieval-augmented chain is LangChain alone. An agent that loops and calls tools usually reaches for LangGraph. Tracing is worth turning on early, even in development — see LangSmith tracing.

See also