BigQuery: SQL That Thinks with AI — Parse, Summarize, and Optimize for Agentic Workflows
BigQuery now integrates AI functions directly into SQL, allowing document parsing, text summarization, and cost optimization. Learn about the new capabilities of AI.PARSE_DOCUMENT, AI.SUMMARIZE, and the Optimized Mode, which transform data analytics for Proactive Agentic Workflows.
Fabiano Brito
CEO & Founder
BigQuery Now Thinks in SQL: The Era of Agentic Data Analytics
Google BigQuery is elevating data analytics by integrating Artificial Intelligence capabilities directly into SQL. Imagine being able to parse complex documents, summarize large volumes of text, and optimize costs, all with familiar SQL commands. This is the reality brought by BigQuery’s new AI functions, a significant leap towards creating Proactive Agentic Workflows.
AI.PARSE_DOCUMENT: Unveiling Unstructured Data
The AI.PARSE_DOCUMENT function allows BigQuery to perform OCR (Optical Character Recognition) and automatic “chunking” of documents. This means that data previously inaccessible in PDFs, images, and other unstructured formats can now be extracted and prepared for analysis with a simple SQL query.
SELECT
document_id,
AI.PARSE_DOCUMENT(document_content, 'application/pdf') AS parsed_data
FROM
my_document_table
WHERE
document_id = 'doc_financial_001';
This capability is a game-changer for businesses dealing with large volumes of documents, such as contracts, invoices, or reports, allowing them to extract insights without the need for complex and time-consuming ETL tools.
AI.SUMMARIZE: Extracting the Essence of Your Data
With AI.SUMMARIZE, it’s possible to obtain concise summaries of any text column directly in SQL. Whether for summarizing call transcripts, customer reviews, or product descriptions, this function offers a quick way to distill crucial information.
SELECT
product_id,
AI.SUMMARIZE(ARRAY_AGG(review_text)) AS summary_reviews
FROM
customer_reviews
GROUP BY
product_id;
The ability to summarize data at scale transforms how marketing, customer service, and market intelligence teams access and utilize insights.
Optimized Mode: 230x Cost Reduction
One of the biggest innovations is the “Optimized Mode,” which can reduce token costs by an incredible 230 times. This optimization is crucial for companies operating at scale, making AI analysis accessible and economically viable for all data volumes. The mode works by restructuring how AI models interact with data in BigQuery, minimizing data traffic and resource consumption.
Integrating AI Functions into Existing Pipelines
The beauty of these new functionalities is that they can be integrated into existing data pipelines without the need to change the architecture. AI functions act like any other SQL function, allowing data analysts and engineers to incorporate them into their queries and scripts without a steep learning curve. This democratizes access to AI, enabling more teams to leverage its power.
Proactive Agentic Workflows: Anomalies That Reveal Themselves
With the combination of these new capabilities, BigQuery enables the development of “Proactive Agentic Workflows.” Imagine a system that not only stores and analyzes data but also autonomously detects anomalies, emerging patterns, or business opportunities. For example, a system can:
- Automatically identify unusual variations in supplier contracts.
- Summarize and categorize customer feedback to detect negative or positive trends.
- Proactively alert about significant changes in marketing campaign performance.
These workflows transform BigQuery from a passive data repository into an active partner in decision-making.
Conclusion
Google BigQuery’s innovations represent a significant advancement in the convergence of SQL and Artificial Intelligence. With AI.PARSE_DOCUMENT, AI.SUMMARIZE, and the “Optimized Mode,” BigQuery not only simplifies unstructured data analysis and text summarization but also lays the groundwork for a new generation of Proactive Agentic Workflows. Companies that adopt these capabilities will be ahead in the race for insights, transforming data into actionable decisions more efficiently and economically than ever before.
Further Reading and Next Steps:
- Want to take data intelligence to the next level? Contact our experts!
- Explore our Agent Factory: Discover how we can build personalized AI solutions for your business. Learn more!
