RelationalAI App Management#

The RelationalAI (RAI) Native App runs in a container on Snowpark Container Services and manages the RAI Engines that execute queries written with the relationalai Python package.

IMPORTANT

All app management procedures require the app_admin application role.

Activate the App#

To activate the RAI Native App after installing it, or to re-activate an app that has been deactivated, use the activate() procedure:

#CALL relationalai.app.activate();

When you activate your app for the first time, the necessary resources are provisioned:

INFO

It may take several minutes to provision the app’s resources prior to the app being fully activated.

When you re-activate a deactivated app:

INFO

It may take several minutes to re-create engines after the app is re-activated. Use the engines view to monitor the status of your engines.

Deactivate the App#

Use the deactivate() procedure to deactivate the RAI Native App and reduce costs when you are not using it:

#CALL relationalai.app.deactivate();
IMPORTANT

Models built with the relationalai Python package can’t execute queries while your RAI Native App is deactivated.

When you deactivate the app:

Check App Status#

Use the service_status() procedure to check the status of the RAI Native App:

#CALL relationalai.app.service_status();

View Application Telemetry#

When you install the RAI Native App, you are prompted to share continuous telemetry data with RelationalAI. This data is written to your account’s active event table and contains operational information such as internal system logs, engine sizes, and usage data. Customer data and personally identifiable information are not included in continuous telemetry data.

See the Snowflake documentation for details on viewing and working with event tables.