Generative AI app development with Cloud SQL for PostgreSQL

Google Cloud Tech · Beginner ·📊 Data Analytics & Business Intelligence ·2y ago

Key Takeaways

The video discusses best practices for building generative AI applications using Cloud SQL for PostgreSQL, a managed database service for open-source PostgreSQL. It highlights the advantages of using Cloud SQL for PostgreSQL as a vector database, including ease of conversion, enterprise-grade features, and security compliance. The video also introduces a jumpstart solution that allows users to build a generative AI application in less than 30 minutes using Cloud SQL, Vertex AI, and GKE.

Full Transcript

[Music] we're here at Cloud next24 with bala and Shambo and we're going to talk to them about generative AI development best practices with Cloud SQL for postgress sequel thank you both so much for being here with us uh before we get into it can you give a brief introduction of yourselves what you do at Google and give us a little bit of a synopsis of your talk hi Debbie nice to be here thanks for having us my name is Bala narasimhan I'm a group product manager for cloud SQL among other things I'm responsible for the product strategy and road map for cloud SQL for postgress yeah sure I'm shambu heg product manager for cloud SQL among many things I focus on making Cloud SQL the best place to build gen application for uh developers and thanks for having me here yeah so yesterday we were uh presenting our session and the focus of our presentation was uh best practices for generative AI applications when you're using Cloud SQL for postgress as a vector database we think that uh everyone today is a gen developer right every developer is a gen developer right we're in the air of democratization of gen and we think that cloud SQL for postgress is a really nice building block for that so we were talking about how to do that easily while implementing best practices amazing so can you tell me then why is cloud SQL for postgrad SQL particularly well suited for building generative AI applications like what are the advantages yeah so Cloud SQL for postgress is a man manage database service for open source postgress and and as you know uh postgress is a very popular open source database uh there's many reasons for that there's a really strong Community that's innovating around pogress and when you adopt pogress you're able to uh adopt essentially an open source database you're not getting locked into a propri database right on top of that it's really easy to convert postgress into a database for Gen applications all you need to do is execute one command uh you install an extension called PG vector and you're often running wow what a what an easy way to get started one command y great so in terms of using Cloud SQL as a vector database instead of maybe some other specialized Vector database why would we want to do that with Cloud SQL yeah so when you're building a generative AI application and you're choosing a vector database you have two you have two options there you can build you can use a vector database that's built from the ground up that does one thing and is a Vector database or you can use a general purpose database like Cloud SQL for pogus convert it into a vector database like I said with just one command and use that and we think that's the right way to go and that's because uh you know there's many benefits to converting an operational database to a vector database firstly all your data is in there already so if you had to choose a specialized Vector database you now need to move your data from one data store to another and as you know moving data is really hard and error prone uh but the most important thing really is that when you're using Cloud SQL for postgress you're getting all the Enterprise features with it you're getting availability out of the box you're getting data protection out of the box but most importantly all the security and gance requirements around data is taken care of because you're just you're using Cloud SQL for postgress and Cloud SQL is ready for that and in contrast if you're going to use a specialized database you need to make sure it checks all those boxes so Cloud SQL could be a vector database right you don't need to go specialize that's wonderful so if I am a user and I want to get started how can I do that yeah sure so because of gen there are so many new possibilities and everyone is thinking of building gen application so when someone builds a gen application time to Market is very important you don't want to spend several months or years building a solution you want to ship something fast and then iterate on that so that's why uh we have published the jumpstar solution uh built using gke Cloud SQL for post SQL and vertex AI using this jump start solution anyone can build a gen application in less than 30 minutes so even if someone doesn't have AIML expertise it is possible to build gen application in less than 30 minutes using this jump start solution so we have published this jump start solution in uh uh GitHub it contains all the codes and templates terraform templates Etc within few clicks someone can actually get started and they can get started right today so uh we are providing the link in the description so someone can get started with this so what this jump start solution exactly does is you know it gives the data for you it you know uh creates the vector embeddings then it also creates a gen powered chatbot that can actually interact with users and help them find the right products so I really encourage everyone to give it a try and start building J application from today itself amazing yes I love jump Solutions we've recently been deploying a lot of them and there's such an easy way as you said it really lowers the barrier to entry and it gives you kind of that boiler parade of how can I get started quickly and then you can edit from there as you need to for your business that's wonderful so you've deployed this jump start solution what are some best practices to keep in mind what is it important for people to follow so that they're successful yeah so from application development perspective when someone deploys a gen application in production the observability becomes very important right so so you have to make sure that the performance is good query performance is good everything is working expected Etc so that is why Cloud SQL for post SQL has provided geni specific observability so that it is easy for anyone to see what's happening in the database what's happening in the application and then they can optimize based on that uh Cloud SQL obviously provides all the system metrics whether it is CPU utilization dis utilization Etc but apart from that specifically for Gen when you are doing a similarity search based on Vector embeddings you really want to make sure that the performance is good so because of that cloud SQL provides a data cache which helps in speeding up those queries but how do you know whether data cach is being used efficiently or not so that's why C Cloud SQL offers different metrics like how much you know data cache is used what is the hit count miscount all these metrics are available for customers along with the product itself so it's very easy to observe what is happening so it's not just about metrics you also want to dive deep into the query specific itself right like what is the query doing like is there any bottleneck Etc so for that cloud SQL has something called as like query Insight so it is a tool inside the product itself so you can go to Google Cloud console and look at query insight for in-depth observability especially it provides you visual query plan so for anyone it is easy to see what is happening inside the database and uh further optimize the uh Performance Based on that and as a Next Step uh they can also do end to end tracing from application to database when they use Cloud SQL because Cloud SQL supports such tracing abilities so it is very easy for someone to get started and also do the observability in production yes that's amazing so essentially using cloudsql having the metrics in there and the service the features in there that it has you can follow those best practices and you'll be good wonderful thank you so much for being here with us today I really appreciate it make sure to check out the links in the description to learn more about using Cloud SQL for postgrad SQL to build generative AI apps and uh have a great great rest of your next yeah thank you [Music] [Music]

