From 30ad8ca28c56d61b0daa7757a89d1cae576ff24c Mon Sep 17 00:00:00 2001 From: leo-gan Date: Thu, 22 Feb 2024 11:06:21 -0800 Subject: [PATCH 1/2] module description --- libs/core/langchain_core/runnables/__init__.py | 4 +++- libs/langchain/langchain/runnables/__init__.py | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/libs/core/langchain_core/runnables/__init__.py b/libs/core/langchain_core/runnables/__init__.py index 903eefd079f5f4..9c4362c9c861c0 100644 --- a/libs/core/langchain_core/runnables/__init__.py +++ b/libs/core/langchain_core/runnables/__init__.py @@ -9,7 +9,9 @@ Support for **async** allows servers hosting LCEL based programs to scale better 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. This module contains schema and implementation of LangChain Runnables primitives. diff --git a/libs/langchain/langchain/runnables/__init__.py b/libs/langchain/langchain/runnables/__init__.py index e69de29bb2d1d6..b55abd36eeb3fa 100644 --- a/libs/langchain/langchain/runnables/__init__.py +++ b/libs/langchain/langchain/runnables/__init__.py @@ -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 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. +""" From c62dba51e8b2e775a5cbe5522757a55f5a1a02ed Mon Sep 17 00:00:00 2001 From: leo-gan Date: Thu, 22 Feb 2024 12:15:58 -0800 Subject: [PATCH 2/2] linting --- libs/langchain/langchain/runnables/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/langchain/langchain/runnables/__init__.py b/libs/langchain/langchain/runnables/__init__.py index b55abd36eeb3fa..0a8b3c39f6cd76 100644 --- a/libs/langchain/langchain/runnables/__init__.py +++ b/libs/langchain/langchain/runnables/__init__.py @@ -6,8 +6,8 @@ Programs created using LCEL and LangChain Runnables inherently support synchronous, asynchronous, batch, and streaming operations. -Support for **async** allows servers hosting LCEL based programs to scale better -for higher concurrent loads. +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.