Choose a warehouse
Levered trains on exposure and reward events. The events are stored in your own data warehouse (data warehouse native) or in a warehouse that Levered hosts (Managed Warehouse).
Levered trains the model on two kinds of events. An exposure records which variant a user saw. A reward records what the user did. The events are stored in one of two places:
| Data warehouse native | Managed Warehouse | |
|---|---|---|
| Where the events are stored | Your BigQuery, Snowflake or Postgres | A warehouse that Levered hosts |
| How the events get there | Your existing pipeline | The ingestion API of Levered |
| What Levered accesses | Your tables, with read-only access at training time | The events that the app sends |
| Main advantage | Control over the data and follow-up analysis | Short setup |
Setup with an Agent uses the Managed Warehouse, unless the organization already has a warehouse connected.
Data warehouse native
Levered connects to your warehouse with a read-only user and reads exposures and rewards with SQL at training time. The raw events stay in your warehouse.
- Control. The events stay in your infrastructure and under your access rules.
- Follow-up analysis. The exposures are stored next to your other data. Join them with revenue or retention data, or reproduce the holdout test.
- Existing pipeline. Log exposures with the tools that are already in use, for example Segment, RudderStack or direct inserts. Each event that is already recorded can be used as a reward.
The setup requires a read-only connection, an exposures table that the app logs to, and a metric written as SQL against your tables.
BigQuery
Connect a Google Cloud BigQuery dataset.
Snowflake
Connect a Snowflake database and schema.
Postgres
Connect a PostgreSQL database.
After connecting the warehouse, set up the data pipeline to create the tables that Levered reads.
Managed Warehouse
Levered hosts the warehouse. The app sends exposures and rewards to the ingestion API of Levered with an API key, and training reads the events from there.
- Short setup. The setup requires no warehouse connection, no access grants and no tables.
- One integration. The same API receives exposures and rewards.
The setup requires turning on the Managed Warehouse in the dashboard, an API key that is stored on your server, and a call to the ingestion API for each exposure and each reward.
The results are available in the dashboard, the CLI and the API. The events in the Managed Warehouse cannot be queried with your own SQL or joined with data outside Levered.