Google Cloud has unveiled AI.AGG, a new SQL aggregation function that leverages generative AI to summarize millions of rows of data in one line of code. Available in BigQuery, AI.AGG allows users to condense large volumes of text reviews, combine multimodal inputs like text and images, and generate concise summaries directly within SQL queries.
Traditional SQL aggregations can count, average, or group data, but they struggle with qualitative analysis. AI.AGG bridges this gap by using large language models to produce human-readable summaries from structured data. For example, a retailer could summarize thousands of product reviews into key themes without moving data out of BigQuery.
The function supports both text-only and multimodal reasoning, enabling analysis of images alongside text. Google Cloud provides documentation and an overview of generative AI capabilities in BigQuery to help developers get started.
AI.AGG is part of Google's broader push to embed AI into data analytics, making advanced summarization accessible to SQL users without machine learning expertise.