From e3f30b4cdebf750175e1764c969e6d56921c865d Mon Sep 17 00:00:00 2001 From: Eugene Yurtsev Date: Fri, 17 May 2024 15:06:56 -0400 Subject: [PATCH] docs: clean up link to bing search (#21825) Documentation should be inlined, not linking to medium article. --- docs/docs/integrations/tools/bing_search.ipynb | 2 -- .../langchain_community/utilities/bing_search.py | 12 ++---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/docs/docs/integrations/tools/bing_search.ipynb b/docs/docs/integrations/tools/bing_search.ipynb index c91d5dbab4a..b0d59ac6ccb 100644 --- a/docs/docs/integrations/tools/bing_search.ipynb +++ b/docs/docs/integrations/tools/bing_search.ipynb @@ -15,8 +15,6 @@ "source": [ "This notebook goes over how to use the bing search component.\n", "\n", - "First, you need to set up the proper API keys and environment variables. To set it up, follow the instructions found [here](https://levelup.gitconnected.com/api-tutorial-how-to-use-bing-web-search-api-in-python-4165d5592a7e).\n", - "\n", "Then we will need to set some environment variables." ] }, diff --git a/libs/community/langchain_community/utilities/bing_search.py b/libs/community/langchain_community/utilities/bing_search.py index 0c55a6b56e2..52c99352618 100644 --- a/libs/community/langchain_community/utilities/bing_search.py +++ b/libs/community/langchain_community/utilities/bing_search.py @@ -1,8 +1,4 @@ -"""Util that calls Bing Search. - -In order to set this up, follow instructions at: -https://levelup.gitconnected.com/api-tutorial-how-to-use-bing-web-search-api-in-python-4165d5592a7e -""" +"""Util that calls Bing Search.""" from typing import Dict, List import requests @@ -11,11 +7,7 @@ from langchain_core.utils import get_from_dict_or_env class BingSearchAPIWrapper(BaseModel): - """Wrapper for Bing Search API. - - In order to set this up, follow instructions at: - https://levelup.gitconnected.com/api-tutorial-how-to-use-bing-web-search-api-in-python-4165d5592a7e - """ + """Wrapper for Bing Search API.""" bing_subscription_key: str bing_search_url: str