llama-index-tools-duckduckgo


Namellama-index-tools-duckduckgo JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
Summaryllama-index tools integrating DuckDuckGo search
upload_time2024-05-20 02:48:08
maintainerleehuwuj
docs_urlNone
authorYour Name
requires_python<4.0,>=3.8.1
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.8.1",
    "maintainer_email": null,
    "keywords": "research",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/c7/3e/b1b832710e6205c99e55a22d84f1604aef157018cb8017e39820b5ac7ec5/llama_index_tools_duckduckgo-0.1.1.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.1.1",
    "project_urls": null,
    "split_keywords": [
        "research"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "69b80e83e1898c544bb5cfe1a486de90ef54d2822b36549793c1bb0cf1df9440",
                "md5": "5b0a71f1169f8c98f25903d948bfbc90",
                "sha256": "07dad94efb29ecdec4af9ded7abc9bfa98d5bd5687b42246dc1822c00795a44c"
            },
            "downloads": -1,
            "filename": "llama_index_tools_duckduckgo-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5b0a71f1169f8c98f25903d948bfbc90",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 2709,
            "upload_time": "2024-05-20T02:48:06",
            "upload_time_iso_8601": "2024-05-20T02:48:06.929641Z",
            "url": "https://files.pythonhosted.org/packages/69/b8/0e83e1898c544bb5cfe1a486de90ef54d2822b36549793c1bb0cf1df9440/llama_index_tools_duckduckgo-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c73eb1b832710e6205c99e55a22d84f1604aef157018cb8017e39820b5ac7ec5",
                "md5": "6da2c381581b4f3a3ee9837baa766d2d",
                "sha256": "0d5388fee6042169b04ba46522794b11400ae1caece77c22a627b2554d7702d8"
            },
            "downloads": -1,
            "filename": "llama_index_tools_duckduckgo-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "6da2c381581b4f3a3ee9837baa766d2d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 2348,
            "upload_time": "2024-05-20T02:48:08",
            "upload_time_iso_8601": "2024-05-20T02:48:08.377059Z",
            "url": "https://files.pythonhosted.org/packages/c7/3e/b1b832710e6205c99e55a22d84f1604aef157018cb8017e39820b5ac7ec5/llama_index_tools_duckduckgo-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-20 02:48:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-duckduckgo"
}
        
Elapsed time: 0.34673s