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.3.0.tar.gz
.
File metadata
- Download URL: llama_index_tools_duckduckgo-0.3.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4996a75c3b1d7d7991e70acef8b0ea390771fd2db3bc47dbd2a23b9f7fa9880 |
|
MD5 | c9e94fc1d8ce600f75d70817d57ab47e |
|
BLAKE2b-256 | fd1420eeb8684ebff41e6b32a408d36af32476e63dced621bcfcd56560434648 |
File details
Details for the file llama_index_tools_duckduckgo-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_tools_duckduckgo-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09ca66b7f8288992c022d4f0e719e6b80bcd6374069b03b093ba994c4914915a |
|
MD5 | 640400ef27854cf613a62cde9c32546d |
|
BLAKE2b-256 | cb6c6bc1ccced740a31b90d111f8a546b08e3b6e0238a57cc830229acf135660 |