Build a real estate agent using LangGraph to interact with purchase agreements and answer agent queries.
Set up your environment
langchain-tensorlake
package will make sure that all relevant Tensorlake and LangChain packages are installed..env
files for our OpenAI and Tensorlake API keys, so you need to install dotenv.
Tensorlake and LangGraph both look in environment variables for the necessary keys so that you don’t have to manually set them.Install necessary packages
Define your API keys
.env
, set your API keys:Prepare your imports
.env
:Specify the document to be parsed and questions to be asked
Define the LangGraph agent
document_markdown_tool
to:Invoke the agent and print the results
Test the Tensorlake powered LangGraph agent
deactive venv
when you’re done testing the agent.