From a4713cab47ed673996ed1d5b9a469b7f386b58f6 Mon Sep 17 00:00:00 2001 From: Ayantunji Timilehin <39725296+timmy471@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:06:04 +0100 Subject: [PATCH] FIX: typos in docs (#28679) - **Twitter handle:**@timi471 --- docs/docs/how_to/caching_embeddings.ipynb | 2 +- docs/docs/how_to/callbacks_runtime.ipynb | 2 +- docs/docs/how_to/chat_model_rate_limiting.ipynb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/how_to/caching_embeddings.ipynb b/docs/docs/how_to/caching_embeddings.ipynb index 01187ef9ba9..6f5e8c7d691 100644 --- a/docs/docs/how_to/caching_embeddings.ipynb +++ b/docs/docs/how_to/caching_embeddings.ipynb @@ -23,7 +23,7 @@ "**Attention**:\n", "\n", "- Be sure to set the `namespace` parameter to avoid collisions of the same text embedded using different embeddings models.\n", - "- `CacheBackedEmbeddings` does not cache query embeddings by default. To enable query caching, one need to specify a `query_embedding_cache`." + "- `CacheBackedEmbeddings` does not cache query embeddings by default. To enable query caching, one needs to specify a `query_embedding_cache`." ] }, { diff --git a/docs/docs/how_to/callbacks_runtime.ipynb b/docs/docs/how_to/callbacks_runtime.ipynb index ff04fcde588..aa9048b6928 100644 --- a/docs/docs/how_to/callbacks_runtime.ipynb +++ b/docs/docs/how_to/callbacks_runtime.ipynb @@ -15,7 +15,7 @@ "\n", ":::\n", "\n", - "In many cases, it is advantageous to pass in handlers instead when running the object. When we pass through [`CallbackHandlers`](https://python.langchain.com/api_reference/core/callbacks/langchain_core.callbacks.base.BaseCallbackHandler.html#langchain-core-callbacks-base-basecallbackhandler) using the `callbacks` keyword arg when executing an run, those callbacks will be issued by all nested objects involved in the execution. For example, when a handler is passed through to an Agent, it will be used for all callbacks related to the agent and all the objects involved in the agent's execution, in this case, the Tools and LLM.\n", + "In many cases, it is advantageous to pass in handlers instead when running the object. When we pass through [`CallbackHandlers`](https://python.langchain.com/api_reference/core/callbacks/langchain_core.callbacks.base.BaseCallbackHandler.html#langchain-core-callbacks-base-basecallbackhandler) using the `callbacks` keyword arg when executing a run, those callbacks will be issued by all nested objects involved in the execution. For example, when a handler is passed through to an Agent, it will be used for all callbacks related to the agent and all the objects involved in the agent's execution, in this case, the Tools and LLM.\n", "\n", "This prevents us from having to manually attach the handlers to each individual nested object. Here's an example:" ] diff --git a/docs/docs/how_to/chat_model_rate_limiting.ipynb b/docs/docs/how_to/chat_model_rate_limiting.ipynb index 32bbaf3779c..ccb0131b3db 100644 --- a/docs/docs/how_to/chat_model_rate_limiting.ipynb +++ b/docs/docs/how_to/chat_model_rate_limiting.ipynb @@ -37,7 +37,7 @@ "\n", "Langchain comes with a built-in in memory rate limiter. This rate limiter is thread safe and can be shared by multiple threads in the same process.\n", "\n", - "The provided rate limiter can only limit the number of requests per unit time. It will not help if you need to also limited based on the size\n", + "The provided rate limiter can only limit the number of requests per unit time. It will not help if you need to also limit based on the size\n", "of the requests." ] },