Manage context sets in Bigtable Studio

This document describes how to create context sets in Bigtable Studio using a context set file. Context set names must be unique within a project.

To learn about context sets, see Context sets overview.

Before you begin

Complete the following prerequisites before creating an agent.

Enable required services

Enable the following services for your project:

Prepare a Bigtable instance

Make sure that a Bigtable instance is available. For more information, see Create an instance.

Required roles and permissions

  • Grant the bigtable.admin role to the IAM user at the instance or project level. For more information, see Bigtable access control with IAM.
  • Grant the geminidataanalytics.queryDataUser role to the IAM user at the project level. For more information, see Add IAM policy binding for a project.
  • To create, upload, and manage context sets, grant the Dataplex Catalog Editor (roles/dataplex.catalogEditor) or Dataplex Catalog Admin (roles/dataplex.catalogAdmin) role to the IAM user at the project level. For more information, see Context sets permissions.

Create a context set

To create a context set, perform the following steps:

  1. In the Google Cloud console, go to the Bigtable page.

    Go to Bigtable

  2. Select an instance from the list.

  3. In the navigation menu, click Bigtable Studio.

  4. In the Explorer pane, next to Context sets, click View actions.

  5. Click Create context set.

  6. In Context set name, provide a unique context set name. The context set name is case-sensitive and can contain letters, numbers, hyphens, and underscores. Names must be 4-30 characters.

    The context set ID is derived from the context set name but is not necessarily identical. For the context set ID, the context set name is converted to lowercase and non-alphanumeric characters are replaced with the - character. For example, the context set name querydata_e2e_test has the context set ID querydata-e2e-test.

  7. Optional. In Description, add a description for your context set.

  8. Optional. To upload a context set file, click Browse in the Upload context file section, and select the context set file.

  9. Click Create.

Build context sets

After creating a context set, follow the steps in Build context sets to create a context set file. You can then edit your context set to upload the context set file.

Edit a context set

To edit a context set, perform the following steps:

  1. In the Google Cloud console, go to the Bigtable page.

    Go to Bigtable

  2. Select an instance from the list.

  3. In the navigation menu, click Bigtable Studio.

  4. Click View actions next to the context set you want to edit.

  5. Click Edit context set.

  6. Click Browse in the Upload context file section, and select the context set file.

  7. Click Save.

Delete a context set

To delete a context set, perform the following steps:

  1. In the Google Cloud console, go to the Bigtable page.

    Go to Bigtable

  2. Select an instance from the list.

  3. In the navigation menu, click Bigtable Studio.

  4. Click View actions next to the context set you want to delete.

  5. Click Delete context set.

  6. In the Delete context set confirmation dialog, enter the ID of the context set.

  7. Click Confirm to delete the context set.

What's next