flying-delta-tools-wikipedia


Nameflying-delta-tools-wikipedia JSON
Version 0.1.0 PyPI version JSON
download
home_page
Summaryllama-index tools wikipedia integration
upload_time2024-01-28 22:10:17
maintainer
docs_urlNone
authorYour Name
requires_python>=3.8.1,<3.12
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Wikipedia Tool

This tool fetches content from wikipedia and makes it available to the agent as a Tool. You can search for pages or load pages directly.

## Usage

This tool has more extensive example usage documented in a Jupyter notebook [here](https://github.com/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/wikipedia.ipynb)

```python
from llama_index.tools.wikipedia import WikipediaToolSpec
from llama_index.agent import OpenAIAgent

tool_spec = WikipediaToolSpec()

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())

agent.chat("Who is Ben Afflecks spouse?")
```

`load_data`: Loads a page from wikipedia
`search_data`: Searchs wikipedia for a query and loads all matching pages

This loader is designed to be used as a way to load data as a Tool in a Agent.
See [this LlamaIndex tutorial][1] for examples.

[1]: https://gpt-index.readthedocs.io/en/stable/examples/index_structs/knowledge_graph/KnowledgeGraphIndex_vs_VectorStoreIndex_vs_CustomIndex_combined.html#load-data-from-wikipedia

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "flying-delta-tools-wikipedia",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8.1,<3.12",
    "maintainer_email": "",
    "keywords": "",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/b5/3c/a31ed385c56fd44d5cf22e0a30e29633806fd2f7e242b777a71845ee7a8b/flying_delta_tools_wikipedia-0.1.0.tar.gz",
    "platform": null,
    "description": "# Wikipedia Tool\n\nThis tool fetches content from wikipedia and makes it available to the agent as a Tool. You can search for pages or load pages directly.\n\n## Usage\n\nThis tool has more extensive example usage documented in a Jupyter notebook [here](https://github.com/emptycrown/llama-hub/tree/main/llama_hub/tools/notebooks/wikipedia.ipynb)\n\n```python\nfrom llama_index.tools.wikipedia import WikipediaToolSpec\nfrom llama_index.agent import OpenAIAgent\n\ntool_spec = WikipediaToolSpec()\n\nagent = OpenAIAgent.from_tools(tool_spec.to_tool_list())\n\nagent.chat(\"Who is Ben Afflecks spouse?\")\n```\n\n`load_data`: Loads a page from wikipedia\n`search_data`: Searchs wikipedia for a query and loads all matching pages\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\nSee [this LlamaIndex tutorial][1] for examples.\n\n[1]: https://gpt-index.readthedocs.io/en/stable/examples/index_structs/knowledge_graph/KnowledgeGraphIndex_vs_VectorStoreIndex_vs_CustomIndex_combined.html#load-data-from-wikipedia\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index tools wikipedia integration",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67b1bd3a05d9610b8acd833ed2179defc906ed0e19cc7f4c7f4e0a36e3824e4c",
                "md5": "c41a9bad523df28e1b62bd2d80d50c09",
                "sha256": "be82e93ebe44d31c2b4528b090f431e1381fba19d3214439dc59b83144ccd402"
            },
            "downloads": -1,
            "filename": "flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c41a9bad523df28e1b62bd2d80d50c09",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8.1,<3.12",
            "size": 2716,
            "upload_time": "2024-01-28T22:10:16",
            "upload_time_iso_8601": "2024-01-28T22:10:16.096601Z",
            "url": "https://files.pythonhosted.org/packages/67/b1/bd3a05d9610b8acd833ed2179defc906ed0e19cc7f4c7f4e0a36e3824e4c/flying_delta_tools_wikipedia-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b53ca31ed385c56fd44d5cf22e0a30e29633806fd2f7e242b777a71845ee7a8b",
                "md5": "7e583f5790b10ac8c4c841545f8816ad",
                "sha256": "67379f89fd478fa55bc34ee79ff4b692b9cb1af5ae4a68f244c218a07d46d39d"
            },
            "downloads": -1,
            "filename": "flying_delta_tools_wikipedia-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "7e583f5790b10ac8c4c841545f8816ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8.1,<3.12",
            "size": 2551,
            "upload_time": "2024-01-28T22:10:17",
            "upload_time_iso_8601": "2024-01-28T22:10:17.896844Z",
            "url": "https://files.pythonhosted.org/packages/b5/3c/a31ed385c56fd44d5cf22e0a30e29633806fd2f7e242b777a71845ee7a8b/flying_delta_tools_wikipedia-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-28 22:10:17",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "flying-delta-tools-wikipedia"
}
        
Elapsed time: 0.18702s