llama-index-tools-wolfram-alpha


Namellama-index-tools-wolfram-alpha JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
Summaryllama-index tools wolfram_alpha integration
upload_time2024-11-17 23:06:02
maintainerajhofmann
docs_urlNone
authorYour Name
requires_python<4.0,>=3.9
licenseMIT
keywords math
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Wolfram Alpha Tool

This tool connects to a Wolfram alpha account and allows an Agent to perform searches

You will need to provide an API key: https://products.wolframalpha.com/api

## Usage

This tool has more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-wolfram-alpha/examples/wolfram_alpha.ipynb)

Here's an example usage of the WolframAlphaToolSpec.

```python
from llama_index.tools.wolfram_alpha import WolframAlphaToolSpec
from llama_index.agent.openai import OpenAIAgent


wolfram_spec = WolframAlphaToolSpec(app_id="API-key")

agent = OpenAIAgent.from_tools(wolfram_spec.to_tool_list(), verbose=True)

agent.chat("how many calories are in 100g of milk chocolate")
agent.chat("what is the mass of the helium in the sun")
```

`wolfram_alpha_query`: Get the result of a query from Wolfram Alpha

This loader is designed to be used as a way to load data as a Tool in a Agent.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-tools-wolfram-alpha",
    "maintainer": "ajhofmann",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "math",
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/da/a3/c812363cf0f818ddb6b0ff008aaaf5369b0398c1ba7d58e12b6e8dd906c6/llama_index_tools_wolfram_alpha-0.3.0.tar.gz",
    "platform": null,
    "description": "# Wolfram Alpha Tool\n\nThis tool connects to a Wolfram alpha account and allows an Agent to perform searches\n\nYou will need to provide an API key: https://products.wolframalpha.com/api\n\n## Usage\n\nThis tool has more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-wolfram-alpha/examples/wolfram_alpha.ipynb)\n\nHere's an example usage of the WolframAlphaToolSpec.\n\n```python\nfrom llama_index.tools.wolfram_alpha import WolframAlphaToolSpec\nfrom llama_index.agent.openai import OpenAIAgent\n\n\nwolfram_spec = WolframAlphaToolSpec(app_id=\"API-key\")\n\nagent = OpenAIAgent.from_tools(wolfram_spec.to_tool_list(), verbose=True)\n\nagent.chat(\"how many calories are in 100g of milk chocolate\")\nagent.chat(\"what is the mass of the helium in the sun\")\n```\n\n`wolfram_alpha_query`: Get the result of a query from Wolfram Alpha\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index tools wolfram_alpha integration",
    "version": "0.3.0",
    "project_urls": null,
    "split_keywords": [
        "math"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5aa678540e5e426591b4719e49ae46c8738166d2a13efdbd5018fca96a1c7dd2",
                "md5": "c143f5dd93f5870000a1bdb8561598cc",
                "sha256": "4c873c22e43424896e15aa091480c7b353efe2f29fae41689ce4bf184687d17d"
            },
            "downloads": -1,
            "filename": "llama_index_tools_wolfram_alpha-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c143f5dd93f5870000a1bdb8561598cc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 2684,
            "upload_time": "2024-11-17T23:06:01",
            "upload_time_iso_8601": "2024-11-17T23:06:01.288847Z",
            "url": "https://files.pythonhosted.org/packages/5a/a6/78540e5e426591b4719e49ae46c8738166d2a13efdbd5018fca96a1c7dd2/llama_index_tools_wolfram_alpha-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "daa3c812363cf0f818ddb6b0ff008aaaf5369b0398c1ba7d58e12b6e8dd906c6",
                "md5": "9eab866c155e67a293d118c1aec229cb",
                "sha256": "537cd0451863ea5475b08e20d01073a81c9148e4bbb9f2fe85213e6690078407"
            },
            "downloads": -1,
            "filename": "llama_index_tools_wolfram_alpha-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "9eab866c155e67a293d118c1aec229cb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 2378,
            "upload_time": "2024-11-17T23:06:02",
            "upload_time_iso_8601": "2024-11-17T23:06:02.836554Z",
            "url": "https://files.pythonhosted.org/packages/da/a3/c812363cf0f818ddb6b0ff008aaaf5369b0398c1ba7d58e12b6e8dd906c6/llama_index_tools_wolfram_alpha-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-17 23:06:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-wolfram-alpha"
}
        
Elapsed time: 0.84768s