Wolfram Alpha
This notebook goes over how to use the wolfram alpha component.
First, you need to set up your Wolfram Alpha developer account and get your APP ID:
- Go to wolfram alpha and sign up for a developer account here
- Create an app and get your APP ID
- pip install wolframalpha
Then we will need to set some environment variables:
- Save your APP ID into WOLFRAM_ALPHA_APPID env variable
pip install wolframalpha
import os
os.environ["WOLFRAM_ALPHA_APPID"] = ""
from langchain_community.utilities.wolfram_alpha import WolframAlphaAPIWrapper
API Reference:WolframAlphaAPIWrapper
wolfram = WolframAlphaAPIWrapper()
wolfram.run("What is 2x+5 = -3x + 7?")
'x = 2/5'
Related
- Tool conceptual guide
- Tool how-to guides