Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

Commit 7ecd720

Browse files
author
Erick Friis
authored
multiple: update docs urls to latest 2 (langchain-ai#26837)
1 parent 4a32cc3 commit 7ecd720

File tree

30 files changed

+77
-75
lines changed

30 files changed

+77
-75
lines changed

libs/cli/langchain_cli/integration_template/docs/chat.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"\n",
2222
"This will help you getting started with __ModuleName__ [chat models](/docs/concepts/#chat-models). For detailed documentation of all Chat__ModuleName__ features and configurations head to the [API reference](https://api.python.langchain.com/en/latest/chat_models/__module_name__.chat_models.Chat__ModuleName__.html).\n",
2323
"\n",
24-
"- TODO: Add any other relevant links, like information about models, prices, context windows, etc. See https://python.langchain.com/v0.2/docs/integrations/chat/openai/ for an example.\n",
24+
"- TODO: Add any other relevant links, like information about models, prices, context windows, etc. See https://python.langchain.com/docs/integrations/chat/openai/ for an example.\n",
2525
"\n",
2626
"## Overview\n",
2727
"### Integration details\n",
@@ -30,7 +30,7 @@
3030
"- TODO: Remove JS support link if not relevant, otherwise ensure link is correct.\n",
3131
"- TODO: Make sure API reference links are correct.\n",
3232
"\n",
33-
"| Class | Package | Local | Serializable | [JS support](https://js.langchain.com/v0.2/docs/integrations/chat/__package_name_short_snake__) | Package downloads | Package latest |\n",
33+
"| Class | Package | Local | Serializable | [JS support](https://js.langchain.com/docs/integrations/chat/__package_name_short_snake__) | Package downloads | Package latest |\n",
3434
"| :--- | :--- | :---: | :---: | :---: | :---: | :---: |\n",
3535
"| [Chat__ModuleName__](https://api.python.langchain.com/en/latest/chat_models/__module_name__.chat_models.Chat__ModuleName__.html) | [__package_name__](https://api.python.langchain.com/en/latest/__package_name_short_snake___api_reference.html) | ✅/❌ | beta/❌ | ✅/❌ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/__package_name__?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/__package_name__?style=flat-square&label=%20) |\n",
3636
"\n",

libs/cli/langchain_cli/integration_template/docs/document_loaders.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"\n",
1818
"- TODO: Make sure API reference link is correct.\n",
1919
"\n",
20-
"This notebook provides a quick overview for getting started with __ModuleName__ [document loader](https://python.langchain.com/v0.2/docs/concepts/#document-loaders). For detailed documentation of all __ModuleName__Loader features and configurations head to the [API reference](https://python.langchain.com/v0.2/api_reference/community/document_loaders/langchain_community.document_loaders.__module_name___loader.__ModuleName__Loader.html).\n",
20+
"This notebook provides a quick overview for getting started with __ModuleName__ [document loader](https://python.langchain.com/docs/concepts/#document-loaders). For detailed documentation of all __ModuleName__Loader features and configurations head to the [API reference](https://python.langchain.com/v0.2/api_reference/community/document_loaders/langchain_community.document_loaders.__module_name___loader.__ModuleName__Loader.html).\n",
2121
"\n",
2222
"- TODO: Add any other relevant links, like information about underlying API, etc.\n",
2323
"\n",
@@ -28,7 +28,7 @@
2828
"- TODO: Remove JS support link if not relevant, otherwise ensure link is correct.\n",
2929
"- TODO: Make sure API reference links are correct.\n",
3030
"\n",
31-
"| Class | Package | Local | Serializable | [JS support](https://js.langchain.com/v0.2/docs/integrations/document_loaders/web_loaders/__module_name___loader)|\n",
31+
"| Class | Package | Local | Serializable | [JS support](https://js.langchain.com/docs/integrations/document_loaders/web_loaders/__module_name___loader)|\n",
3232
"| :--- | :--- | :---: | :---: | :---: |\n",
3333
"| [__ModuleName__Loader](https://python.langchain.com/v0.2/api_reference/community/document_loaders/langchain_community.document_loaders.__module_name__loader.__ModuleName__Loader.html) | [langchain_community](https://api.python.langchain.com/en/latest/community_api_reference.html) | ✅/❌ | beta/❌ | ✅/❌ | \n",
3434
"### Loader features\n",

libs/cli/langchain_cli/integration_template/docs/llms.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"- TODO: Remove JS support link if not relevant, otherwise ensure link is correct.\n",
2929
"- TODO: Make sure API reference links are correct.\n",
3030
"\n",
31-
"| Class | Package | Local | Serializable | [JS support](https://js.langchain.com/v0.2/docs/integrations/llms/__package_name_short_snake__) | Package downloads | Package latest |\n",
31+
"| Class | Package | Local | Serializable | [JS support](https://js.langchain.com/docs/integrations/llms/__package_name_short_snake__) | Package downloads | Package latest |\n",
3232
"| :--- | :--- | :---: | :---: | :---: | :---: | :---: |\n",
3333
"| [__ModuleName__LLM](https://api.python.langchain.com/en/latest/llms/__module_name__.llms.__ModuleName__LLM.html) | [__package_name__](https://api.python.langchain.com/en/latest/__package_name_short_snake___api_reference.html) | ✅/❌ | beta/❌ | ✅/❌ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/__package_name__?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/__package_name__?style=flat-square&label=%20) |\n",
3434
"\n",

libs/cli/langchain_cli/integration_template/docs/stores.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"\n",
2424
"This will help you get started with __ModuleName__ [key-value stores](/docs/concepts/#key-value-stores). For detailed documentation of all __ModuleName__ByteStore features and configurations head to the [API reference](https://python.langchain.com/v0.2/api_reference/core/stores/langchain_core.stores.__module_name__ByteStore.html).\n",
2525
"\n",
26-
"- TODO: Add any other relevant links, like information about models, prices, context windows, etc. See https://python.langchain.com/v0.2/docs/integrations/stores/in_memory/ for an example.\n",
26+
"- TODO: Add any other relevant links, like information about models, prices, context windows, etc. See https://python.langchain.com/docs/integrations/stores/in_memory/ for an example.\n",
2727
"\n",
2828
"## Overview\n",
2929
"\n",
@@ -35,7 +35,7 @@
3535
"- TODO: Remove JS support link if not relevant, otherwise ensure link is correct.\n",
3636
"- TODO: Make sure API reference links are correct.\n",
3737
"\n",
38-
"| Class | Package | Local | [JS support](https://js.langchain.com/v0.2/docs/integrations/stores/_package_name_) | Package downloads | Package latest |\n",
38+
"| Class | Package | Local | [JS support](https://js.langchain.com/docs/integrations/stores/_package_name_) | Package downloads | Package latest |\n",
3939
"| :--- | :--- | :---: | :---: | :---: | :---: |\n",
4040
"| [__ModuleName__ByteStore](https://api.python.langchain.com/en/latest/stores/__module_name__.stores.__ModuleName__ByteStore.html) | [__package_name__](https://api.python.langchain.com/en/latest/__package_name_short_snake___api_reference.html) | ✅/❌ | ✅/❌ | ![PyPI - Downloads](https://img.shields.io/pypi/dm/__package_name__?style=flat-square&label=%20) | ![PyPI - Version](https://img.shields.io/pypi/v/__package_name__?style=flat-square&label=%20) |\n",
4141
"\n",

libs/cli/langchain_cli/integration_template/docs/tools.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"\n",
3030
"- TODO: Make sure links and features are correct\n",
3131
"\n",
32-
"| Class | Package | Serializable | [JS support](https://js.langchain.com/v0.2/docs/integrations/tools/__module_name__) | Package latest |\n",
32+
"| Class | Package | Serializable | [JS support](https://js.langchain.com/docs/integrations/tools/__module_name__) | Package latest |\n",
3333
"| :--- | :--- | :---: | :---: | :---: |\n",
3434
"| [__ModuleName__](https://python.langchain.com/v0.2/api_reference/community/tools/langchain_community.tools.__module_name__.tool.__ModuleName__.html) | [langchain-community](https://api.python.langchain.com/en/latest/community_api_reference.html) | beta/❌ | ✅/❌ | ![PyPI - Version](https://img.shields.io/pypi/v/langchain-community?style=flat-square&label=%20) |\n",
3535
"\n",

libs/cli/langchain_cli/integration_template/docs/vectorstores.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@
292292
"\n",
293293
"For guides on how to use this vector store for retrieval-augmented generation (RAG), see the following sections:\n",
294294
"\n",
295-
"- [Tutorials: working with external knowledge](https://python.langchain.com/v0.2/docs/tutorials/#working-with-external-knowledge)\n",
296-
"- [How-to: Question and answer with RAG](https://python.langchain.com/v0.2/docs/how_to/#qa-with-rag)\n",
297-
"- [Retrieval conceptual docs](https://python.langchain.com/v0.2/docs/concepts/#retrieval)"
295+
"- [Tutorials: working with external knowledge](https://python.langchain.com/docs/tutorials/#working-with-external-knowledge)\n",
296+
"- [How-to: Question and answer with RAG](https://python.langchain.com/docs/how_to/#qa-with-rag)\n",
297+
"- [Retrieval conceptual docs](https://python.langchain.com/docs/concepts/#retrieval)"
298298
]
299299
},
300300
{

libs/community/langchain_community/agent_toolkits/github/toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class GitHubToolkit(BaseToolkit):
166166
167167
Setup:
168168
See detailed installation instructions here:
169-
https://python.langchain.com/v0.2/docs/integrations/tools/github/#installation
169+
https://python.langchain.com/docs/integrations/tools/github/#installation
170170
171171
You will need to install ``pygithub`` and set the following environment
172172
variables:

libs/community/langchain_community/agent_toolkits/gmail/toolkit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class GmailToolkit(BaseToolkit):
4141
4242
Setup:
4343
You will need a Google credentials.json file to use this toolkit.
44-
See instructions here: https://python.langchain.com/v0.2/docs/integrations/tools/gmail/#setup
44+
See instructions here: https://python.langchain.com/docs/integrations/tools/gmail/#setup
4545
4646
Key init args:
4747
api_resource: Optional. The Google API resource. Default is None.

libs/community/langchain_community/document_loaders/recursive_url_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class RecursiveUrlLoader(BaseLoader):
7979
GET request to an endpoint on Bob's site. Both sites are hosted on the
8080
same host, so such a request would not be prevented by default.
8181
82-
See https://python.langchain.com/v0.2/docs/security/
82+
See https://python.langchain.com/docs/security/
8383
8484
Setup:
8585

libs/community/langchain_community/graph_vectorstores/extractors/html_link_extractor.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True):
115115
116116
loader = AsyncHtmlLoader(
117117
[
118-
"https://python.langchain.com/v0.2/docs/integrations/providers/astradb/",
118+
"https://python.langchain.com/docs/integrations/providers/astradb/",
119119
"https://docs.datastax.com/en/astra/home/astra.html",
120120
]
121121
)
@@ -132,11 +132,11 @@ def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True):
132132
133133
.. code-block:: output
134134
135-
[Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/spreedly/'),
136-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/nvidia/'),
137-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/ray_serve/'),
138-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/bageldb/'),
139-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/introduction/')]
135+
[Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/spreedly/'),
136+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/nvidia/'),
137+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/ray_serve/'),
138+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/bageldb/'),
139+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/introduction/')]
140140
141141
Using as_document_extractor()
142142
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -152,7 +152,7 @@ def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True):
152152
153153
loader = AsyncHtmlLoader(
154154
[
155-
"https://python.langchain.com/v0.2/docs/integrations/providers/astradb/",
155+
"https://python.langchain.com/docs/integrations/providers/astradb/",
156156
"https://docs.datastax.com/en/astra/home/astra.html",
157157
]
158158
)
@@ -167,11 +167,11 @@ def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True):
167167
168168
.. code-block:: output
169169
170-
[Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/spreedly/'),
171-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/nvidia/'),
172-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/ray_serve/'),
173-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/bageldb/'),
174-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/introduction/')]
170+
[Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/spreedly/'),
171+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/nvidia/'),
172+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/ray_serve/'),
173+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/bageldb/'),
174+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/introduction/')]
175175
176176
Using LinkExtractorTransformer
177177
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -188,7 +188,7 @@ def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True):
188188
189189
loader = AsyncHtmlLoader(
190190
[
191-
"https://python.langchain.com/v0.2/docs/integrations/providers/astradb/",
191+
"https://python.langchain.com/docs/integrations/providers/astradb/",
192192
"https://docs.datastax.com/en/astra/home/astra.html",
193193
]
194194
)
@@ -201,11 +201,11 @@ def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True):
201201
202202
.. code-block:: output
203203
204-
[Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/spreedly/'),
205-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/nvidia/'),
206-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/ray_serve/'),
207-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/integrations/providers/bageldb/'),
208-
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/v0.2/docs/introduction/')]
204+
[Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/spreedly/'),
205+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/nvidia/'),
206+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/ray_serve/'),
207+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/integrations/providers/bageldb/'),
208+
Link(kind='hyperlink', direction='out', tag='https://python.langchain.com/docs/introduction/')]
209209
210210
We can check that there is a link from the first document to the second::
211211
@@ -225,7 +225,7 @@ def __init__(self, *, kind: str = "hyperlink", drop_fragments: bool = True):
225225
226226
.. code-block:: output
227227
228-
Found link from https://python.langchain.com/v0.2/docs/integrations/providers/astradb/ to https://docs.datastax.com/en/astra/home/astra.html.
228+
Found link from https://python.langchain.com/docs/integrations/providers/astradb/ to https://docs.datastax.com/en/astra/home/astra.html.
229229
230230
The documents with URL links can then be added to a :class:`~langchain_community.graph_vectorstores.base.GraphVectorStore`::
231231

libs/community/langchain_community/retrievers/azure_ai_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class AzureAISearchRetriever(BaseRetriever):
2222
"""`Azure AI Search` service retriever.
2323
2424
Setup:
25-
See here for more detail: https://python.langchain.com/v0.2/docs/integrations/retrievers/azure_ai_search/
25+
See here for more detail: https://python.langchain.com/docs/integrations/retrievers/azure_ai_search/
2626
2727
We will need to install the below dependencies and set the required
2828
environment variables:

libs/community/langchain_community/retrievers/milvus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class MilvusRetriever(BaseRetriever):
1818
"""Milvus API retriever.
1919
20-
See detailed instructions here: https://python.langchain.com/v0.2/docs/integrations/retrievers/milvus_hybrid_search/
20+
See detailed instructions here: https://python.langchain.com/docs/integrations/retrievers/milvus_hybrid_search/
2121
2222
Setup:
2323
Install ``langchain-milvus`` and other dependencies:

libs/community/langchain_community/retrievers/qdrant_sparse_vector_retriever.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"Qdrant vector store now supports sparse retrievals natively. "
3030
"Use langchain_qdrant.QdrantVectorStore#as_retriever() instead. "
3131
"Reference: "
32-
"https://python.langchain.com/v0.2/docs/integrations/vectorstores/qdrant/#sparse-vector-search"
32+
"https://python.langchain.com/docs/integrations/vectorstores/qdrant/#sparse-vector-search"
3333
),
3434
removal="0.5.0",
3535
)

