Skip to main content
Call Nori from Snowflake SQL to predict numeric targets on your tables. Nori is in-context: you pass some labeled rows as examples and the rows you want scored, and it returns one prediction per row in a single forward pass, with no training or fine-tuning.

Hosted connector

A SQL function that calls the hosted Nori endpoint. Fastest to set up, and works today.

Native App (in-account)

Runs Nori inside your Snowflake account via Snowpark Container Services. Your data never leaves the account. Coming to Snowflake Marketplace.

Hosted connector

A Snowflake external-access function calls the hosted Nori endpoint. The model runs on Synthefy’s cloud; Snowflake sends the rows and gets predictions back.
The rows you pass are sent to the hosted endpoint for scoring. If your workload requires data to stay inside your Snowflake account, use the Native App instead.
Prerequisites
1

ACCOUNTADMIN role

Needed to create the external access integration (CREATE INTEGRATION).
2

A Nori API key

See API key.
3

A warehouse

Any warehouse, to run the function.

Set up (once)

Run each step in a Snowsight worksheet as ACCOUNTADMIN.
1

Create a namespace

Namespace
2

Add the egress rule and your API key

Replace <YOUR_NORI_API_KEY> with your key (highlighted line).
Network rule + secret
3

Create the external access integration

Integration
4

Create the prediction function

Uses only the Python standard library, so there is nothing to install.
nori_predict

Predict

Returns two numbers, confirming the connector works end to end.
Smoke test
setup.sql

Native App (in-account)

For workloads that require data to stay inside your Snowflake account, Nori is also available as a Snowflake Native App that runs the model in-account using Snowpark Container Services, so nothing is sent to Synthefy.
The in-account Native App is rolling out via the Snowflake Marketplace. Contact support@synthefy.com for early access.

Start the app (once, after install)

Grant the privileges the app requested, then start its service:
Start
Wait until the service is READY (the first start pulls the image and boots the model):
Status

Predict

Same signature as the hosted connector, but everything runs in your account:
Smoke test
Fully qualified, so it runs without setting a current schema.
Demo

Good to know

Numeric features only. Encode categorical columns (one-hot or ordinal) before calling.
Cold start (hosted connector). The first call after an idle period is slow while the model warms up; subsequent calls are fast. See the timings in the Nori Quickstart.
Size & alignment. Snowflake ARRAY values cap at 16 MB, so sample the labeled rows for very large context tables. Always aggregate x_train and y_train with the same ORDER BY.

Next steps

Amazon SageMaker

Deploy Nori as a SageMaker endpoint in your own AWS account.

Nori Quickstart

The model sizes and the request/response contract.