LangChain
8 min read.
Run a prompt→model→parser→tool chain, learn the LCEL pipe and the Runnable interface (invoke/stream/batch), tour the component toolbox, and see why loops push you to LangGraph.
Think of it this way: A chain is a factory line: the prompt station preps the part, the model machines it, the parser inspects and boxes it, the tool ships it. Memory is the clipboard that remembers the last order.
Input: { text: "Good morning" }. Run the chain to pass it through four links.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Build an LCEL chain
Order the pieces of a retrieval chain.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
Quiz
20 questionsWhat does a LangChain chain compose?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.