Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

20
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

LangChainでインターネット検索ができるToolまとめ

Last updated at Posted at 2024-05-04

情報源はLangChainのToolsのページ

  • Bing Search
  • Brave Search
  • DuckDuckGo Search
  • Google Search

全部駆使したら、まぁまぁな無料枠になりそう

Bing Search

Brave Search

  • 概要:

  • 使用API:

  • LangChainの実装方法:

    • requests
  • 使い方

    1. https://api.search.brave.com/login にアクセスし、ログイン
    2. APIキー発行
    from langchain_community.tools import BraveSearch
    
    api_key = "API KEY"
    
    tool = BraveSearch.from_api_key(api_key=api_key)
    
    print(tool.run("pythonの使い方"))
    
  • 料金:

  • 参考サイト:

    • APIドキュメントはログイン後に確認できる

DuckDuckGo Search

Google Search

  1. APIとサービスにアクセス( https://console.cloud.google.com/apis/dashboard
  2. 一覧の「Custom Search API」をクリック
  3. 「割り当てアラートとシステム上限」タブをクリック
  4. フィルター一覧の「Queries per day」にチェックを入れ、「割り当てを編集」をクリック
  5. 新しい値を「99」に変更 ※デフォルトは10,000だったと思う

他にも色々ありそう(未調査)

Google Serper

SearchApi

SearxNG Search

SerpAPI

Tavily Search

20
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
20
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?