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.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.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_tools_wolfram_alpha-0.3.0.tar.gz.
File metadata
- Download URL: llama_index_tools_wolfram_alpha-0.3.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
537cd0451863ea5475b08e20d01073a81c9148e4bbb9f2fe85213e6690078407
|
|
| MD5 |
9eab866c155e67a293d118c1aec229cb
|
|
| BLAKE2b-256 |
daa3c812363cf0f818ddb6b0ff008aaaf5369b0398c1ba7d58e12b6e8dd906c6
|
File details
Details for the file llama_index_tools_wolfram_alpha-0.3.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_tools_wolfram_alpha-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c873c22e43424896e15aa091480c7b353efe2f29fae41689ce4bf184687d17d
|
|
| MD5 |
c143f5dd93f5870000a1bdb8561598cc
|
|
| BLAKE2b-256 |
5aa678540e5e426591b4719e49ae46c8738166d2a13efdbd5018fca96a1c7dd2
|