LCEL Part 2: Chaining Chains, RunnableParallel, RunnableLambda and @chain
A straight line is the easy case. This post covers piping chains together, fanning out with RunnableParallel, wrapping your own functions, and drawing what you built.
Tech Blog · Insights & Experiments
Deep dives into code, design, and system architecture. From frontend to backend, from performance tricks to developer experience — practical notes for building better technology.
A straight line is the easy case. This post covers piping chains together, fanning out with RunnableParallel, wrapping your own functions, and drawing what you built.
A single pipe operator turns three objects into a pipeline that batches, streams and runs async for free. Here is how, plus the step that silently breaks streaming.
Free text is unusable in a pipeline. This post covers getting validated objects back with Pydantic, and the narrower cases where an output parser is still the right tool.
LangChain's first real abstraction is the input side: typed messages, reusable prompt templates, and few-shot examples that teach a model by showing instead of telling.
Before reaching for a framework, call the API directly. System, user and assistant roles, a sarcastic chatbot, and what temperature and streaming actually control.
Tokens are the unit you are billed in, and they are not words. This post covers tokenization, counting before you send, model tiers, and how the costs really add up.
A straight line is the easy case. This post covers piping chains together, fanning out with RunnableParallel, wrapping your own functions, and drawing what you built.
A single pipe operator turns three objects into a pipeline that batches, streams and runs async for free. Here is how, plus the step that silently breaks streaming.
Free text is unusable in a pipeline. This post covers getting validated objects back with Pydantic, and the narrower cases where an output parser is still the right tool.
LangChain's first real abstraction is the input side: typed messages, reusable prompt templates, and few-shot examples that teach a model by showing instead of telling.
Before reaching for a framework, call the API directly. System, user and assistant roles, a sarcastic chatbot, and what temperature and streaming actually control.
Tokens are the unit you are billed in, and they are not words. This post covers tokenization, counting before you send, model tiers, and how the costs really add up.
Eight posts taking LangChain from first principles to a working RAG pipeline — token costs, the raw OpenAI API, messages, prompt templates, structured output and LCEL.
Master the 6 data structures that appear in 80% of technical interviews. Each post goes deep on one structure — how it works under the hood, every interview pattern it unlocks, and the exact templates that win offers.
Learn how to structure routing, master custom hooks, and optimize React builds using Vite and Webpack for production-grade apps.
Build a rock-solid foundation in HTML, CSS, JavaScript, and modern tooling to prepare for a professional full-stack journey using React, NestJS, and PostgreSQL.
Results