Skip to content

Commit

Permalink
docs : Added integrations for tools with langchain_community (#22056)
Browse files Browse the repository at this point in the history
- **PR title**:  Docs enhancement

- **Description:** Adding installation instructions for integrations
requiring `langchain-community` package since 0.2
    - **Issue:** #22005
  • Loading branch information
kartheekyakkala authored and hinthornw committed Jun 20, 2024
1 parent e624a99 commit f675417
Show file tree
Hide file tree
Showing 19 changed files with 94 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,4 @@ _dist
docs/docs/templates

prof
virtualenv/
2 changes: 1 addition & 1 deletion docs/docs/integrations/tools/apify.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet apify-client langchain-openai langchain"
"%pip install --upgrade --quiet apify-client langchain-community langchain-openai langchain"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/integrations/tools/arxiv.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"outputs": [],
"source": [
"%pip install --upgrade --quiet arxiv"
"%pip install --upgrade --quiet langchain-community arxiv"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion docs/docs/integrations/tools/awslambda.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
},
"outputs": [],
"source": [
"%pip install --upgrade --quiet boto3 > /dev/null"
"%pip install --upgrade --quiet boto3 > /dev/null\n",
"%pip install --upgrade --quiet langchain-community"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/integrations/tools/azure_dynamic_sessions.ipynb

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion docs/docs/integrations/tools/bash.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,17 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "a83d2ea9",
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-community"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f7b3767b",
"metadata": {
"tags": []
Expand Down
10 changes: 10 additions & 0 deletions docs/docs/integrations/tools/bearly.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@
"Get your api key here: https://bearly.ai/dashboard/developers"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8265cf7f",
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-community"
]
},
{
"cell_type": "markdown",
"id": "3f99f7c9",
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/integrations/tools/bing_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@
"Then we will need to set some environment variables."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-community"
]
},
{
"cell_type": "code",
"execution_count": 20,
Expand Down
10 changes: 10 additions & 0 deletions docs/docs/integrations/tools/brave_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@
"Go to the [Brave Website](https://brave.com/search/api/) to sign up for a free account and get an API key."
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2d7e7b3d",
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-community"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
10 changes: 10 additions & 0 deletions docs/docs/integrations/tools/chatgpt_plugins.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
"Note 2: There are almost certainly other ways to do this, this is just a first pass. If you have better ideas, please open a PR!"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "70d493c8",
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-community"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/integrations/tools/connery.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
"Here, we use the ID of the **Send email** action from the [Gmail](https://github.com/connery-io/gmail) plugin."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip install -upgrade --quiet langchain-community"
]
},
{
"cell_type": "code",
"execution_count": 11,
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/integrations/tools/dalle_image_generator.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"outputs": [],
"source": [
"# Needed if you would like to display images in the notebook\n",
"%pip install --upgrade --quiet opencv-python scikit-image"
"%pip install --upgrade --quiet opencv-python scikit-image langchain-community"
]
},
{
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/integrations/tools/dataforseo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
"This notebook demonstrates how to use the [DataForSeo API](https://dataforseo.com/apis) to obtain search engine results. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-community"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
5 changes: 3 additions & 2 deletions docs/docs/integrations/tools/dataherald.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"outputs": [],
"source": [
"pip install dataherald"
"pip install dataherald\n",
"%pip install --upgrade --quiet langchain-community"
]
},
{
Expand Down Expand Up @@ -114,4 +115,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
2 changes: 1 addition & 1 deletion docs/docs/integrations/tools/ddg.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet duckduckgo-search"
"%pip install --upgrade --quiet duckduckgo-search langchain-community"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/integrations/tools/e2b_data_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain e2b"
"%pip install --upgrade --quiet langchain e2b langchain-community"
]
},
{
Expand Down
9 changes: 9 additions & 0 deletions docs/docs/integrations/tools/edenai_tools.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,15 @@
"Once we have a key we'll want to set it as the environment variable ``EDENAI_API_KEY`` or you can pass the key in directly via the edenai_api_key named parameter when initiating the EdenAI tools, e.g. ``EdenAiTextModerationTool(edenai_api_key=\"...\")``"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-community"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/integrations/tools/eleven_labs_tts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet elevenlabs"
"%pip install --upgrade --quiet elevenlabs langchain-community"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/integrations/tools/exa_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install --upgrade --quiet langchain-exa\n",
"%pip install --upgrade --quiet langchain-exa \n",
"\n",
"# and some deps for this notebook\n",
"%pip install --upgrade --quiet langchain langchain-openai"
"%pip install --upgrade --quiet langchain langchain-openai langchain-community"
]
},
{
Expand Down

0 comments on commit f675417

Please sign in to comment.