diff --git a/libs/community/langchain_community/agent_toolkits/zapier/toolkit.py b/libs/community/langchain_community/agent_toolkits/zapier/toolkit.py
index 207133e459..c5842db92d 100644
--- a/libs/community/langchain_community/agent_toolkits/zapier/toolkit.py
+++ b/libs/community/langchain_community/agent_toolkits/zapier/toolkit.py
@@ -54,7 +54,7 @@ class ZapierToolkit(BaseToolkit):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
- "https://nla.zapier.com/sunset/ for details"
+ " for details"
),
)
return self.tools
diff --git a/libs/community/langchain_community/chat_message_histories/postgres.py b/libs/community/langchain_community/chat_message_histories/postgres.py
index d81fa93ec2..7e01fc9a1c 100644
--- a/libs/community/langchain_community/chat_message_histories/postgres.py
+++ b/libs/community/langchain_community/chat_message_histories/postgres.py
@@ -22,7 +22,7 @@ DEFAULT_CONNECTION_STRING = "postgresql://postgres:mypassword@localhost/chat_his
"You can swap to using the `PostgresChatMessageHistory`"
" implementation in `langchain_postgres`. "
"Please do not submit further PRs to this class."
- "See https://github.com/langchain-ai/langchain-postgres"
+ "See "
),
alternative="from langchain_postgres import PostgresChatMessageHistory;",
pending=True,
diff --git a/libs/community/langchain_community/tools/zapier/tool.py b/libs/community/langchain_community/tools/zapier/tool.py
index 7330d24579..c7c9d86a05 100644
--- a/libs/community/langchain_community/tools/zapier/tool.py
+++ b/libs/community/langchain_community/tools/zapier/tool.py
@@ -134,7 +134,7 @@ class ZapierNLARunAction(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
- "https://nla.zapier.com/sunset/ for details"
+ " for details"
),
)
return self.api_wrapper.run_as_str(self.action_id, instructions, self.params)
@@ -149,7 +149,7 @@ class ZapierNLARunAction(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
- "https://nla.zapier.com/sunset/ for details"
+ " for details"
),
)
return await self.api_wrapper.arun_as_str(
@@ -186,7 +186,7 @@ class ZapierNLAListActions(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
- "https://nla.zapier.com/sunset/ for details"
+ " for details"
),
)
return self.api_wrapper.list_as_str()
@@ -201,7 +201,7 @@ class ZapierNLAListActions(BaseTool):
since="0.0.319",
message=(
"This tool will be deprecated on 2023-11-17. See "
- "https://nla.zapier.com/sunset/ for details"
+ " for details"
),
)
return await self.api_wrapper.alist_as_str()
diff --git a/libs/community/langchain_community/vectorstores/pgvector.py b/libs/community/langchain_community/vectorstores/pgvector.py
index 6a48ec294d..ff4cbbd783 100644
--- a/libs/community/langchain_community/vectorstores/pgvector.py
+++ b/libs/community/langchain_community/vectorstores/pgvector.py
@@ -218,7 +218,7 @@ def _results_to_docs(docs_and_scores: Any) -> List[Document]:
"Please read the guidelines in the doc-string of this class "
"to follow prior to migrating as there are some differences "
"between the implementations. "
- "See https://github.com/langchain-ai/langchain-postgres for details about"
+ "See for details about"
"the new implementation."
),
alternative="from langchain_postgres import PGVector;",
diff --git a/libs/core/langchain_core/utils/loading.py b/libs/core/langchain_core/utils/loading.py
index 225c7afc47..a1977c2f96 100644
--- a/libs/core/langchain_core/utils/loading.py
+++ b/libs/core/langchain_core/utils/loading.py
@@ -12,7 +12,7 @@ from langchain_core._api.deprecation import deprecated
message=(
"Using the hwchase17/langchain-hub "
"repo for prompts is deprecated. Please use "
- "https://smith.langchain.com/hub instead."
+ " instead."
),
)
def try_load_from_hub(
diff --git a/libs/langchain/langchain/_api/module_import.py b/libs/langchain/langchain/_api/module_import.py
index d9a541e595..048645cf9b 100644
--- a/libs/langchain/langchain/_api/module_import.py
+++ b/libs/langchain/langchain/_api/module_import.py
@@ -101,7 +101,7 @@ def create_importer(
f">> from {new_module} import {name}\n"
"You can use the langchain cli to **automatically** "
"upgrade many imports. Please see documentation here "
- "https://python.langchain.com/v0.2/docs/versions/v0_2/ "
+ ""
),
)
return result
@@ -133,7 +133,7 @@ def create_importer(
f">> from {fallback_module} import {name}\n"
"You can use the langchain cli to **automatically** "
"upgrade many imports. Please see documentation here "
- "https://python.langchain.com/v0.2/docs/versions/v0_2/ "
+ ""
),
)
return result
diff --git a/libs/langchain/langchain/chains/openai_functions/extraction.py b/libs/langchain/langchain/chains/openai_functions/extraction.py
index cd65951f9e..445431438d 100644
--- a/libs/langchain/langchain/chains/openai_functions/extraction.py
+++ b/libs/langchain/langchain/chains/openai_functions/extraction.py
@@ -50,13 +50,13 @@ Passage:
"LangChain has introduced a method called `with_structured_output` that"
"is available on ChatModels capable of tool calling."
"You can read more about the method here: "
- "https://python.langchain.com/docs/modules/model_io/chat/structured_output/"
+ ". "
"Please follow our extraction use case documentation for more guidelines"
"on how to do information extraction with LLMs."
- "https://python.langchain.com/docs/use_cases/extraction/."
+ ". "
"If you notice other issues, please provide "
"feedback here:"
- "https://github.com/langchain-ai/langchain/discussions/18154"
+ ""
),
removal="0.3.0",
alternative=(
@@ -120,13 +120,13 @@ def create_extraction_chain(
"LangChain has introduced a method called `with_structured_output` that"
"is available on ChatModels capable of tool calling."
"You can read more about the method here: "
- "https://python.langchain.com/docs/modules/model_io/chat/structured_output/"
+ ". "
"Please follow our extraction use case documentation for more guidelines"
"on how to do information extraction with LLMs."
- "https://python.langchain.com/docs/use_cases/extraction/."
+ ". "
"If you notice other issues, please provide "
"feedback here:"
- "https://github.com/langchain-ai/langchain/discussions/18154"
+ ""
),
removal="0.3.0",
alternative=(
diff --git a/libs/langchain/langchain/chains/openai_tools/extraction.py b/libs/langchain/langchain/chains/openai_tools/extraction.py
index 53d41d8d41..b00ab66f2d 100644
--- a/libs/langchain/langchain/chains/openai_tools/extraction.py
+++ b/libs/langchain/langchain/chains/openai_tools/extraction.py
@@ -20,14 +20,14 @@ If a property is not present and is not required in the function parameters, do
"LangChain has introduced a method called `with_structured_output` that"
"is available on ChatModels capable of tool calling."
"You can read more about the method here: "
- "https://python.langchain.com/docs/modules/model_io/chat/structured_output/"
+ ". "
"Please follow our extraction use case documentation for more guidelines"
"on how to do information extraction with LLMs."
- "https://python.langchain.com/docs/use_cases/extraction/."
+ ". "
"with_structured_output does not currently support a list of pydantic schemas. "
"If this is a blocker or if you notice other issues, please provide "
"feedback here:"
- "https://github.com/langchain-ai/langchain/discussions/18154"
+ ""
),
removal="0.3.0",
alternative=(
diff --git a/libs/langchain/langchain/chains/structured_output/base.py b/libs/langchain/langchain/chains/structured_output/base.py
index 3c93aef9e2..684202e3ef 100644
--- a/libs/langchain/langchain/chains/structured_output/base.py
+++ b/libs/langchain/langchain/chains/structured_output/base.py
@@ -32,13 +32,13 @@ from langchain_core.utils.function_calling import (
"LangChain has introduced a method called `with_structured_output` that "
"is available on ChatModels capable of tool calling. "
"You can read more about the method here: "
- "https://python.langchain.com/docs/modules/model_io/chat/structured_output/ "
+ ". "
"Please follow our extraction use case documentation for more guidelines "
"on how to do information extraction with LLMs. "
- "https://python.langchain.com/docs/use_cases/extraction/. "
+ ". "
"If you notice other issues, please provide "
"feedback here: "
- "https://github.com/langchain-ai/langchain/discussions/18154"
+ ""
),
removal="0.3.0",
alternative=(
@@ -150,13 +150,13 @@ def create_openai_fn_runnable(
"LangChain has introduced a method called `with_structured_output` that "
"is available on ChatModels capable of tool calling. "
"You can read more about the method here: "
- "https://python.langchain.com/docs/modules/model_io/chat/structured_output/ "
+ "."
"Please follow our extraction use case documentation for more guidelines "
"on how to do information extraction with LLMs. "
- "https://python.langchain.com/docs/use_cases/extraction/. "
+ ". "
"If you notice other issues, please provide "
"feedback here: "
- "https://github.com/langchain-ai/langchain/discussions/18154"
+ ""
),
removal="0.3.0",
alternative=(