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 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
Release history Release notifications | RSS feed
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
Close
Hashes for llama_index_tools_duckduckgo-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fba191d6f70d684b36c47494c9f37b9390bc8d05604f46e0cb5f6fd24a3466f0 |
|
MD5 | cc05b08e557dd2162413582618b33b39 |
|
BLAKE2b-256 | bd5d8807ebb32e15a48a7cae49c37fae46a23dae59c1e249279eddecca0330b5 |
Close
Hashes for llama_index_tools_duckduckgo-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e533e8f82b7772ee9542a057f5403a17a3e01620ef646c4bad7495fba459f9e0 |
|
MD5 | 699ac5158a892ec3316d1ae8879d1921 |
|
BLAKE2b-256 | d8d6561b55eae9add498c09c1ffa3546f11a2b902b663d1a47b59858c0295743 |