> ## Documentation Index
> Fetch the complete documentation index at: https://landinglens.docs.landing.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Use LandingEdge with LandingLens on Snowflake

export const vp = 'Visual Prompting';

export const smartLabel = 'Smart Labeling';

export const productLL = 'LandingLens';

export const mi = 'Mobile Inference';

export const llsf = 'LandingLens on Snowflake';

export const companyName = 'LandingAI';

*This article applies to these versions of LandingLens:*

<table>
  <thead>
    <tr>
      <th>LandingLens</th>
      <th>LandingLens on Snowflake</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td><span class="cross-icon">✖</span></td>
      <td><span class="check-icon">✓</span></td>
    </tr>
  </tbody>
</table>

Users of both LandingLens and {llsf} can use LandingEdge to run inference.

Most of the LandingEdge processes are the same for both LandingLens and {llsf}—you choose an image source, an action that triggers inference, and the LandingLens model that runs inference.

**The only difference occurs if you want to run LandingEdge "online"**. This means that LandingEdge uses an Internet connection to load the model from {llsf}. Running LandingEdge online also allows you to upload inference results back to {llsf}, so that you can save images to your project in a process called Continuous Learning.

If you want to run LandingEdge online with {llsf}, follow the instructions in this article. Otherwise, if you want to run LandingEdge "offline", follow the general instructions in [Manage Inspection Points](./manage-inspection-points).

<Info>LandingEdge v2.8.45.0 and later supports {llsf}.</Info>

## Considerations for Running LandingEdge Online with {llsf}

If you enable running LandingEdge online with {llsf}, you will *only* be able to use LandingEdge to run models online with {llsf}. You won't be able to run models offline or run models from the LandingAI-hosted version of LandingLens until you disable the connection with {llsf}.

## Set Up an Online Connection with LandingLens on Snowflake

If you want to run LandingEdge online with {llsf}, set up a connection between the two applications using the following instructions:

1. Open LandingEdge.
2. Click the **Settings** (gear) icon in the top right corner of the LandingEdge homepage.
   <img src="https://mintcdn.com/landinglens/TJ8p3AwYZ8yXbABY/images/LE_settings_home.png?fit=max&auto=format&n=TJ8p3AwYZ8yXbABY&q=85&s=79f14a12e07068aa54aac8a3fca4d2ee" alt="LE_settings_home" width="2008" height="551" data-path="images/LE_settings_home.png" />
3. Click **Snowflake**.
4. Select the **Use Snowflake** checkbox.
5. Fill out the fields:
   * **Snowflake App URL**: Enter the fully qualified domain of your instance of {llsf}. For example, the URL could be `https://example.snowflakecomputing.app/`.
   * **Snowflake Account**: Enter your Snowflake account [locator](https://docs.snowflake.com/en/user-guide/admin-account-identifier#format-2-account-locator-in-a-region). One way to find your account locator is to open a worksheet in Snowsight and run `SELECT CURRENT_ACCOUNT();`. For more information, go to the [Snowflake documentation](https://docs.snowflake.com/en/sql-reference/functions/current_account).
   * **Snowflake Username**: Enter your Snowflake username as it appears in your Snowsight profile. (This is the `NAME` property in Snowflake.)
6. Click **Generate New Private Key**. LandingEdge creates a private key and saves it to your hard drive.
7. Click **Copy Public Key**. (You will later assign the public key to yourself in Snowflake.)
8. If you're using AWS PrivateLink or your Snowflake account locator has underscores, select the **Use AWS PrivateLink** checkbox.
9. Click **Save**.
   <img src="https://mintcdn.com/landinglens/K_4nD7peL3kar2nE/images/setup_LE_SF.png?fit=max&auto=format&n=K_4nD7peL3kar2nE&q=85&s=9eba89f9cbe52a8e82915540f06f13ae" alt="setup_LE_SF" width="1817" height="1425" data-path="images/setup_LE_SF.png" />
10. Assign the public key to yourself in Snowflake. To learn how to do this, go to the [Snowflake documentation](https://docs.snowflake.com/en/user-guide/key-pair-auth#assign-the-public-key-to-a-snowflake-user).
11. To verify that LandingEdge successfully connected to {llsf}, set up an inspection point. If your projects display in the **Project Connected to** drop-down menu, the connection works. If you don't see any projects, check if all Snowflake account information was entered correctly.
    <img src="https://mintcdn.com/landinglens/nULG3l07sGmu7vxy/images/verify_LE_SF_connection(2).png?fit=max&auto=format&n=nULG3l07sGmu7vxy&q=85&s=e450f03a6125cc1201b4934392acc8e3" alt="verify_LE_SF_connection(2)" width="792" height="730" data-path="images/verify_LE_SF_connection(2).png" />

## Set Up an "Online" Inspection Point

After you've set up the [Snowflake settings](./landingedge-snowflake#set-up-an-online-connection-with-landinglens-on-snowflake) in LandingEdge, you can set up Inspection Points, which are the sets of information needed to deploy models in LandingEdge. For the most part, you can follow the instructions in [Manage Inspection Points](./manage-inspection-points) to set up an Inspection Point. The only difference is how you fill out the **Cloud Connection** and **Model** settings:

1. Select your project from the **Project Connected to** drop-down menu.
   <img src="https://mintcdn.com/landinglens/nULG3l07sGmu7vxy/images/verify_LE_SF_connection(2).png?fit=max&auto=format&n=nULG3l07sGmu7vxy&q=85&s=e450f03a6125cc1201b4934392acc8e3" alt="verify_LE_SF_connection(2)" width="792" height="730" data-path="images/verify_LE_SF_connection(2).png" />
2. Select **Download from LandingLens**.
3. Click **Select**.
   <img src="https://mintcdn.com/landinglens/HBWOq4xeHM0Cl6hQ/images/model_online_new_3.png?fit=max&auto=format&n=HBWOq4xeHM0Cl6hQ&q=85&s=71cb6346a3b2973f18acc25b63dec31c" alt="model_online_new_3" width="701" height="375" data-path="images/model_online_new_3.png" />
4. Select the model you want to use and click **Download Model**.
   <img src="https://mintcdn.com/landinglens/TJ8p3AwYZ8yXbABY/images/LE_SF_downloadModel.png?fit=max&auto=format&n=TJ8p3AwYZ8yXbABY&q=85&s=4bfff56cdf343cd68f2114b03681fa65" alt="LE_SF_downloadModel" width="1163" height="923" data-path="images/LE_SF_downloadModel.png" />
5. LandingEdge loads the model. When this is complete, the **Model successfully loaded message** displays and the **Run Now** button becomes active.
   <img src="https://mintcdn.com/landinglens/TJ8p3AwYZ8yXbABY/images/LE_SF_modelLoaded.png?fit=max&auto=format&n=TJ8p3AwYZ8yXbABY&q=85&s=a1aa0d5433453c6362f66236b1fb206a" alt="LE_SF_modelLoaded" width="711" height="788" data-path="images/LE_SF_modelLoaded.png" />
6. Continue setting up the Inspection Point.

## Disable the Online Connection with {llsf}

If you no longer want LandingEdge to be connected to {llsf}, deselect the **Use Snowflake** checkbox on LandingEdge's Snowflake settings page. This disconnects all Inspection Points that were connected to {llsf}.

<img src="https://mintcdn.com/landinglens/AkXgdAcL19zbnV5n/images/disable_LE_SF.png?fit=max&auto=format&n=AkXgdAcL19zbnV5n&q=85&s=e319cadb553e6d98c920f40ce22c5110" alt="disable_LE_SF" width="1817" height="1425" data-path="images/disable_LE_SF.png" />
