Skip to main content
This guide shows you how to add Snow Leopard data retrieval to a LangChain agent.

Prerequisites

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:
Install dependencies:
Set your environment variables:
Run the example:

Bring your own agent

Already have a LangChain agent? Add Snow Leopard data retrieval with these steps.

1. Install dependencies

2. Create the Snow Leopard tool

Create a LangChain Tool that calls Snow Leopard to retrieve data:

3. Add the tool to your agent

Add the Snow Leopard tool to your agent’s tool list:

Next steps