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.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_tools_wolfram_alpha-0.1.1.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_wolfram_alpha-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0386b82d26568d76d317017354b640ca124738573742ae15076a3bb0871f2a6e
MD5 88ab70e42ae49b39ddcde4f327935f0b
BLAKE2b-256 1dccc7891ef6c8921bff2d17d28170b9f12d5482845cd597cebb862b6d558b35

See more details on using hashes here.

File details

Details for the file llama_index_tools_wolfram_alpha-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_wolfram_alpha-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 171460e0f2cccef1a2d0975bb2e34a421d01c94856da4af5ecaf4e228c9e2f14
MD5 a22a5c0bba2834e3ca4b0bf6c0e07006
BLAKE2b-256 34a346923f9bda8208305d774899edf3bb5e9ede8d11195271e78bb8d8f2af04

See more details on using hashes here.

Supported by

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