Original Description

Developers choose PostgreSQL for its power, ecosystem, and enterprise-grade features. Join Debi Cabrera as she speaks with Product Managers at Google, Shambhu Hegde and Bala Narasimhan, on best practices for building apps of all kinds with PostgreSQL. Listen along as the team discusses why vector databases are great for generative AI apps, getting started with a jump start solution, and more! Chapters: 0:00 - Meet Shambhu & Bala 1:18 - How does Cloud SQL for PostgreSQL support gen AI apps? 2:07 - Why use a vector database? 3:26 - How to get started with Cloud SQL for PostgreSQL for gen AI apps 5:06 - Cloud SQL for PostgreSQL best practices for gen AI apps 7:18 - Wrap up Resources: Jump Start Solution → https://goo.gle/4d4krFC Watch more Cloud Next 2024 → https://goo.gle/Next-24 Subscribe to Google Cloud Tech → https://goo.gle/GoogleCloudTech #GoogleCloudNext #GoogleGemini Event: Google Cloud Next 2024 Speakers: Debi Cabrera, Shambhu Hegde, Bala Narasimhan Products Mentioned: Cloud SQL, PostgreSQL
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Google Cloud Tech · Google Cloud Tech · 0 of 60

← Previous Next →
1 I’m going for it #GoogleCloudCertified
I’m going for it #GoogleCloudCertified
Google Cloud Tech
2 I had to get #GoogleCloudCertified
I had to get #GoogleCloudCertified
Google Cloud Tech
3 Be better overall at what you do #GoogleCloudCertified
Be better overall at what you do #GoogleCloudCertified
Google Cloud Tech
4 Cloud Monitoring on our radar #Analysis #Uptime
Cloud Monitoring on our radar #Analysis #Uptime
Google Cloud Tech
5 Introduction to Generative AI Studio
Introduction to Generative AI Studio
Google Cloud Tech
6 How to use Github Actions with Google's Workload Identity Federation
How to use Github Actions with Google's Workload Identity Federation
Google Cloud Tech
7 Introduction to Responsible AI
Introduction to Responsible AI
Google Cloud Tech
8 Networking updates and CDMC-certified architecture
Networking updates and CDMC-certified architecture
Google Cloud Tech
9 Create and use a Cloud Storage bucket
Create and use a Cloud Storage bucket
Google Cloud Tech
10 How to digitize text from documents
How to digitize text from documents
Google Cloud Tech
11 Faster analytical queries with AlloyDB
Faster analytical queries with AlloyDB
Google Cloud Tech
12 Next ‘23 sessions and FaaS Wave
Next ‘23 sessions and FaaS Wave
Google Cloud Tech
13 Introduction to Assured Open Source Software
Introduction to Assured Open Source Software
Google Cloud Tech
14 BigQuery Cost Optimization: Storage
BigQuery Cost Optimization: Storage
Google Cloud Tech
15 BigQuery Cost Optimization: Compute
BigQuery Cost Optimization: Compute
Google Cloud Tech
16 BigQuery Cost Optimization: Select Queries
BigQuery Cost Optimization: Select Queries
Google Cloud Tech
17 Remote Field Equipment Management with Manufacturing Data Engine
Remote Field Equipment Management with Manufacturing Data Engine
Google Cloud Tech
18 Supercharging your applications with Cloud SQL Enterprise Plus
Supercharging your applications with Cloud SQL Enterprise Plus
Google Cloud Tech
19 Vector Support on our radar #GenAI
Vector Support on our radar #GenAI
Google Cloud Tech
20 Architecting a blockchain startup with Google Cloud
Architecting a blockchain startup with Google Cloud
Google Cloud Tech
21 Kubernetes and multitasking updates!
Kubernetes and multitasking updates!
Google Cloud Tech
22 GKE: Using Kubernetes Events
GKE: Using Kubernetes Events
Google Cloud Tech
23 How to configure firewall rules for Cloud Composer
How to configure firewall rules for Cloud Composer
Google Cloud Tech
24 Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Vertex AI Embeddings API + Matching Engine: Grounding LLMs made easy
Google Cloud Tech
25 Geospatial analytics on our radar #EarthEngine #BigQuery
Geospatial analytics on our radar #EarthEngine #BigQuery
Google Cloud Tech
26 Ensuring requests are set in Kubernetes
Ensuring requests are set in Kubernetes
Google Cloud Tech
27 Cloud Next 2023, Google research program, and more!
Cloud Next 2023, Google research program, and more!
Google Cloud Tech
28 How to migrate projects between organizations with Resource Manager
How to migrate projects between organizations with Resource Manager
Google Cloud Tech
29 How to run #MySQL in Google Cloud
How to run #MySQL in Google Cloud
Google Cloud Tech
30 #GenerativeAI for enterprises and #Next2023
#GenerativeAI for enterprises and #Next2023
Google Cloud Tech
31 How Google Photos scales to store 4 trillion photos and videos
How Google Photos scales to store 4 trillion photos and videos
Google Cloud Tech
32 Google Cross-Cloud Interconnect (Demo 2)
Google Cross-Cloud Interconnect (Demo 2)
Google Cloud Tech
33 GKE Cost Optimization Golden Signals: Introduction
GKE Cost Optimization Golden Signals: Introduction
Google Cloud Tech
34 GKE Cost Optimization Golden Signals: Workload Rightsizing
GKE Cost Optimization Golden Signals: Workload Rightsizing
Google Cloud Tech
35 GKE Load Balancing: Overview
GKE Load Balancing: Overview
Google Cloud Tech
36 GKE Load Balancing: Best Practices
GKE Load Balancing: Best Practices
Google Cloud Tech
37 Disaster Recovery in GKE
Disaster Recovery in GKE
Google Cloud Tech
38 How to configure IP masquerade agent in GKE Standard clusters
How to configure IP masquerade agent in GKE Standard clusters
Google Cloud Tech
39 Enable and use GKE Control plane logs
Enable and use GKE Control plane logs
Google Cloud Tech
40 Compliance in Australia with Assured Workloads
Compliance in Australia with Assured Workloads
Google Cloud Tech
41 Creating budgets and budget alerts in Google Cloud #FinOps
Creating budgets and budget alerts in Google Cloud #FinOps
Google Cloud Tech
42 Cloud SQL Enterprise Plus on our radar #mySQL
Cloud SQL Enterprise Plus on our radar #mySQL
Google Cloud Tech
43 What's Next for Google Cloud?
What's Next for Google Cloud?
Google Cloud Tech
44 How Loveholidays scaled with Contact Center AI
How Loveholidays scaled with Contact Center AI
Google Cloud Tech
45 What is fleet team management in GKE?
What is fleet team management in GKE?
Google Cloud Tech
46 Troubleshoot VPC Network Peering
Troubleshoot VPC Network Peering
Google Cloud Tech
47 Introduction to DocAI and Contact Center AI
Introduction to DocAI and Contact Center AI
Google Cloud Tech
48 Cloud Run Direct VPC egress explained
Cloud Run Direct VPC egress explained
Google Cloud Tech
49 Database deployment options in GKE
Database deployment options in GKE
Google Cloud Tech
50 Analyze cloud billing data with #BigQuery
Analyze cloud billing data with #BigQuery
Google Cloud Tech
51 Tips to becoming a world-class Prompt Engineer
Tips to becoming a world-class Prompt Engineer
Google Cloud Tech
52 Serverless is simple. Do I need CI/CD?
Serverless is simple. Do I need CI/CD?
Google Cloud Tech
53 Accelerating model deployment with MLOps
Accelerating model deployment with MLOps
Google Cloud Tech
54 How Hawaii's Department of Human Services scaled with CCAI
How Hawaii's Department of Human Services scaled with CCAI
Google Cloud Tech
55 Pricing API on our #Radar
Pricing API on our #Radar
Google Cloud Tech
56 How Recommendations AI for Media can boost customer retention
How Recommendations AI for Media can boost customer retention
Google Cloud Tech
57 Troubleshooting: Node Not Ready Status
Troubleshooting: Node Not Ready Status
Google Cloud Tech
58 One weekend until Cloud Next 2023!
One weekend until Cloud Next 2023!
Google Cloud Tech
59 #GoogleCloudNext starts tomorrow!
#GoogleCloudNext starts tomorrow!
Google Cloud Tech
60 #GoogleCloudNext will be demand!
#GoogleCloudNext will be demand!
Google Cloud Tech

