Skip to main content

llama-index tools integrating DuckDuckGo search

Project description

DuckDuckGo Search Tool

This tool enables agents to search and retrieve results from the DuckDuckGo search engine. It utilizes the duckduckgo_search package, which either fetches instant query answers from DuckDuckGo or conducts a full search and parses the results.

Usage

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

Here's an example usage of the DuckDuckGoSearchToolSpec.

from llama_index.tools.duckduckgo import DuckDuckGoSearchToolSpec
from llama_index.agent.openai import OpenAIAgent

tool_spec = DuckDuckGoSearchToolSpec()

agent = OpenAIAgent.from_tools(DuckDuckGoSearchToolSpec.to_tool_list())

agent.chat("What's going on with the superconductor lk-99")
agent.chat("what are the latest developments in machine learning")

Available tool functions:

  • duckduckgo_instant_search: Make a query to DuckDuckGo api to receive an instant answer.

  • duckduckgo_full_search: Make a query to DuckDuckGo search to receive a full search results.

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_duckduckgo-0.3.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_tools_duckduckgo-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_duckduckgo-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e4996a75c3b1d7d7991e70acef8b0ea390771fd2db3bc47dbd2a23b9f7fa9880
MD5 c9e94fc1d8ce600f75d70817d57ab47e
BLAKE2b-256 fd1420eeb8684ebff41e6b32a408d36af32476e63dced621bcfcd56560434648

See more details on using hashes here.

File details

Details for the file llama_index_tools_duckduckgo-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_duckduckgo-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 09ca66b7f8288992c022d4f0e719e6b80bcd6374069b03b093ba994c4914915a
MD5 640400ef27854cf613a62cde9c32546d
BLAKE2b-256 cb6c6bc1ccced740a31b90d111f8a546b08e3b6e0238a57cc830229acf135660

See more details on using hashes here.

Supported by

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