> ## Documentation Index
> Fetch the complete documentation index at: https://support.lilt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Configuration

### Background:

The first step when helping a customer set-up GCP credentials is to ask their IT department if they have:

* Service account keys with Cloud translation API Admin, Storage admin, and Storage object admin permissions

* Bucket with Location =US-Central1, and Storage class = standard class.

If the customer does not have a service account or bucket with that information. Someone from their IT department will have to do the following:

## Access:

Configuring the Google Configuration in AI Hub, will enable the customer to access all available services via the Google Cloud ecosystem, including:

* Google PaLM2

* Google Gemini

* Google Cloud ASR

* Google Cloud Image to Text

### Create a Service Account and get Keys

* Type Service accounts into search bar and select “Service accounts IAM & Admin”

* Click “Create service account”

  * Give name, click “Create and Continue”

  * Grant service account with the correct permissions:

    * Cloud translation API admin

    * Storage admin

    * Storage object admin

      <Frame>
        <img src="https://mintcdn.com/lilt-db26f913/lnVcbbfqf7Qsc1DF/images/31fffd48-image-20231212-202405.png?fit=max&auto=format&n=lnVcbbfqf7Qsc1DF&q=85&s=32cd5e482e40fca793758c32799434a2" width="1234" height="580" data-path="images/31fffd48-image-20231212-202405.png" />
      </Frame>

      * If setting up OCR and ASR

        * (If setting up OCR also include “Cloud Vision AI Service Agent”)

        * (If setting up ASR also include “Cloud Speech-to-text Service Agent”)

  * Grant users access to this service account

    * Leave all fields empty

      * <Frame>
          <img src="https://mintcdn.com/lilt-db26f913/JYCZK8MjjALJwC0p/images/34c15f96-image-20231212-202519.png?fit=max&auto=format&n=JYCZK8MjjALJwC0p&q=85&s=25c8c6ad1eae67de085b4e4fb7ce366a" width="1228" height="626" data-path="images/34c15f96-image-20231212-202519.png" />
        </Frame>

    * Click Done

  * Create the key

    * Search for the service account created in previous step, select the service account

      * It should say “No keys”, which means we have to generate keys

      * <Frame>
          <img src="https://mintcdn.com/lilt-db26f913/39zJavhRvES4F0j6/images/89f161c2-image-20231212-202617.png?fit=max&auto=format&n=39zJavhRvES4F0j6&q=85&s=b6e09e7ebd04a18c9b9548ebb3d805eb" width="1226" height="582" data-path="images/89f161c2-image-20231212-202617.png" />
        </Frame>

    * Click “Keys”

      * Click “Add Key”

        * Please note that you cannot regenerate a key so you need to store the key once it is created.

      * Select JSON and click “Create”

      * <Frame>
          <img src="https://mintcdn.com/lilt-db26f913/_SPh7S1sP0AAJsry/images/64588e21-image-20231212-202709.png?fit=max&auto=format&n=_SPh7S1sP0AAJsry&q=85&s=e5e13906fcd7ef21e3a6566b4257f6a1" width="1222" height="572" data-path="images/64588e21-image-20231212-202709.png" />
        </Frame>

  * This JSON key can be imported into [LILT](https://lilt.com/app/manage/llms)

<Frame>
  <img src="https://mintcdn.com/lilt-db26f913/C8Fa7tOPsPlwtPsc/images/c9e98875-image-20231212-202850.png?fit=max&auto=format&n=C8Fa7tOPsPlwtPsc&q=85&s=245f6466df9b52cb7812522ef04cfe7c" width="542" height="360" data-path="images/c9e98875-image-20231212-202850.png" />
</Frame>

### Creating a bucket

The customer can use whatever bucket they want as long as the bucket is Location =US-Central1 and Storage class = standard class. If the customer does not have a bucket that meets these criteria, follow the steps below:

* Bucket

  * Search Buckets and select “Buckets”

  * <Frame>
      <img src="https://mintcdn.com/lilt-db26f913/_SPh7S1sP0AAJsry/images/693c4803-image-20231212-203111.png?fit=max&auto=format&n=_SPh7S1sP0AAJsry&q=85&s=871553a9691bd36e9aa0421d76ab44ac" width="1222" height="570" data-path="images/693c4803-image-20231212-203111.png" />
    </Frame>

  * Create a bucket

    * Name the bucket

    * Select region US-Central1

    * <Frame>
        <img src="https://mintcdn.com/lilt-db26f913/3GpNTXXX3YC63b99/images/43e1a97e-image-20231212-203243.png?fit=max&auto=format&n=3GpNTXXX3YC63b99&q=85&s=0793b67b0ab86c79f46ec0820ef050b6" width="1166" height="574" data-path="images/43e1a97e-image-20231212-203243.png" />
      </Frame>

      * Storage Class for Data = Standard

    * <Frame>
        <img src="https://mintcdn.com/lilt-db26f913/n80KXPcaeRoHaTeg/images/6f59943e-image-20231212-203338.png?fit=max&auto=format&n=n80KXPcaeRoHaTeg&q=85&s=44db119d3f0f86ea732b0bc11a3a4c7d" width="1164" height="548" data-path="images/6f59943e-image-20231212-203338.png" />
      </Frame>

    * Choose how to control access to objects

      * LILT can work with either choice, customer should choose whichever is best for their systems.

      * <Frame>
          <img src="https://mintcdn.com/lilt-db26f913/JYCZK8MjjALJwC0p/images/3b8fc7d5-image-20231212-203439.png?fit=max&auto=format&n=JYCZK8MjjALJwC0p&q=85&s=27f43db6e2cd54f23ce7a84b1d424b20" width="1104" height="468" data-path="images/3b8fc7d5-image-20231212-203439.png" />
        </Frame>

    * Choose how to protect object data

      * LILT can work with either choice, customer should choose whichever is best for their systems.

      * <Frame>
          <img src="https://mintcdn.com/lilt-db26f913/vwqbRrDJ5X4ar99N/images/0c412a21-image-20231212-203512.png?fit=max&auto=format&n=vwqbRrDJ5X4ar99N&q=85&s=6607c75f31e1f0754efb70a0cc1eb028" width="1112" height="552" data-path="images/0c412a21-image-20231212-203512.png" />
        </Frame>

      * Click Create, choose confirm

      * Input the bucket name into LILT

      * <Frame>
          <img src="https://mintcdn.com/lilt-db26f913/9ZG5_AaqnpC5rx0I/images/dfabef9b-image-20231212-203546.png?fit=max&auto=format&n=9ZG5_AaqnpC5rx0I&q=85&s=687a9341a9b564887d9e265ef4ff8629" width="1116" height="520" data-path="images/dfabef9b-image-20231212-203546.png" />
        </Frame>

* In the example above you would paste “example-bucket-lilt” into LILT credentials