Build generative AI applications using Cloud SQL for PostgreSQL and Vertex AI. Learn how to use a jumpstart solution to get started quickly and best practices for observability and performance optimization.

Key Takeaways
  1. Install PG Vector extension in Cloud SQL for PostgreSQL
  2. Use the jumpstart solution to build a generative AI application
  3. Configure data cache and query insight for observability
  4. Optimize application performance using metrics and tracing
💡 Using Cloud SQL for PostgreSQL as a vector database provides ease of conversion, enterprise-grade features, and security compliance, making it a suitable choice for building generative AI applications.

Related Reads

📰
Raincloud Plots with PtitPrince: See What Your Data Is Really Doing
Learn to visualize data distributions with Raincloud Plots using PtitPrince in Python, enhancing data understanding
Medium · Python
📰
Confused Between Data Science, Data Analytics, Cloud Computing, DevOps, Data Engineering, and Generative AI? Here's How to Choose the Right Career
Learn how to choose the right career between Data Science, Data Analytics, Cloud Computing, DevOps, Data Engineering, and Generative AI based on your background, interests, and goals
Dev.to AI
📰
Data Science with AI — Join IDSA Janakpuri Today
Unlock your career potential in data science with AI by joining IDSA Janakpuri's course
Medium · Data Science
📰
Data Science with AI — Enroll Now at Lonestar Academy Janakpuri
Learn Data Science with AI at Lonestar Academy Janakpuri, a trusted institution with 15,000+ learners
Medium · Data Science

Chapters (6)

Meet Shambhu & Bala
1:18 How does Cloud SQL for PostgreSQL support gen AI apps?
2:07 Why use a vector database?
3:26 How to get started with Cloud SQL for PostgreSQL for gen AI apps
5:06 Cloud SQL for PostgreSQL best practices for gen AI apps
7:18 Wrap up
Up next
How AI, MCP & Tableau Extensions Are Transforming Analytics
Salesforce Product Center
Watch →