Skip to main content

Adding Models

This section explains the steps to add Cortex models and configure the required access controls.
1

Navigate to Cortex Models in AI Gateway

From the TrueFoundry dashboard, navigate to AI Gateway > Models and select Snowflake Cortex.
Navigating to Snowflake Cortex Provider Account in AI Gateway

Navigate to Snowflake Cortex Models

2

Add Snowflake Cortex Account Details

Click Add Snowflake Cortex Account. Give a unique name to your Snowflake cortex account and complete the form with your Snowflake cortex authentication details (PAT Token) and account identifier for snowflake. For more details on account identifier check here. Then add collaborators to your account. You can read more about access control here.
Snowflake cortex account configuration form with fields for API key and collaborators

Snowflake Cortex Account Form

3

Add Models by Model ID

Click on + Add Model to open the form for adding a new model. For Snowflake cortex, you don’t select from a list. Instead, you need to get the Model ID from their docs page.
Snowflake Cortex docs showing available models with ids

Find Model ID in Snowflake Cortex Docs

Use this Model ID when adding the model in TrueFoundry.
Model addition form for Snowflake cortex with fields for Name and Model ID configuration

Adding a Snowflake cortex model to TrueFoundry

Inference

After adding the models, you can perform inference using an OpenAI-compatible API via the Playground or by integrating with your own application.
Code Snippet and Try in Playgroud Buttons for each model

Infer Model in Playground or Get Code Snippet to integrate in your application