llama-index-tools-duckduckgo


Namellama-index-tools-duckduckgo JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
Summaryllama-index tools integrating DuckDuckGo search
upload_time2024-11-18 02:08:38
maintainerleehuwuj
docs_urlNone
authorYour Name
requires_python<4.0,>=3.9
licenseMIT
keywords research
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](./examples/duckduckgo_search.ipynb)

Here's an example usage of the DuckDuckGoSearchToolSpec.

```python
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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-tools-duckduckgo",
    "maintainer": "leehuwuj",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "research",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/fd/14/20eeb8684ebff41e6b32a408d36af32476e63dced621bcfcd56560434648/llama_index_tools_duckduckgo-0.3.0.tar.gz",
    "platform": null,
    "description": "# DuckDuckGo Search Tool\n\nThis 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.\n\n## Usage\n\nThis tool has a more extensive example usage documented in a Jupyter notebook [here](./examples/duckduckgo_search.ipynb)\n\nHere's an example usage of the DuckDuckGoSearchToolSpec.\n\n```python\nfrom llama_index.tools.duckduckgo import DuckDuckGoSearchToolSpec\nfrom llama_index.agent.openai import OpenAIAgent\n\ntool_spec = DuckDuckGoSearchToolSpec()\n\nagent = OpenAIAgent.from_tools(DuckDuckGoSearchToolSpec.to_tool_list())\n\nagent.chat(\"What's going on with the superconductor lk-99\")\nagent.chat(\"what are the latest developments in machine learning\")\n```\n\n## Available tool functions:\n\n- `duckduckgo_instant_search`: Make a query to DuckDuckGo api to receive an instant answer.\n\n- `duckduckgo_full_search`: Make a query to DuckDuckGo search to receive a full search results.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index tools integrating DuckDuckGo search",
    "version": "0.3.0",
    "project_urls": null,
    "split_keywords": [
        "research"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb6c6bc1ccced740a31b90d111f8a546b08e3b6e0238a57cc830229acf135660",
                "md5": "640400ef27854cf613a62cde9c32546d",
                "sha256": "09ca66b7f8288992c022d4f0e719e6b80bcd6374069b03b093ba994c4914915a"
            },
            "downloads": -1,
            "filename": "llama_index_tools_duckduckgo-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "640400ef27854cf613a62cde9c32546d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 2714,
            "upload_time": "2024-11-18T02:08:37",
            "upload_time_iso_8601": "2024-11-18T02:08:37.291814Z",
            "url": "https://files.pythonhosted.org/packages/cb/6c/6bc1ccced740a31b90d111f8a546b08e3b6e0238a57cc830229acf135660/llama_index_tools_duckduckgo-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fd1420eeb8684ebff41e6b32a408d36af32476e63dced621bcfcd56560434648",
                "md5": "c9e94fc1d8ce600f75d70817d57ab47e",
                "sha256": "e4996a75c3b1d7d7991e70acef8b0ea390771fd2db3bc47dbd2a23b9f7fa9880"
            },
            "downloads": -1,
            "filename": "llama_index_tools_duckduckgo-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c9e94fc1d8ce600f75d70817d57ab47e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 2404,
            "upload_time": "2024-11-18T02:08:38",
            "upload_time_iso_8601": "2024-11-18T02:08:38.778612Z",
            "url": "https://files.pythonhosted.org/packages/fd/14/20eeb8684ebff41e6b32a408d36af32476e63dced621bcfcd56560434648/llama_index_tools_duckduckgo-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-18 02:08:38",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-duckduckgo"
}
        
Elapsed time: 0.45060s