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 accounthere
- 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_alphaimport WolframAlphaAPIWrapper
API Reference:WolframAlphaAPIWrapper
wolfram= WolframAlphaAPIWrapper()
wolfram.run("What is 2x+5 = -3x + 7?")
'x = 2/5'
Related
- Toolconceptual guide
- Toolhow-to guides