A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cloud.google.com/storage/docs/analyze-data-gemini-cloud-assist below:

Analyze your stored data with Gemini Cloud Assist | Cloud Storage

Analyze your stored data with Gemini Cloud Assist

Stay organized with collections Save and categorize content based on your preferences.

Preview

This feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the Service Specific Terms. Pre-GA features are available "as is" and might have limited support. For more information, see the launch stage descriptions.

This page describes how to use AI-powered assistance through Gemini to help you better understand your data storage landscape in Cloud Storage. When you use Gemini Cloud Assist, you can enter prompts about how Cloud Storage works in general, and when you enable a Storage Intelligence subscription, you can enter prompts about specific buckets and objects.

You can then use the information provided by Gemini Cloud Assist to do the following:

Gemini doesn't use your prompts or its responses as data to train its models without your express permission. For more information about how Google uses your data, see How Gemini for Google Cloud uses your data.

This page is intended for developers, data analysts or data engineers, platform admins, finance operators, and compliance officers. It assumes that you know how to use Cloud Storage and query linked datasets.

What prompts can Gemini answer?

To understand your data storage, you can provide Gemini Cloud Assist with a prompt, which is a natural language statement or question.

When you use Gemini Cloud Assist alone without a Storage Intelligence subscription, you can ask prompts about how Cloud Storage generally works, such as the following:

When you enable a Storage Intelligence subscription, you can also ask prompts related to cost saving opportunities, security and compliance, and data discovery. Gemini Cloud Assist can use the metadata contained in Storage Insights datasets to generate insights, which are responses to prompts about your bucket and object metadata and usage. You can ask prompts such as the following:

Before you begin

In order to use Gemini Cloud Assist for general prompts related to Cloud Storage, you must first set up Gemini Cloud Assist, including getting required roles.

If you want to enter prompts related to specific buckets and objects, you must also complete the following prerequisite steps:

  1. Enable Storage Intelligence, which gives you access to using Storage Insights datasets.

  2. Create a Storage Insights dataset, which Gemini Cloud Assist will analyze to provide information about specific buckets and objects.

    Alternatively, if there's an existing dataset you want to use, you can get the required IAM roles for accessing the existing dataset.

  3. Ensure that the Storage Insights service agent has access to the dataset Gemini Cloud Assist will analyze. This enables the dataset to be read and analyzed.

Enable Storage Intelligence

Ensure that Storage Intelligence is enabled on the project, folder, or organization that contains or will contain the datasets that Gemini Cloud Assist will use to answer prompts.

Grant required roles for accessing datasets Note: If you plan to use an existing dataset, you can skip this step.

When a user first creates a dataset configuration, an Storage Insights service agent is created. The service agent follows the naming format service-PROJECT_NUMBER@gcp-sa-storageinsights.iam.gserviceaccount.com and appears on the IAM page of the Google Cloud console when you select the Include Google-provided role grants checkbox.

In order to use Gemini Cloud Assist for prompts related to bucket or object metadata, you need to enable the Storage Insights service agent to read datasets. Ask your administrator to grant the service agent the BigQuery Data Viewer role (roles/bigquery.dataViewer) on the organization, folder, or project that contains the dataset you want to analyze.

For instructions on granting roles to service agents, see create and grant roles to service agents.

Get required roles for accessing datasets Note: If you created a dataset from scratch, you most likely already have the required permissions and can skip this step.

To get the permissions that you need to get insights on bucket and object metadata, ask your administrator to grant you the following IAM roles on the project, folder, or organization that contains the datasets you want to analyze:

For more information about granting roles, see Manage access to projects, folders, and organizations.

You might also be able to get the required permissions through custom roles or other predefined roles.

Analyze your data storage by using natural language prompts

As an early-stage technology, Gemini for Google Cloud products can generate output that seems plausible but is factually incorrect. We recommend that you validate all output from Gemini for Google Cloud products before you use it. For more information, see Gemini for Google Cloud and responsible AI.

Note: To improve the quality of responses, include Cloud Storage in the prompt. For example: 5 largest Cloud Storage buckets without object versioning enabled.

To enter prompts to Gemini Cloud Assist, follow these steps:

  1. In the Google Cloud console, go to the Cloud Storage Storage Insights page.

    Go to Storage Insights

  2. In the toolbar, click spark (Gemini) to open the Cloud Assist chat panel.

    The Cloud Assist chat panel appears.

  3. In the Cloud Assist chat panel, enter a natural language prompt about your data storage. For example, you might enter the following:

    Which is my largest bucket
  4. Click play_arrow (Generate).

  5. If prompted to, enter the name of the dataset that Gemini will analyze to generate the response, then click play_arrow (Generate).

    If successful, Gemini Cloud Assist generates a response similar to the following:

    Here's what I found by analyzing the data in EXAMPLE_DATASET:
    
    
    Bucket name
    Size
    
    
    my-bucket
    39.1 TB
    
    
    

    The underlying SQL query that Gemini Cloud Assist uses is also returned. The generated SQL query is similar to the following:

    SELECT bucket_id, bucket_size
    FROM buckets
    WHERE project_id = 'example-project'
    ORDER BY bucket_size DESC
    LIMIT 1;
    

Optionally, you can enter suggested prompts:

  1. In the Google Cloud console, go to the Cloud Storage Storage Insights page.

    Go to Storage Insights

  2. In the auto_awesome Suggested prompts section, select a suggested prompt. For example, a suggested prompt might say: Storage size broken down by object content type.

  3. If successful, Gemini Cloud Assist generates a response similar to the following:

    Here's what I found by analyzing the data in EXAMPLE_DATASET:
    
    
    Content type
    Size
    
    
    MP4
    483.2 GB
    
    
    MOV
    239.1 GB
    
    
    MP3
    125.8 GB
    
    
    

    The underlying SQL query that Gemini Cloud Assist uses is also returned. The generated SQL query is similar to the following:

    SELECT
    oa.contentType, ROUND(sum(oa.size) / (1024 * 1024 * 1024), 2) AS total_size_gb
    FROM object_attributes_latest AS oa
    GROUP BY oa.contentType
    ORDER BY sum(oa.size) DESC;
Limitations What's next

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-02 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-02 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.5