llama-index tools wolfram_alpha integration
Project description
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
Here's an example usage of the WolframAlphaToolSpec.
from llama_index.tools.wolfram_alpha import WolframAlphaToolSpec
from llama_index.agent 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. See here for examples.
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
Close
Hashes for llama_index_tools_wolfram_alpha-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d15f6045865ec2f6d01197a9b7719fcbce5da8bd417b8df49a4ecf8afd7448f8 |
|
MD5 | 555b385f6e22e13834fd2a3f6b4ef71f |
|
BLAKE2b-256 | 4e56633b1d0b0a0bd69aaaa40b44c9c1811ee117fd171c6660672c8deee3e001 |
Close
Hashes for llama_index_tools_wolfram_alpha-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d43696d5e7b4e9b38770d9469cc5033ce1f61b41311e5c6f2f08b2bdc0b0b2 |
|
MD5 | 626f7aa8ee938c156975b5c542c31e39 |
|
BLAKE2b-256 | b0359a0e53c9ffb215a0d1888c141a4e0b4d9892caefcf944475532784b707f0 |