From 25a636c5979788cc75c1a9fc4585d39385c2b12e Mon Sep 17 00:00:00 2001 From: ccurme Date: Fri, 22 Nov 2024 19:47:52 -0500 Subject: [PATCH] langchain[patch]: update deprecation message for MapReduceChain (#28304) Link migration guide first. --- libs/langchain/langchain/chains/mapreduce.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/langchain/langchain/chains/mapreduce.py b/libs/langchain/langchain/chains/mapreduce.py index d78d3f57c17..4b5a86a5215 100644 --- a/libs/langchain/langchain/chains/mapreduce.py +++ b/libs/langchain/langchain/chains/mapreduce.py @@ -28,10 +28,10 @@ from langchain.chains.llm import LLMChain since="0.2.13", removal="1.0", message=( - "Refer here for a recommended map-reduce implementation using langgraph: " - "https://langchain-ai.github.io/langgraph/how-tos/map-reduce/. See also " - "migration guide: " - "https://python.langchain.com/docs/versions/migrating_chains/map_reduce_chain/" # noqa: E501 + "Refer to migration guide here for a recommended implementation using " + "LangGraph: https://python.langchain.com/docs/versions/migrating_chains/map_reduce_chain/" # noqa: E501 + ". See also LangGraph guides for map-reduce: " + "https://langchain-ai.github.io/langgraph/how-tos/map-reduce/." ), ) class MapReduceChain(Chain):