AI Generate Table

BigQuery now integrates with Vertex AI and Gemini 2.5 Pro/Flash models to extract structured insights from unstructured data like text, images, audio, and video

Google Cloud’s new AI.GENERATE_TABLE() function in BigQuery automates transforming unstructured data into structured tables using AI models

The function works with a prompt and a defined output schema, ensuring the results are consistent and compatible with BigQuery tools

You can analyze a wide range of data types, including documents, photos, videos, and medical transcriptions, using this approach

To use AI.GENERATE_TABLE(), first create an external table in BigQuery that references your unstructured data (e.g., images in a Cloud Storage bucket)

The output schema is defined in SQL, specifying the fields and data types you want to extract (e.g., city_name STRING, state STRING, attractions ARRAY<STRING>)

The function can extract detailed information from images, such as city names, states, histories, and tourist attractions, or return nothing if the image is not relevant