71% of organizations plan generative AI in their databases, 14% manage it
A photo of a damaged delivery sits in a cloud bucket, and a plain SQL query asks Gemini whether the package or product is damaged. Nivedita Kumari, a Google Data Analytics Customer Engineer who advises C-level executives on data architecture, argues that analysts who already know SQL need not rely solely on data scientists to put AI to work. What does it take to run that inside the warehouse, with no data exported?
Watch two BigQuery demos turn reviews and package photos into structured data using SQL
Nivedita Kumari, a Data Analytics Customer Engineer at Google, argues that combining large language models, a data warehouse and the cloud lowers the cost, complexity and skills barriers to AI adoption. Through two BigQuery ML demos with Gemini 2.0 Flash, she shows how plain SQL can classify review sentiment, extract themes, draft replies and assess photos of damaged deliveries.
“AI needs fuel. Think of your business data as the essential fuel for your AI.”
“Even if you have a really good LLM, you need that database backbone in order to support your AI/ML use cases.”
What you will learn
Name the four barriers to AI and ML adoption (cost, complexity, expertise and accessibility) and how a combined LLM, warehouse and cloud stack addresses them.
Create a remote Gemini model in BigQuery and call ML.GENERATE_TEXT from SQL to classify review sentiment, extract themes and draft replies.
Write constrained prompts that return only fixed labels, booleans or JSON keys so model output stays clean for downstream use.
Set up an object table over a Cloud Storage bucket so a multimodal model can assess images inside the warehouse.
Join structured LLM output with order, pricing and delivery data to find patterns behind customer complaints.
Key takeaways from the speaker
Large Language Model
Generative AI
Data Analysis
Cloud Technologies
Data Warehouse
Details
Level
Intermediate
Format
Tech talk
Technical depth
Practitioner
For
Early career, Mid-career, Senior individual contributor
Length
33:34
Published
July 2025
Questions this talk answers
Why do organizations struggle to adopt AI and ML?
The speaker groups the barriers into cost, complexity, expertise and accessibility. She adds that the top pain point is training and upskilling employees to use data and AI together.
What does BigQuery ML change for data analysts?
It brings machine learning to the data, so models are trained and deployed inside BigQuery without exporting data. Analysts who know SQL can build and run models without relying solely on data scientists.
How can you run sentiment analysis on customer reviews using only SQL?
Create a model endpoint for Gemini 2.0 Flash with a CREATE OR REPLACE MODEL statement, then call ML.GENERATE_TEXT with a prompt that asks for only positive, negative or neutral. The model labels every review in seconds.
How can a data warehouse analyze images such as photos of damaged deliveries?
Store the images in a Google Cloud Storage bucket and create an object table with the bucket URI. Then prompt the Gemini model through ML.GENERATE_TEXT to report whether the package or product is damaged.
Why ask an LLM to return JSON?
JSON keys can be extracted into their own columns, making the output structured. That lets teams join it with order value, delivery partner or location data to find patterns in complaints.
About this talk
This session explores the power of cloud-based data analysis product and data warehouse. You'll learn how large language model streamlines SQL query writing and provides clear explanations, boosting data analyst efficiency. How it enables you to gain insights and build machine learning models directly with SQL. Discover how to integrate Generative AI models into data analysis, unlocking a new era of data-driven decision making. Additionally, see a real-world example of how Generative AI models integrate with data warehouse for advanced analysis using SQL. This session will equip you with the tools and knowledge to revolutionize your data analysis practices using SQL and the transformative power of Generative AI.
Why most companies can't use Gen AI on their data yet (78 s)
Bring ML to your data, not data to ML (87 s)
An LLM inspects photos of damaged deliveries (66 s)
Speaker 1: Hello, everyone. Welcome to the session, the Data Dream Team, LLMs, Warehouses and Cloud. I'm so excited to be here and presenting it in front of you all. Today we would explore how the integration between data warehouses and LLMs are democratizing AIML. It is making it easier to build and scale intelligence. Speaker 1: We are doing a lot more intelligent solutions and applications and making it accessible and scalable than ever before.
Speaker 1: My name is Nivedita Kumari and I'm a data analytics customer engineer at Google Cloud. I have nine years of work experience in the IT field. I started my career as a software engineer, but I slowly transitioned towards more towards data and AI. Speaker 1: Set up their data and AI platform on GCP. And I really hope that everyone finds this session are really helpful in getting started with their data to AI journey.
Speaker 1: Before we start, let's understand the relationship between data and AI. AI needs fuel. Think of your business data as the essential fuel for your AI. Without AI, it can't without Speaker 1: the AI can't function effectively. And your business data needs a key. Conversely, like all your valuable information is hidden inside your data that you store, which holds untapped potential. And you need AI to unlock those insights and get the benefits. In order to unleash the full potential of data and AI, we would first examine the barriers that Speaker 1: many industries face when it comes to trying to adopt AI and ML. Next, I will walk you through a typical data to AI journey. Following that, I'll focus on the built-in AI and ML capabilities within BigQuery, which is a data warehouse platform. After that, I will go into a live demonstration of how you can leverage a data warehouse and LLM together to either deal with text or images.
Speaker 1: So the two use cases I will walk you through today is sentiment analysis and we would analyze images. After the demo, I would help you understand the financial and the business impact of Generative AI. Following that, we would take a look at the steps needed to get started with your first Gen AI use cases. Towards the end, we will wrap up with a Q&A session in the chat.
Speaker 1: As we all know, the landscape of AI is changing rapidly. According to a recent study, 71% of the organizations plan to use databases integrated with Gen AI capabilities. However, only 14% of the organizations are able to do so. Their legacy platform does not have that support for Generative AI that they are looking for. Speaker 1: Hence, there's a huge room for improvement. Hence, there's a huge room for improvement. This dissatisfaction underscores that there's a need for a modern and integrated solutions.
Speaker 1: Going further into understanding the challenges faced by businesses, a major pain point is that only 84% of the organizations report that the time and complexity required to move from raw data to actionable insights is Speaker 1: Far too long. This is often due to fragmented tools and that are not designed to work well together. Furthermore, if you look at the number one pain point that businesses have is the need to train and upskill employees to use data and AI together.
Speaker 1: This highlights that the importance that we not only have to make significant improvements in the technology that we use, but also we need to train our employees. We need to make improvements to the human capital that we have. Speaker 1: These challenges can be further broken down into four main buckets. The first barrier is cost.
Speaker 1: Many organizations believe that implementing AI/ML solutions is expensive and they need to make significant infrastructure investments into significant infrastructure and resources. Speaker 1: The second barrier is complexity. AI/ML is often seen as too complex for their teams to understand and implement effectively. The third barrier is expertise. Speaker 1: Organizations often feel that they lack that specialized data science skills in order to deploy ML solutions.
Speaker 1: And finally, the accessibility. Finding the right tool and knowing where to start is also a challenge that many people and many organizations face. Speaker 1: In order to overcome all the challenges, we need to leverage the powerful synergy between LLMs, data warehouses, and data Speaker 1: and the cloud. LLMs bring advanced artificial intelligence and natural language capabilities to unlock data insights.
Speaker 1: Data warehouses provide the structured, clean, and centralized data backbone for the LLMs to leverage. Even if you have a really good LLM, you need that database backbone in order to support your AI/ML use cases. Speaker 1: The cloud is the essential enabler offering the scalable infrastructure and specialized services. Speaker 1: Together, the dream team is fundamentally shaping the future of data driven organizations.
Speaker 1: The cloud offers you scalable and flexible infrastructure for massive data and compute, including specialized hardware like GPUs. Speaker 1: It provides comprehensive managed services for the entire ML lifecycle. And we will see that in our later demos and presentations what it means by comprehensive managed services and how you can manage the entire lifecycle of an ML model.
Speaker 1: Cloud ensure also ensures that there's a seamless integration between data warehouses and LLMs leveraging your data as the foundation. Speaker 1: This transition significantly reduces the complexity, making ML more accessible to a broader range of users. Speaker 1: Ultimately, the cloud also drives cost efficiency and reduces the operational overhead in the shift from data analytics to ML.
Speaker 1: And that's where Google Cloud comes in to provide a unified data platform with BigQuery at the center. It helps you to unify data analytics as well as ML in just one console. Speaker 1: And this unification is a key because it provides you with a unified data experience handling diverse data types and formats. Speaker 1: Unified compute engines supporting popular languages like SQL, Python or PySpark unified collaboration across teams and cloud and unified governance for greater insights and controls.
Speaker 1: When you look at a traditional ML, it is often a multi-step process like involving data warehouses for you to the need to export your data out from a database or a data solution to a separate tool for training. Speaker 1: And then ultimately figuring out the deployment. Speaker 1: This creates problem with data governance. Speaker 1: It requires significant infrastructure management, and it also demands your team to learn new tools and new languages.
Speaker 1: That's where a BigQuery machine learning, also known as BQML, comes in to help you by leveraging ML directly, by bringing ML directly to your data. Speaker 1: You do not need to export your data. Speaker 1: You can train and deploy ML models directly within BigQuery. Speaker 1: This eliminates the data governance, headaches, infrastructure management, and the need for separate hosting.
Speaker 1: Providing you with a truly unified platform and leveraging like your dream team of having your elements within your data warehouses and then the data warehouse being the part of the cloud where it helps you with all the essential features of cloud. Speaker 1: BQML is also about empowerment. Speaker 1: It offers ML access to more users through simple SQL interface.
Speaker 1: This is a crucial advantage because it allows data analysts and other professionals who are already proficient in SQL to build and deploy ML models without having to solely rely on data scientists. Speaker 1: This allows them to execute, iterate, and automate ML solutions, all within BigQuery using predefined models. Speaker 1: BQML provides a comprehensive ML platform covering feature engineering, training, interface, inference, and model management features like evaluation, registration, and monitoring.
Speaker 1: Plus, it offers the flexibility by letting you use external TensorFlow models and also export it to other solutions like vertex AI. Speaker 1: Apart from these, BQML also opens the door to the exciting world of generative AI. Speaker 1: So it allows you to leverage Gemini models, third party models, as well as open source models.
Speaker 1: So you have all these ML access within your data warehouse platform. Speaker 1: Gemini models are multimodal, meaning they can work with various types of data. Speaker 1: And the good thing is the data warehouse BigQuery fully supports your structured data, text data, images, video data, enabling a wide range of applications. Speaker 1: Here are some applications on how the integration between BigQuery and vertex AI can transform your data operations.
Speaker 1: And we would also look that through a live like two demos. Speaker 1: Imagine being able to extract the key entities, enrich your data with new insights, understand customer sentiment, generate personalized content, and even analyze videos. Speaker 1: The potential is truly vast. Speaker 1: Now we talked a lot about like how these technologies work together.
Speaker 1: Now we'll walk you through, I'll walk you through two demos. Speaker 1: The first demo would be sentiment analysis where we'll see how we can use predefined functions and LLM models within a data warehouse. Speaker 1: And you can do all these by just using simple SQL statements. Speaker 1: So let's take a look at the table that we would be using here.
Speaker 1: So here I have a customer reviews table where customers have submitted their positive, negative, neutral feedback. Speaker 1: So if you look at the table screenshot at the bottom of the slide, you'll see we have customer review ID. Speaker 1: Customer ID, location ID, review date and time, and then the review text. Speaker 1: And then the platform through which these reviews has been collected.
Speaker 1: Now what we want to do is we want to analyze the sentiment. Speaker 1: We want to understand how our product is doing in the market, like our customers enjoying it. Speaker 1: How can I make improvements? Speaker 1: If a customer has given me a review, how can I reply to that review? Speaker 1: So for that, the first step would be to create an ML model.
Speaker 1: And we can do that with just like two or three lines of SQL query. Speaker 1: So how you create a table in SQL by like, hey, you have a statement like create a table, you give the table name, and then you define the schema. Speaker 1: So it follows a similar context here as an endpoint.
Speaker 1: I'm using Gemini 2.0 and I am giving a statement like create or replace the model and then the name of the model that I'm creating. Speaker 1: So essentially all the Gemini models are in Vertex AI. Speaker 1: So I'm creating an endpoint that I can leverage within the data warehouse platform. Speaker 1: Once the model is created, you will see the model would be created live within like one or two seconds, and you would see all the details of the model.
Speaker 1: Once it is created within your BigQuery console. Speaker 1: We looked at the data. Speaker 1: We looked. Speaker 1: Now we have created a model. Speaker 1: We are left leveraging Gemini 2.0 flash model. Speaker 1: The next step is again, writing few lines of SQL in order to analyze that sentiment. Speaker 1: Here, I'm using a predefined function called ml.generateText.
Speaker 1: What this does is it helps you to generate text and then I'm leveraging the model that we created in the previous step. Speaker 1: Here, I'm also giving prompt to the LLM model that for a given review, classify the sentiment as positive, negative or neutral. Speaker 1: Only return neutral, positive or negative as answer. Speaker 1: No special characters or additional reasoning required.
Speaker 1: And the sample response. Speaker 1: I'm also giving like sample responses. So it can either be negative, positive or neutral. Speaker 1: And within just a few seconds, you will see that the model has reviewed all the reviews submitted by your customers, and it is giving you whether a particular review was positive, negative or neutral.
Speaker 1: So it would help you understand like how many negative reviews your business has, how many positive reviews. Speaker 1: What are the things that you need to make changes to your product or services that you are offering? Speaker 1: So if you look at the first review, coffee was often cold and I have to wait 30 plus minutes in line.
Speaker 1: Clearly, that's a negative review. Speaker 1: Let's also take a look at one positive review. Speaker 1: I was in and out in no time. Speaker 1: The line moved incredibly quickly and the barista even remembered my name when I come back to pick up my latte, which is clearly a positive review. Speaker 1: So you can see instead of having a customer service team or a product team analyze all the reviews, you can drive sentiment from hundreds and thousands of reviews in just within seconds.
Speaker 1: And you don't need any specialized tools or technology to do so. Speaker 1: You can leverage SQL statement and just process all the reviews. Speaker 1: Now that you know whether a particular review is positive or negative, you want to extract the key themes. Speaker 1: You want to understand whether a review is positive. Speaker 1: What what am I doing?
Speaker 1: Well, and whether if I'm getting negative reviews from my customer, what are the things I need to make changes in order to change their perception of the product and make sure they get a better service next time. Speaker 1: We need to extract those key themes and then see if there's a pattern in the themes that we are seeing among all those different reviews.
Speaker 1: So the next use case would be extracting the themes. Speaker 1: And again, we keep the same general pattern. Speaker 1: We would leverage the ML dot generate underscore text, which is a predefined function and the model that we created initially. Speaker 1: And here in the prompt, I'm giving instruction to the model that hey, classify the below customer review as one or more in one or more below themes.
Speaker 1: So you can get like a couple of themes if there are multiple themes in the review and then return the result in adjacent format. Speaker 1: Some instructions that hey, do not include special characters, but then I'm also providing a list of key themes. Speaker 1: So whether of whether the theme is like positive, negative or neutral, I have like listed down some sample themes in here.
Speaker 1: And once you run the query, you would see that within seconds, all these reviews has been processed and you can see key themes in there. Speaker 1: So if you look at the first one, the theme says short wait time and then you will get a very short explanation of why that particular theme was selected.
Speaker 1: So the customer stated that the line moved incredibly quickly and they were in and out in no time, implying extra short wait time. Speaker 1: Similarly, let's look at a positive or negative review. Speaker 1: So in here it says the theme is a bad service explanation. Speaker 1: The customer expertly explicitly states the service was terrible.
Speaker 1: So once you have all these different themes, you can find out like which of the themes are repetitive, which is prevalent for majority of the customers. Speaker 1: Things that you need to continue doing from a positive themes and things that you need to improve to make your product and service more attractive for your customers.
Speaker 1: Now that you have analyzed the sentiment, you know, you have extracted the themes and you, you know, the things working well, things that needs to be updated or changed. Speaker 1: The next step would be to reply. Speaker 1: To those customers, you want to make sure that your customers voices are heard and they are clearly hearing back from you.
Speaker 1: So again, I would leverage the ML dot generate underscore text, predefined function and the model we created above. Speaker 1: And here I am prompting the model to generate me five responses. Speaker 1: So, and then you have the option to choose between the five responses in order to reply to your customers. Speaker 1: So again, it would process all the reviews and it would give you examples of five different responses that you can choose from your reply.
Speaker 1: So you'll see like we are sorry to hear your coffee was often cold and the wait time was so long. Speaker 1: We are looking into ways to improve both the speed and the service and the coffee's temperature. Speaker 1: Would you tell us what time do you typically visit and we can investigate further. Speaker 1: So if a person has to read a longer time, see how from the responses.
Speaker 1: It wants to understand like what time do they visit clearly getting like more feedback and taking action on the response. Speaker 1: So all the response generated are like really intuitive. Speaker 1: Normally what a customer service representative or a team member would do. Speaker 1: So imagine the amount of time it saves your team and focus on other priority projects versus letting LLMs handle hundreds and thousands of these reviews and take action on them intuitively.
Speaker 1: Now that we looked at one text generation use case and how you would process a text leveraging LLMs in your data warehouse. Speaker 1: We would shift gears and we would move on to demo to where we would be working with images and then we would be generating responses after analyzing those images. Speaker 1: So for this particular use case, I think everybody attending the session here would have encountered it.
Speaker 1: Imagine like we must all have like used e-commerce platforms placed order on like Walmart, eBay, and we receive sometimes products or packaging where either the packaging is damaged or the product itself is damaged. Speaker 1: What do we do? Speaker 1: We reach out to the customer service team. Speaker 1: We either use the chat box or we call the service team or we email them and we let them know that, hey, the product was damaged.
Speaker 1: Either I need it, I need a replacement or reshipment or like you work around other ways in order to resolve the complaint that you have. Speaker 1: So this is the use case that exactly what we'll walk through today. Speaker 1: So here are some sample images, but we like I have more images that are being processed.
Speaker 1: This is just to given. Speaker 1: Yes. Speaker 1: So we all have encountered situations where we send out these images and today we would leverage the LLM model in order to process these images. Speaker 1: So the next step, the first step is to create a model. Speaker 1: So again, we'll follow the same steps that we had.
Speaker 1: Is a little different, but again, I would leverage the Gemini 2.0 flash model. Speaker 1: Of the LLM endpoint and then I would create a model in order to process the images. Speaker 1: The only one additional step from the prior use case is here is to create an external table or an object table. Speaker 1: And then all the images that we saw there of the packages needs to be stored somewhere.
Speaker 1: So these images, they are stored in Google Cloud storage bucket. Speaker 1: So once the images are stored there, how do you access them within your BigQuery or within your data warehouse? Speaker 1: That is made possible by creating an external or an object table, which would help you to like create the metadata for those things.
Speaker 1: But then your data warehouse platform. Speaker 1: So let's create the external table and here you would provide the URI of the bucket where the images are stored. Speaker 1: So this way you would be able to access the images within the BigQuery or console. Speaker 1: So now onto the first use case, I want the LLM to analyze these images and get results in Jason.
Speaker 1: And I would like talk more on like why here I'm specifically requesting the result in Jason. Speaker 1: But I'm again leveraging the same ML dot generate underscore function, the model and the external table that we created. Speaker 1: In the prompt, I'm clearly giving instructions that, hey, you're acting as a customer service team. Speaker 1: Your task is to analyze images submitted by customers to determine the condition of their received items.
Speaker 1: You specifically need to identify if the packaging is damaged or if the product is damaged itself or nothing is damaged at all. Speaker 1: And then in the Jason format that I'm requesting the response in, I'm clearly defining that the three keys I want is package damaged, is product damaged and then a short detail about the products.
Speaker 1: And then here getting the response in Jason, but I'm also trying to really specify that only give me like Boolean results, either true and false and don't give me like yes or no. Speaker 1: And later on, once you have the response in Jason, I'm extracting the value from those keys and making their own column, making it, making the data more structured for downstream system.
Speaker 1: So when you look at the result, you would, these are the URI for the images that is being processed. Speaker 1: And then here you have the image analysis that we requested the model. Speaker 1: So I requested the, prompted the model to give me the result in Jason. Speaker 1: And then in three key values is package damaged, is product damaged, and then the details.
Speaker 1: So you can clearly see I'm getting the result in Boolean like true, false, and then a short detail. Speaker 1: The image shows an undamaged package and product. Speaker 1: So on the screen here, I have like five of those, and then I'm clear indicating the images. Speaker 1: So let's look at number two is package damaged false because we don't see the packaging damage.
Speaker 1: The cardboard, the bubble wrap is intact. Speaker 1: Is the product damaged true? Speaker 1: We can see it looks like something ceramic, which is broken. Speaker 1: If you look at the detail, it says the packaging appears to be intact. Speaker 1: However, the product inside a ceramic pot is broken into several pieces. Speaker 1: The LLM was also able to put together and find out like what this product looks like.
Speaker 1: And clearly, it looks like a pot. Speaker 1: Similarly, if you look at the example five over here, you'll see is package damaged. Speaker 1: Yes, some oil or some liquid appears to be spilled all over the package. Speaker 1: Is the product damaged false? Speaker 1: We don't know if the product is damaged or not.
Speaker 1: Like is the spillage from the same product or is just the spillage from any product Speaker 1: Where this package might would have been kept. Speaker 1: And it says that the box appears to have some liquid damage. Speaker 1: The product itself looks undamaged. Speaker 1: So imagine like when your service team needs gets like these complaints and these emails or like service requests from customers, they have to sit, review those images and then reply back to them.
Speaker 1: Imagine being able to like process hundreds and thousands of these images at one go. Speaker 1: And this could be applied for like many different use cases. Speaker 1: Like if you order a dress or a bracelet, whether the dress is of different color or a different quality or a different material that you ordered from.
Speaker 1: Also, it's not just packaging. Speaker 1: There are so many different use cases where you can process images, generate images. Speaker 1: And now why the result we got is in Jason and why I extracted the values and made their own structured column. Speaker 1: If you're running a business, you want to understand what is the correlation between different items.
Speaker 1: Like if you're getting like hundreds and thousands of complaints, you would want to understand how are what is like getting you more complaints or less number of complaints. Speaker 1: There are so many ways you can like dissect this information. Speaker 1: So once you know where like whether a package is damaged or not, you want to be able to find if there is any correlation between the value of the order and the complaints that you are getting.
Speaker 1: Or if there is a delivery partner from where you are getting the most number of complaints. Speaker 1: Or like, is there any particular week of the day when you're delivering the package, you are getting most number of complaints or a location in a city or a particular city from where you're getting the most number of complaints.
Speaker 1: If you are able to join this data with other data sets like order details pricing delivery partner, you can drive so much more insights and take valuable business decisions and solve these complaints. Speaker 1: And hence I was getting the response in JSON so I can join this with other structured data sets or use it for other downstream processing.
Speaker 1: Now that you have analyzed the images, you want to generate a response to reply to your customer. Speaker 1: So here I'm only generating one response. Speaker 1: We looked at the LLM capability of generating like five different set of responses. Speaker 1: So we won't do that again. Speaker 1: So if you look at the again, like I'm leveraging the model and this external table where our images are and then using the ml dot generate underscore text function.
Speaker 1: Here in the prompt, I'm indicating that you are a customer service agent who has analyzed images submitted by a customer regarding a recent order. Speaker 1: Write a single email to this customer. Speaker 1: If the images are damaged, apologize for inconvenience and offer customer the assistance by full refund or replacement. Speaker 1: And if you need more information, ask them for more information and you can clearly see like all these images that needs to be processed.
Speaker 1: Our LLM has generated response. Speaker 1: And you can use these emails to reach out to those customers. Speaker 1: And again, like doing this at scale, doing this by using just like three or four lines of SQL language. Speaker 1: You can also like tune in the response that you are getting by like leveraging the parameters that are there for that function.
Speaker 1: So you can increase the temperature, decrease the temperature or the variability in the response or the randomness of the response that you are getting. Speaker 1: Let's take a look at the two responses that we are getting. Speaker 1: So for this particular image, the response generated by the the email response generated by the Gemini model.
Speaker 1: Here is thank you for submitting the image of your recent order based on the images provided. Speaker 1: It appears that the items may have been damaged during shipping. Speaker 1: We sincerely apologize for any inconvenience that may have caused to resolve the issue. Speaker 1: Would you like to or we would like to offer you a full choice with the choice of a full refund or a replacement of the damaged item.
Speaker 1: Please let us know which option you would prefer. Speaker 1: And this is exactly what a customer service team or a represent member or a representative would have done. Speaker 1: You can clearly see from the image the product is broken and you want to either reship the product or just really issue a refund for the product.
Speaker 1: Let's look at a different scenario where you have the image, but nothing seems to be damaged. Speaker 1: And the response generated here is thank you for submitting the images of your recent order based on the images provided. Speaker 1: I'm unable to determine if the product is damaged to better assess the situation. Speaker 1: Could you please provide additional images specifically focusing on the areas of concern.
Speaker 1: Clearly like show me like where do you have the concern where is the product or the packaging damaged. Speaker 1: Closer views of different angles would be helpful. Speaker 1: Once I have these additional images, I will be able to assist you further. Speaker 1: So how cool is that like you can. Speaker 1: Can really offshore all your work and leverage LLMs and focus on like other priority projects.
Speaker 1: So when you. Speaker 1: To summarize like BQML empowers more users to leverage machine learning by using simple SQL eliminating the need for specialized expertise. Speaker 1: So you have data analyst business users. Speaker 1: They are very familiar with SQL. Speaker 1: They can also begin their analysis without realizing relying on data scientists. Speaker 1: It also simplifies the process of like managing the underlying infrastructure.
Speaker 1: You don't have to provision any resources. Speaker 1: You can just do it directly within your data warehouse. Speaker 1: And it also also offers security of your data as well as the model security as well. Speaker 1: Ultimately, it provides the scalability to handle the even largest AIML workloads. Speaker 1: I'm sorry for the interruption we had, but if we I'll take a pause here.
Speaker 1: If we have any questions, feel free to post that in the chat. Speaker 1: Yeah, thank you, Savita. Speaker 1: Yeah. Speaker 1: Thank you, Savita. Speaker 1: I can check with the women in tech team on how I can share the resources. Speaker 1: I would like love to share some resources to like get started with your Gen AI use cases.
Speaker 1: Thank you.
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
Can Data Analysts Build Generative AI Workflows With Just SQL?
Nivedita Kumari of Google shows how Gemini models inside BigQuery turn customer reviews and photos into structured insight and ready-to-send replies.
In short
Nivedita Kumari, a Data Analytics Customer Engineer at Google, argues that combining large language models, a data warehouse and the cloud removes most of the cost, complexity and skills barriers that keep organizations from using AI on their own data. Using BigQuery ML and Gemini 2.0 Flash, she shows how anyone comfortable with SQL can classify review sentiment, extract themes, draft customer replies and inspect product photos without exporting data or relying solely on data scientists.
Key takeaways
Name the four barriers to AI and ML adoption (cost, complexity, expertise and accessibility) and how a combined LLM, warehouse and cloud stack addresses them.
Create a remote Gemini model in BigQuery and call `ML.GENERATE_TEXT` from SQL to classify review sentiment, extract themes and draft replies.
Write constrained prompts that return only fixed labels, booleans or JSON keys so model output stays clean for downstream use.
Set up an object table over a Cloud Storage bucket so a multimodal model can assess images inside the warehouse.
Join structured LLM output with order, pricing and delivery data to find patterns behind customer complaints.
Why AI adoption stalls
Kumari opens with a simple framing: data and AI need each other. "AI needs fuel. Think of your business data as the essential fuel for your AI." (1:10) Without AI, the valuable information hidden in stored data stays locked away.
She then turns to why so many organizations still struggle. As the speaker cited from a recent study, 71% of organizations plan to use databases integrated with generative AI capabilities, yet only 14% are able to do so, often because legacy platforms lack that support. She also cited a figure of 84% of organizations reporting that the journey from raw data to actionable insight takes far too long, largely because of fragmented tools, and named the number one pain point as training and upskilling employees to use data and AI together.
"These challenges can be further broken down into four main buckets." (4:14) The four are cost, complexity, expertise and accessibility: the belief that AI demands heavy infrastructure investment, that it is too complex for existing teams, that specialized data science skills are missing, and that it is hard to know which tool to use or where to start.
A dream team of LLMs, warehouses and the cloud
Her answer is synergy among three parts. LLMs bring natural language capabilities that unlock insight. The data warehouse supplies a structured, clean and centralized backbone. The cloud provides scalable infrastructure, including GPUs, and managed services for the entire machine learning lifecycle. "Even if you have a really good LLM, you need that database backbone in order to support your AI/ML use cases." (5:42)
On Google Cloud, she explains, BigQuery sits at the center of a unified platform that handles diverse data types, supports SQL, Python and PySpark, and brings collaboration and governance together in one console.
Bringing machine learning to the data
Kumari contrasts this with traditional machine learning, where teams export data to a separate training tool and then work out deployment, creating governance problems, infrastructure overhead and new tools and languages to learn. BigQuery ML (BQML) reverses the direction. "You do not need to export your data." (8:31)
Models are trained and deployed inside the warehouse, with support for feature engineering, training, inference, evaluation, registration and monitoring. Teams can also bring external TensorFlow models or export to Vertex AI. BQML opens access to Gemini, third-party and open-source models, and because Gemini is multimodal, the same approach works on structured data, text, images and video.
The bigger point, for Kumari, is who gets to use it. "This is a crucial advantage because it allows data analysts and other professionals who are already proficient in SQL to build and deploy ML models without having to solely rely on data scientists." (9:25)
Demo one: reading thousands of reviews with SQL
The first demo uses a table of coffee shop customer reviews with IDs, dates, review text and the platform each came from. Kumari creates a model endpoint for Gemini 2.0 Flash with a CREATE OR REPLACE MODEL statement, which she compares to creating a table. "And we can do that with just like two or three lines of SQL query." (12:51)
She then calls `ML.GENERATE_TEXT` with a tightly constrained prompt: classify each review as positive, negative or neutral, return only that word, and add no special characters or reasoning. Complaints about cold coffee and 30-minute waits come back negative; praise for a fast line and a barista who remembered a name comes back positive.
The same pattern extends to extracting themes from a supplied list, returned in JSON with a short explanation for each, and to generating five candidate replies per review that a team can choose from. "So you can see instead of having a customer service team or a product team analyze all the reviews, you can drive sentiment from hundreds and thousands of reviews in just within seconds." (15:10)
Demo two: inspecting damaged deliveries
The second demo tackles a familiar e-commerce problem: customers sending photos of damaged packages. The images live in a Google Cloud Storage bucket, and an object table created with the bucket URI makes them accessible in BigQuery. Her prompt casts the model as a customer service agent and asks for JSON with three keys (whether the package is damaged, whether the product is damaged, and a short detail), using true or false rather than yes or no. In one example the model reports intact packaging but a ceramic pot broken into several pieces; in another it flags liquid damage on the box while noting the product looks undamaged.
Why JSON? Extracting each key into its own column makes the results joinable with order value, delivery partner, day of the week or location to reveal patterns in complaints. "If you are able to join this data with other data sets like order details pricing delivery partner, you can drive so much more insights and take valuable business decisions and solve these complaints." (27:54)
A final query drafts a single email per case, offering a full refund or replacement when damage is visible and asking for closer photos from different angles when it is not. Kumari notes that function parameters such as temperature tune the randomness of the responses. She closes by summarizing that BQML lets SQL users apply machine learning without provisioning infrastructure, while keeping data and models secure and scaling to large AI and ML workloads.
Watch the talk
The Data Dream Team: LLMs, Warehouses, & Clouds, by Nivedita Kumari (34 minutes): https://www.womentech.net/video/data-dream-team-llms-warehouses-clouds
About the speaker
Nivedita Kumari is a Data Analytics Customer Engineer at Google, where she works directly with C-level executives on best-practice data architecture and machine learning solutions in Google Cloud. She has eight years of business data analytics experience at companies including Google, Meta and Uber, and holds a Master's in Business Data Analytics from the University of Illinois at Urbana-Champaign.
Questions this talk answers
Why do organizations struggle to adopt AI and ML?
What does BigQuery ML change for data analysts?
How can you run sentiment analysis on customer reviews using only SQL?
How can a data warehouse analyze images such as photos of damaged deliveries?
Why ask an LLM to return JSON?
Drafted with AI from the talk transcript. Editor review pending.
Cite this talk
Nivedita Kumari. "The Data Dream Team: LLMs, Warehouses, & Clouds." WomenTech Network, 2025. https://www.womentech.net/video/data-dream-team-llms-warehouses-clouds