Important: It is always better to use models in the same region as your dataset to avoid errors and optimize performance.To learn where each model is located we recommend checking this models list. If you encounter a “model not found” error, it may be because the model you’re trying to use is not available in your current region. In such cases, you can enable cross-region model access with the following command (requires ACCOUNTADMIN privileges):
Note: While developing the tests we worked with claude-3-5-sonnet
so we recommend using this model as a default when running unstructured data tests in Snowflake.
Note: By default, all users in your Snowflake account already have access to Cortex AI LLM functions through the PUBLIC role. In most cases, you don’t need to do anything to enable access.The
CORTEX_USER
database role in the SNOWFLAKE database includes all the privileges needed to call Snowflake Cortex LLM functions. This role is automatically granted to the PUBLIC role, which all users have by default.
The following commands are only needed if your administrator has revoked the default access from the PUBLIC role or if you need to set up specific access controls. If you can already use Cortex functions, you can skip this section.