Skip to main content

llama-index tools bing_search integration

Project description

Bing Search Tool

This tool connects to a Bing account and allows an Agent to perform searches for news, images and videos.

You will need to set up a search key using Azure,learn more here: https://learn.microsoft.com/en-us/bing/search-apis/bing-web-search/overview

Usage

This tool has a more extensive example usage documented in a Jupyter notebook here

Here's an example usage of the BingSearchToolSpec.

from llama_index.tools.bing_search import BingSearchToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI

tool_spec = BingSearchToolSpec(api_key="your-key")

agent = FunctionAgent(
    tools=tool_spec.to_tool_list(), llm=OpenAI(model="gpt-4.1")
)

print(await agent.run("what's the latest news about superconductors"))
print(await agent.run("what does lk-99 look like"))
print(await agent.run("is there any videos of it levitating"))

bing_news_search: Search for news results related to a query bing_image_search: Search for images related to a query bing_video_search: Search for videos related to a query

This loader is designed to be used as a way to load data as a Tool in a Agent.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llama_index_tools_bing_search-0.5.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llama_index_tools_bing_search-0.5.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file llama_index_tools_bing_search-0.5.0.tar.gz.

File metadata

  • Download URL: llama_index_tools_bing_search-0.5.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_bing_search-0.5.0.tar.gz
Algorithm Hash digest
SHA256 681bf446260f77161e7fca0734d3d3b648d96636c10d44df9c1182f9169120a9
MD5 291ab518825ef161b2b93e21a2e31404
BLAKE2b-256 2b77550cd1e6ea647ea1388045d58ba88cf7d7d9807c8e18a285cdf22a83b326

See more details on using hashes here.

File details

Details for the file llama_index_tools_bing_search-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: llama_index_tools_bing_search-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for llama_index_tools_bing_search-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25c23bbc614e3ea7ab1c204bc6c842c97991a975dc4ef4bae3a6a3130eb8dc39
MD5 1bb2ef4ba1e79d07c07eca2cd5a2de32
BLAKE2b-256 ea366c488ed74836c0ac155661e7470c6c659979e190f52038f7aeb6e4ef22fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page