docs: runnable module description (#17966)

Added a module description. Added `batch` description.
This commit is contained in:
Leonid Ganeline 2024-03-01 10:01:32 -08:00 committed by GitHub
parent 6d0af4e805
commit a89f007947
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 1 deletions

View File

@ -9,7 +9,9 @@ synchronous, asynchronous, batch, and streaming operations.
Support for **async** allows servers hosting LCEL based programs to scale better Support for **async** allows servers hosting LCEL based programs to scale better
for higher concurrent loads. for higher concurrent loads.
**Streaming** of intermediate outputs as they're being generated allows for **Batch** operations allow for processing multiple inputs in parallel.
**Streaming** of intermediate outputs, as they're being generated, allows for
creating more responsive UX. creating more responsive UX.
This module contains schema and implementation of LangChain Runnables primitives. This module contains schema and implementation of LangChain Runnables primitives.

View File

@ -0,0 +1,18 @@
"""LangChain **Runnable** and the **LangChain Expression Language (LCEL)**.
The LangChain Expression Language (LCEL) offers a declarative method to build
production-grade programs that harness the power of LLMs.
Programs created using LCEL and LangChain Runnables inherently support
synchronous, asynchronous, batch, and streaming operations.
Support for **async** allows servers hosting the LCEL based programs
to scale better for higher concurrent loads.
**Batch** operations allow for processing multiple inputs in parallel.
**Streaming** of intermediate outputs, as they're being generated, allows for
creating more responsive UX.
This module contains non-core Runnable classes.
"""