From 83b66cb9166972dc358590097441a5028c59e033 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B9=9B=E9=9C=B2=E5=85=88=E7=94=9F?= Date: Thu, 17 Apr 2025 20:04:37 +0800 Subject: [PATCH] doc: clean doc word description. (#30895) Signed-off-by: zhanluxianshen --- docs/docs/changes/changelog/core.mdx | 2 +- docs/docs/concepts/runnables.mdx | 4 ++-- docs/docs/how_to/index.mdx | 2 +- docs/docs/tutorials/index.mdx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/docs/changes/changelog/core.mdx b/docs/docs/changes/changelog/core.mdx index 63c9c3f8c80..bd8b7a5d673 100644 --- a/docs/docs/changes/changelog/core.mdx +++ b/docs/docs/changes/changelog/core.mdx @@ -6,5 +6,5 @@ - `BaseChatModel` methods `__call__`, `call_as_llm`, `predict`, `predict_messages`. Will be removed in 0.2.0. Use `BaseChatModel.invoke` instead. - `BaseChatModel` methods `apredict`, `apredict_messages`. Will be removed in 0.2.0. Use `BaseChatModel.ainvoke` instead. -- `BaseLLM` methods `__call__, `predict`, `predict_messages`. Will be removed in 0.2.0. Use `BaseLLM.invoke` instead. +- `BaseLLM` methods `__call__`, `predict`, `predict_messages`. Will be removed in 0.2.0. Use `BaseLLM.invoke` instead. - `BaseLLM` methods `apredict`, `apredict_messages`. Will be removed in 0.2.0. Use `BaseLLM.ainvoke` instead. \ No newline at end of file diff --git a/docs/docs/concepts/runnables.mdx b/docs/docs/concepts/runnables.mdx index 0ba5e0027f3..29a4246aa3a 100644 --- a/docs/docs/concepts/runnables.mdx +++ b/docs/docs/concepts/runnables.mdx @@ -126,7 +126,7 @@ Please see the [Configurable Runnables](#configurable-runnables) section for mor LangChain will automatically try to infer the input and output types of a Runnable based on available information. Currently, this inference does not work well for more complex Runnables that are built using [LCEL](/docs/concepts/lcel) composition, and the inferred input and / or output types may be incorrect. In these cases, we recommend that users override the inferred input and output types using the `with_types` method ([API Reference](https://python.langchain.com/api_reference/core/runnables/langchain_core.runnables.base.Runnable.html#langchain_core.runnables.base.Runnable.with_types -). +)). ## RunnableConfig @@ -194,7 +194,7 @@ In Python 3.11 and above, this works out of the box, and you do not need to do a In Python 3.9 and 3.10, if you are using **async code**, you need to manually pass the `RunnableConfig` through to the `Runnable` when invoking it. This is due to a limitation in [asyncio's tasks](https://docs.python.org/3/library/asyncio-task.html#asyncio.create_task) in Python 3.9 and 3.10 which did -not accept a `context` argument). +not accept a `context` argument. Propagating the `RunnableConfig` manually is done like so: diff --git a/docs/docs/how_to/index.mdx b/docs/docs/how_to/index.mdx index be06d087bbb..70737bb2f32 100644 --- a/docs/docs/how_to/index.mdx +++ b/docs/docs/how_to/index.mdx @@ -351,7 +351,7 @@ LangSmith allows you to closely trace, monitor and evaluate your LLM application It seamlessly integrates with LangChain and LangGraph, and you can use it to inspect and debug individual steps of your chains and agents as you build. LangSmith documentation is hosted on a separate site. -You can peruse [LangSmith how-to guides here](https://docs.smith.langchain.com/how_to_guides/), but we'll highlight a few sections that are particularly +You can peruse [LangSmith how-to guides here](https://docs.smith.langchain.com/), but we'll highlight a few sections that are particularly relevant to LangChain below: ### Evaluation diff --git a/docs/docs/tutorials/index.mdx b/docs/docs/tutorials/index.mdx index 25486c45e8f..c7603e61ab5 100644 --- a/docs/docs/tutorials/index.mdx +++ b/docs/docs/tutorials/index.mdx @@ -38,7 +38,7 @@ LangSmith allows you to closely trace, monitor and evaluate your LLM application It seamlessly integrates with LangChain, and you can use it to inspect and debug individual steps of your chains as you build. LangSmith documentation is hosted on a separate site. -You can peruse [LangSmith tutorials here](https://docs.smith.langchain.com/tutorials/). +You can peruse [LangSmith tutorials here](https://docs.smith.langchain.com/). ### Evaluation