From d2fced2f4e31e3450ff6a90bb9dc6ff83a62200d Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Thu, 23 May 2024 14:51:18 -0400 Subject: [PATCH] x --- docs/docs/how_to/index.mdx | 2 +- docs/docs/how_to/runnables_propagate_config.ipynb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/docs/how_to/index.mdx b/docs/docs/how_to/index.mdx index b6d4b8276d8..319f695e34c 100644 --- a/docs/docs/how_to/index.mdx +++ b/docs/docs/how_to/index.mdx @@ -34,7 +34,7 @@ This highlights functionality that is core to using LangChain. - [How to: stream runnables](/docs/how_to/streaming) - [How to: invoke runnables in parallel](/docs/how_to/parallel/) - [How to: add default invocation args to runnables](/docs/how_to/binding/) -- [How to: propagate Runnable Config to child runnables](/docs/how_to/runnables_propagate_config/) +- [How to: propagate runnable config to child runnables](/docs/how_to/runnables_propagate_config/) - [How to: turn any function into a runnable](/docs/how_to/functions) - [How to: pass through inputs from one chain step to the next](/docs/how_to/passthrough) - [How to: configure runnable behavior at runtime](/docs/how_to/configure) diff --git a/docs/docs/how_to/runnables_propagate_config.ipynb b/docs/docs/how_to/runnables_propagate_config.ipynb index 598aa8f3442..5dd25b7c2fc 100644 --- a/docs/docs/how_to/runnables_propagate_config.ipynb +++ b/docs/docs/how_to/runnables_propagate_config.ipynb @@ -22,19 +22,21 @@ "This guide assumes familiarity with the following concepts:\n", "\n", "- [LangChain Expression Language (LCEL)](/docs/concepts/#langchain-expression-language)\n", + "- [LangChain RunnableConfig](/docs/concepts/#runnable-config)\n", ":::\n", "\n", "\n", "The [RunnableConfig](https://api.python.langchain.com/en/latest/runnables/langchain_core.runnables.config.RunnableConfig.html) dict contains run time configuration information that needs to be properly\n", - "propagated throughout the entire chain. This config contains important thing like `callbacks` and user provided `tags` and `metadata`.\n", + "propagated throughout the entire chain. This config contains things like `callbacks` and user provided `tags` and `metadata`.\n", "\n", - "If you're composing a chain entirely using LCEL, then `RunnableConfig` will be propagated automatically.\n", + "If you're composing a chain entirely using LCEL, then `RunnableConfig` will be propagated automatically on your behalf.\n", "\n", "If you're using `RunnableLambda`, `RunnableGenerator` or `@tool` to create custom components, `langchain` will attempt to propagate callbacks on your behalf from those components to any child `Runnables` when possible.\n", "\n", ":::{.callout-important}\n", "\n", "If you're working in an `async` code base and are using `python<=3.10`, you will need to propagate `config` (or `callbacks`) manually since LangChain is unable to do this automatically.\n", + "\n", "::" ] },