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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_tools_duckduckgo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8661025df72395904c6c0ac2a61bd2363b440e9de49a81f97db08de2b74b4e2b
MD5 1d9d46561dfd74f207bf08dcd7a4b11e
BLAKE2b-256 1cfa685e063f8ccc9025cfe387898f10ca95a444696a92112b5b131910e9a0ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_duckduckgo-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 702b3bcc3b59ff6fd44114d46600d00eed1197f4c21c7cd31ab01caf8bbe6354
MD5 3afa462b9707dd1f338f019f0a84c128
BLAKE2b-256 5b8363964d86dd2943d1b4deb174e9416ddc9d1355baceff717a93d917c3543b

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