[KongchangAI]
Concept

RunnableParallel

RunnableParallel is a parallel execution component in LangChain Expression Language (LCEL) used to run multiple Runnable objects simultaneously and aggregate their respective outputs as a dictionary. Its core features include parallel scheduling of multiple independent tasks to improve execution efficiency, support for any type of Runnable as a sub-component, and a unified input distribution and output collection mechanism. It is commonly used for multi-path data processing, parallel retrieval, and branch execution in complex pipelines.

Timeline (last 90 days)

Oct 12

LangChain的RunnableParallel可以并行运行两条链并将结果传给下一步;batch比循环更快。

Unverified50%

All Facts (2)

Source Articles

Getting Started with LangChain in Practice: From Message Templates to RAG PipelinesOct 12
LangChain LCEL表达式语言详解:管道操作符、RunnableLambda与并行执行实战May 22