Skip to main content

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

llama_index_tools_wolfram_alpha-0.1.3.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page