libs/core/langchain_core/agents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
99
Please see the migration guide for information on how to migrate existing
1010
agents to modern langgraph agents:
11-
https://python.langchain.com/v0.2/docs/how_to/migrate_agent/
11+
https://python.langchain.com/docs/how_to/migrate_agent/
1212
1313
Agents use language models to choose a sequence of actions to take.
1414

libs/core/langchain_core/language_models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
To implement a custom Chat Model, inherit from `BaseChatModel`. See
2020
the following guide for more information on how to implement a custom Chat Model:
2121
22-
https://python.langchain.com/v0.2/docs/how_to/custom_chat_model/
22+
https://python.langchain.com/docs/how_to/custom_chat_model/
2323
2424
**LLMs**
2525
@@ -34,7 +34,7 @@
3434
To implement a custom LLM, inherit from `BaseLLM` or `LLM`.
3535
Please see the following guide for more information on how to implement a custom LLM:
3636
37-
https://python.langchain.com/v0.2/docs/how_to/custom_llm/
37+
https://python.langchain.com/docs/how_to/custom_llm/
3838
3939
4040
""" # noqa: E501

libs/core/langchain_core/language_models/chat_models.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class BaseChatModel(BaseLanguageModel[BaseMessage], ABC):
189189
+----------------------------------+--------------------------------------------------------------------+-------------------+
190190
191191
Follow the guide for more information on how to implement a custom Chat Model:
192-
[Guide](https://python.langchain.com/v0.2/docs/how_to/custom_chat_model/).
192+
[Guide](https://python.langchain.com/docs/how_to/custom_chat_model/).
193193
194194
""" # noqa: E501
195195

@@ -1103,7 +1103,9 @@ def dict(self, **kwargs: Any) -> dict:
11031103

11041104
def bind_tools(
11051105
self,
1106-
tools: Sequence[Union[typing.Dict[str, Any], type, Callable, BaseTool]], # noqa: UP006
1106+
tools: Sequence[
1107+
Union[typing.Dict[str, Any], type, Callable, BaseTool] # noqa: UP006
1108+
],
11071109
**kwargs: Any,
11081110
) -> Runnable[LanguageModelInput, BaseMessage]:
11091111
raise NotImplementedError()

libs/core/langchain_core/language_models/llms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ class LLM(BaseLLM):
14171417
Please see the following guide for more information on how to
14181418
implement a custom LLM:
14191419
1420-
https://python.langchain.com/v0.2/docs/how_to/custom_llm/
1420+
https://python.langchain.com/docs/how_to/custom_llm/
14211421
"""
14221422

14231423
@abstractmethod

0 commit comments

Comments
 (0)