Skip to main content

LangChain Expression Language (LCEL)

LangChain Expression Language or LCEL is a declarative way to easily compose chains together. Any chain constructed this way will automatically have full sync, async, and streaming support.


The base interface shared by all LCEL objects


Examples of common LCEL usage patterns

You can also peruse this high-level overview/cheatsheet made by @zhanghaili0610: