Data Meets AI: Transforming Analytics with BigQuery, Dataplex, and Gemini

Phil
8 min read
Featured image for Data Meets AI: Transforming Analytics with BigQuery, Dataplex, and Gemini

Introduction

I recently attended Google Cloud’s ‘Develop Secure AI Solutions with your Data’ at their Pier 57 NYC location, one of my favorite places! The lab's objective is to gain hands-on experience in data transformation, AI integration, security & governance, and generative AI. Before the lab, I had not played around in the Google Cloud console much, and most of my learning and certifications were in AWS. Recently, especially around the release of Gemini 2.0, I have wanted to expand outside of AWS, especially into Google Cloud, and get a better chance to understand the pros and cons of each primary cloud service provider. Lastly, I am a fan of these labs because they allow you to practice specific scenarios in demo lab environments with workloads that would typically cost you money if you run them on your cloud environment.


Key Themes

Data Transformation and AI Integration

The lab focuses on transforming raw data into actionable insights using AI-powered tools. It emphasizes the shift from traditional data analysis (e.g., SQL queries) to conversational AI, where users can interact with data in natural language. One of the newer features used in this example was the BigQuery data canvas, which has conversational AI capability directly based on the data within your table. Another highlight was BigQuery ML, the feature that allows anyone working on the data to build and run models in native SQL versus the typical Python or Java approaches, and, of course, integration with Gemini for natural language queries. The model selection guide below does a great job of capturing the correct machine-learning algorithm based on different use cases:

Data Organization and Governance

The lab highlights the importance of organizing and securing data using tools like Dataplex, which acts as a "smart librarian" for data assets. It introduces concepts like data lakes, zones, and assets, which help manage and govern data effectively. When the instructor described the benefits and use cases for Dataplex, it sounded like Databricks Lakehouse in some ways: both aim to unify data. Dataplex, however, is not a lakehouse. Instead, it is a data management layer that improves data discoverability, governance, and understanding.

Generative AI and Conversational Interfaces

The lab showcases how generative AI (via Gemini) can bring data to life, enabling users to interact with data through conversational agents. It also demonstrates multimodal AI capabilities to provide meaningful insights, such as understanding images, PDFs, and text. Essentially, the entire Google Cloud suite is embedded with the latest features of Gemini. The barrier of entry into each domain is consistently lowering, as you can ask natural language questions whenever you get stuck or want to understand a specific capability better.

Practical AI Applications

The lab provides hands-on experience with real-world applications, such as anomaly detection in weather data, data profiling, and building AI-powered conversational agents. It was an enjoyable experience being able to practice using many of these tools for the first time while creating some of the most popular use cases in AI. It is crazy to see how fast some of these applications can be spun up, granted the code and data sets were already provided for the lab, which saved time, but adding in those steps from scratch would probably only be a factor of a few hours, not days or weeks like before AI (for a newbie).


Technologies and Tools

  • Technologies Used: BigQuery, Dataplex, Gemini, Vertex AI, Agent Builder, Colab Enterprise.

  • Key Concepts: Natural Language Processing (NLP), Machine Learning in SQL (BQML), Data Governance, Conversational AI, Multimodal AI.

 

Hands-On Experience

In this lab, I had the opportunity to dive deep into Google Cloud’s AI and data tools, completing various tasks that showcased the power of modern data analytics and AI integration. Here’s a walkthrough of what I did:

  1. Exploring Weather Data with BigQuery:

    • I started by querying a dataset of weather information using SQL in BigQuery. The dataset included data on air quality, wind speed, and temperature.

    • Using BigQuery ML, I trained an ARIMA_PLUS_XREG model to detect anomalies in temperature patterns. This was a fascinating way to see how machine learning can be integrated directly into SQL workflows.

    • I also experimented with BigQuery Canvas, a natural language interface powered by Gemini. Instead of writing SQL queries, I asked questions like, “What’s the hottest temperature on record in Houston, Texas?” and got instant answers. It felt like magic!

  2. Organizing Data with Dataplex:

    • I created a Dataplex lake to organize and govern my data. This involved setting up zones (e.g., raw vs. curated) and adding assets like BigQuery datasets.

    • I ran a data profiling scan to analyze the quality and structure of my weather data. This was incredibly useful for identifying potential issues, such as missing values or inconsistencies.

    • I also set up access controls to ensure that only authorized users could access sensitive data. Dataplex made managing permissions at the lake, zone, and asset levels easy.

  3. Building AI Agents with Agent Builder:

    • Using Agent Builder, I created a conversational AI agent called Cooking Help. This agent was designed to answer cooking-related questions by pulling information from a dataset of public-domain cookbooks stored in Cloud Storage.

    • While the data store was parsed, I explored Gemini’s multimodal capabilities in Colab Enterprise. Using the Gemini API, I analyzed movie posters and generated product descriptions from images.

    • Once the agent was ready, I tested it by asking questions like, “How do I make a classic French omelet?” The agent provided detailed, context-aware answers, demonstrating the power of generative AI in real-time interactions.

Insights and Challenges:

  • One of the biggest challenges was waiting for the ARIMA_PLUS_XREG model to train, which took about 10 minutes. However, it was worth seeing how easily machine learning could be integrated into a SQL workflow.

  • I was particularly impressed by how intuitive BigQuery Canvas was. The ability to query data in plain English is a game-changer for non-technical users.

  • Building the conversational agent was a highlight but required patience as the data store took time to parse. Once it was ready, though, the agent worked seamlessly, showcasing the potential of AI-driven conversational interfaces.

Real-World Applications

The skills and tools I explored in this lab have immense real-world applications, particularly for businesses looking to modernize their data analytics and AI capabilities. Here’s how these technologies can be applied:

  1. Data Democratization:

    • Tools like BigQuery Canvas and Gemini-powered SQL generation allow non-technical users to interact with data. For example, a marketing team could ask, “What were our top-performing campaigns last quarter?” without needing to write SQL queries.

    • This democratization of data can lead to faster decision-making and more widespread use of data-driven insights across an organization.

  2. Anomaly Detection and Predictive Analytics:

    • The ARIMA_PLUS_XREG model I trained for weather data can be applied to other time-series datasets, such as sales trends, website traffic, or energy consumption. Businesses can use these models to detect anomalies (e.g., sudden drops in sales) and make proactive decisions.

    • For example, a retail company could use anomaly detection to identify unusual purchasing patterns and adjust inventory levels accordingly.

  3. Data Governance and Security:

    • Dataplex provides a robust framework for organizing and securing data. This is critical for industries like healthcare and finance, where data privacy and compliance are paramount.

    • By setting up zones and access controls, organizations can ensure that sensitive data is only accessible to authorized users, reducing the risk of data breaches.

  4. Conversational AI for Customer Support:

    • The Cooking Help agent I built is just one example of how conversational AI can be used. Businesses can create similar agents for customer support, internal knowledge bases, or sales assistance.

    • For instance, an e-commerce company could build an AI agent to help customers find products, answer FAQs, or troubleshoot issues, reducing the workload on human support teams.

  5. Multimodal AI for Content Generation:

    • Gemini’s multimodal capabilities open up exciting possibilities for content creation. For example, a marketing team could use Gemini to generate product descriptions from images or analyze customer feedback from PDFs.

    • This could streamline the process of creating product listings in retail, while in media, it could help generate captions or summaries for visual content.

Potential Impact on Businesses:

  • Improved Efficiency: Automating data analysis and customer interactions can save time and resources, allowing teams to focus on higher-value tasks.

  • Enhanced Decision-Making: By making data more accessible and actionable, businesses can make faster, more informed decisions.

  • Innovative Customer Experiences: Conversational AI and multimodal tools can create more engaging and personalized customer experiences, driving loyalty and satisfaction.

By combining these tools and techniques, businesses can unlock the full potential of their data, transforming it from a passive resource into an active driver of innovation and growth. This lab gave me a glimpse into that future, and I’m excited to see how these technologies will continue to evolve and shape industries.

 

Conclusion

This Google Cloud lab was a great experience and a look into the future of data analytics and AI. From querying data in plain English with BigQuery Canvas to building conversational AI agents with Gemini, I experienced firsthand how these tools can transform raw data into actionable insights. The hands-on tasks deepened my understanding of modern data governance and machine learning while highlighting these technologies' real-world potential to drive innovation and efficiency. Whether you're a data professional or a business leader, these tools offer a powerful way to make data work harder for you. If you’re looking to try this lab, check it out here.

…and everyone’s favorite part, the merch haul

Share this article

Stay in the Loop

Sign up to receive my latest blog posts and tech insights directly in your inbox.