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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_tools_duckduckgo-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d45bd8730efcb1e6b7b44ea9c06fe17f494a6a6ad44934bffb060dd137c14c6d
MD5 10e93bd0e5628b2be9a3fa1bffc2a31c
BLAKE2b-256 6c1802a02818aff3b81697fc60c580a0a3921895974c4154fc61e1d734326947

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_tools_duckduckgo-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 868dede7a931843151036c6052b148825a20f26235aae23e06b9dd6c9a59c8c3
MD5 ad3b1a6864458b7f36dad2442f6c9c75
BLAKE2b-256 b57ca8838be1ee5e79fd497d875bca29ebb74791a5d5c225f537a4a71701c9aa

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