From 2aabfafe1e7dfa5ddeebaeef4c0bd94189701c30 Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Mon, 9 Oct 2023 16:02:29 -0400 Subject: [PATCH] Module documentation for langchain runnables (#11550) Add in code documentation for langchain runnables module. --- .../langchain/schema/runnable/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libs/langchain/langchain/schema/runnable/__init__.py b/libs/langchain/langchain/schema/runnable/__init__.py index 2fc7e57b14..90ef56fac1 100644 --- a/libs/langchain/langchain/schema/runnable/__init__.py +++ b/libs/langchain/langchain/schema/runnable/__init__.py @@ -1,3 +1,19 @@ +"""LangChain Runnables 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. + +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. +""" from langchain.schema.runnable._locals import GetLocalVar, PutLocalVar from langchain.schema.runnable.base import ( Runnable,