LCEL
LangChain Expression Language (LCEL) is a declarative composition language for connecting LangChain components into executable chains and workflows.
AI Agents and Applications
LCEL is LangChain's composition language for building modular and expressive large-language-model pipelines.
- How it is used
- Organizes multi-step LLM workflows into reusable chains with less glue code.
- How deep it goes
- Develops chains incrementally from pipe syntax and input mapping through execution modes, parallel processing, and integration into a larger workflow.
- Examples
- Builds document-splitting and web-research summarization chains, then connects retrieval and memory in a conversational chatbot.
- What you can do after
- Apply it via LangChain to compose, invoke, and parallelize modular LLM pipelines.
Build AI-Enhanced Web Apps
LangChain Expression Language (LCEL) is a declarative syntax for composing LangChain functions into executable chains and workflows.
- How it is used
- Orchestrates readable, reusable linear AI workflows from existing LangChain Runnables.
- How deep it goes
- Defines core primitives and execution behavior, then stops short of loops, conditional logic, and stateful agent architecture.
- Examples
- Demonstrates uppercase transformation, vowel counting, prompt formatting, ChatOpenAI invocation, and string output parsing.
- What you can do after
- Build linear chains with JavaScript functions, prompts, language models, parsers, batching, streaming, and Runnable composition.
Also covered in
What to know first
- language modelA language model is a computational model of linguistic sequences that estimates their probabilities or predicts tokens from context, enabling it to generate or evaluate language.
- directed acyclic graphA directed acyclic graph is a graph whose edges have directions and contain no directed cycles.
- functionA function is a callable unit of program code that performs a computation or operation, can accept inputs, and may produce a result or side effect.
- pipelineA pipeline is an ordered sequence of connected processing stages in which work or data passes from one stage to the next, often being transformed along the way.
Related concepts
- LangGraphalternative to · LangGraph is a framework for building stateful, graph-structured workflows and applications, including those involving language models and agents.
- pipe operatoruses · A pipe operator is language-specific syntax that forwards a value or command output to another operation as input, often enabling left-to-right composition.
- Runnable interfaceuses · The Runnable interface is a LangChain programming abstraction for components that accept input, perform processing, produce output, and support composition in workflows.
- pipelineconfigures · A pipeline is an ordered sequence of connected processing stages in which work or data passes from one stage to the next, often being transformed along the way.
- LangChainused by · LangChain is an open-source software framework for building applications that compose language models with prompts, data sources, tools, and other components.
- directed acyclic graphuses · A directed acyclic graph is a graph whose edges have directions and contain no directed cycles.
Questions about LCEL
What is LCEL?
LangChain Expression Language (LCEL) is a declarative composition language for connecting LangChain components into executable chains and workflows.
Which Manning books explain LCEL?
AI Agents and Applications and Build AI-Enhanced Web Apps.
What should I know before learning LCEL?
Manning books that teach LCEL usually introduce language model, directed acyclic graph, function and pipeline first.
What is the difference between LCEL and LangGraph?
LangChain Expression Language (LCEL) is a declarative composition language for connecting LangChain components into executable chains and workflows. LangGraph is a framework for building stateful, graph-structured workflows and applications, including those involving language models and agents.
What is LCEL also called?
LCEL is also called LangChain Expression Language.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

