Prerequisites
- Python 3.10+
- OpenAI API key (or another supported model provider)
- Snow Leopard Cloud API key
- A Snow Leopard Cloud instance with at least one data source connected
- Your instance ID, from the instance’s Connection Info tab
Don’t have data? Load the sample Northwind dataset into a PostgreSQL database that Snow Leopard Cloud can reach, such as a hosted Neon or Supabase database. Run the dataset’s
northwind.sql script against your database, then add the database as a data source in your instance.Start from scratch
Clone and run the complete working example:Bring your own agent
Already have a LangGraph workflow? Add Snow Leopard data retrieval with these steps.1. Install dependencies
2. Add Snow Leopard fields to your state
Add fields to your graph state to store query results:3. Create a Snow Leopard query node
Create a node that calls Snow Leopard to retrieve data:4. Add the node to your workflow
Add the query node and connect it to your existing workflow:Next steps
- View the full example on GitHub
- See our full API documentation to learn about the Retrieve and Response endpoints
- Improve accuracy by giving Snow Leopard feedback about your business logic and terminology
- See this quickstart in action with the Financial Coach recipe