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
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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d5388fee6042169b04ba46522794b11400ae1caece77c22a627b2554d7702d8 |
|
MD5 | 6da2c381581b4f3a3ee9837baa766d2d |
|
BLAKE2b-256 | c73eb1b832710e6205c99e55a22d84f1604aef157018cb8017e39820b5ac7ec5 |
Close
Hashes for llama_index_tools_duckduckgo-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07dad94efb29ecdec4af9ded7abc9bfa98d5bd5687b42246dc1822c00795a44c |
|
MD5 | 5b0a71f1169f8c98f25903d948bfbc90 |
|
BLAKE2b-256 | 69b80e83e1898c544bb5cfe1a486de90ef54d2822b36549793c1bb0cf1df9440 |