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
Built Distribution
File details
Details for the file llama_index_tools_duckduckgo-0.2.0.tar.gz
.
File metadata
- Download URL: llama_index_tools_duckduckgo-0.2.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8661025df72395904c6c0ac2a61bd2363b440e9de49a81f97db08de2b74b4e2b |
|
MD5 | 1d9d46561dfd74f207bf08dcd7a4b11e |
|
BLAKE2b-256 | 1cfa685e063f8ccc9025cfe387898f10ca95a444696a92112b5b131910e9a0ba |
File details
Details for the file llama_index_tools_duckduckgo-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_tools_duckduckgo-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Darwin/23.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 702b3bcc3b59ff6fd44114d46600d00eed1197f4c21c7cd31ab01caf8bbe6354 |
|
MD5 | 3afa462b9707dd1f338f019f0a84c128 |
|
BLAKE2b-256 | 5b8363964d86dd2943d1b4deb174e9416ddc9d1355baceff717a93d917c3543b |