Build gen AI features powered by your data with Firebase and PostgreSQL

  Рет қаралды 10,084

Firebase

Firebase

Күн бұрын

Learn how Firebase Data Connect uses PostgreSQL to increase velocity at every stage of app development including powerful new gen AI capabilities with Genkit. Learn how tool calling and structured output can make programming with LLMs feel more like programming with any other API. Learn how to safely use your application's data to drive AI-powered experiences.
Speaker: Michael Bleigh
Watch more:
Check out all the Web videos at Google I/O 2024 → goo.gle/io24-w...
Check out out all the Firebase sessions from Google I/O → goo.gle/io24-f...
Subscribe to Firebase → goo.gle/Firebase
#GoogleIO
Products Mentioned: Firebase Data Connect, Firebase Genkit, Firebase App Hosting, Remote Config
Event: Google I/O 2024

Пікірлер: 30
@mralek5720
@mralek5720 4 ай бұрын
Amazing demo! Really impressed by the seamless integration between Data Connect & GenKit and the associated dev tools. This is hands-down the easiest way to integrate RAG into an app I've seen, well done! 👏
@michaelbleigh8737
@michaelbleigh8737 4 ай бұрын
Thanks, that's kind of you to say!
@rahulgupta7720
@rahulgupta7720 3 ай бұрын
Very Informative tutorial! Genkit is truly the future of building AI driven apps. Would love to get much more tutorials in the future
@missedme0063
@missedme0063 Ай бұрын
VERY cool demo, thank you!
@robinryf5
@robinryf5 4 ай бұрын
Very awesome introduction! This is doable for everybody who is interested and eager to learn. Thank you. I wonder what other use cases there could be besides search 🤔
@kevingrondin974
@kevingrondin974 4 ай бұрын
@Michael Bleigh you can share your code on your github ?
@michaelbleigh8737
@michaelbleigh8737 4 ай бұрын
A version of the Compass app will be published to GitHub in the coming weeks (I think)...stay tuned! You can also go through this codelab which covers much of the same content but uses Firestore (since it's generally available): firebase.google.com/codelabs/ai-genkit-rag#0
@samario_torres
@samario_torres 3 ай бұрын
is this easy to integrate with cloud firestore? is there a simple way to connect my firestore database to data connect and have both databases collecting data?
@michaelbleigh8737
@michaelbleigh8737 3 ай бұрын
Firestore integration is something we're looking at for the future. You can vote on it here: firebase.uservoice.com/forums/948424-general/suggestions/48434618-cloud-firestore-datasource
@samario_torres
@samario_torres 3 ай бұрын
@@michaelbleigh8737 awesome thank you for replying, just voted!
@nickjunes
@nickjunes 4 ай бұрын
Is the error you're getting because you already did a vector comparison search with your searchDestinations function? If not why do you need a retriever if you already did a vector comparison search in searchDestinations with plain text? It seems like the vector comparison search can already understand plain text. What am I missing?
@michaelbleigh8737
@michaelbleigh8737 4 ай бұрын
The error was actually because I forgot to alias deatinations_embedding_similarity to "destinations". The database doesn't store embeddings as text or have the ability to natively query text against vectors -- instead you have to use an embedding model to convert text into a vector then compare vector to vector. That's what _embed does.
@nickjunes
@nickjunes 4 ай бұрын
@@michaelbleigh8737 So what does destinations_embed_simlarity do then? At 26:44 you pass it a query with plain text and are able to get some results from the database. How can you do that without first converting the query into a vector?
@michaelbleigh8737
@michaelbleigh8737 4 ай бұрын
@@nickjunes destinations_embed_similarity performs a vector similarity search, compare_embed generates an embedding from the provided query.
@vijayjangid8967
@vijayjangid8967 4 ай бұрын
Finally!!!!!!!!!!!!!!!
@mohamedkarim-p7j
@mohamedkarim-p7j 4 ай бұрын
👍
@darthvader4899
@darthvader4899 4 ай бұрын
what's that .prompt file? is it special to idx?
@michaelbleigh8737
@michaelbleigh8737 4 ай бұрын
It's part of the Firebase Genkit framework, see firebase.google.com/docs/genkit/dotprompt
@darthvader4899
@darthvader4899 4 ай бұрын
@@michaelbleigh8737 really cool. Is this going to be standardized?
@ruandupreez6144
@ruandupreez6144 4 ай бұрын
His shirt?
@__user__name__
@__user__name__ 4 ай бұрын
Despite the bit of dirt on his shirt, he carried on without a care. That's what kept me watching the entire video and earned my respect for him.
@k-c
@k-c 4 ай бұрын
Your priorities?
@JohnMcclaned
@JohnMcclaned 4 ай бұрын
I'd trust a dev with stains on their shirt over a corporate goon any day of the week.
@jerryf196
@jerryf196 4 ай бұрын
how do you generate the embeddings? You ran a script but does it use the vertex firebase SDK?
@mbleigh
@mbleigh 4 ай бұрын
The embeddings were generated using the Vertex AI API through Firebase Genkit.
@jerryf196
@jerryf196 4 ай бұрын
@@mbleigh Thanks. I got it running with my project. Is it possible to add words that refine searches. For example: good exploration board game that plays best at 2 players. In my firestore data, I have a field that contains number of player count
@jerryf196
@jerryf196 4 ай бұрын
@@mbleigh also for the dreamVacation.ts how do you run this flow? Like thiis? const response = await runFlow(dreamVacationFlow, 'Some input');
@mbleigh
@mbleigh 4 ай бұрын
@@jerryf196 runFlow(dreamVacationFlow, {imageUrls: [...], description: "..."})
@mbleigh
@mbleigh 4 ай бұрын
@@jerryf196 to do something like that you'd probably want function calling - you use defineTool to create a tool with parameters like "maxPlayers" then map that to a Firestore combined vector + filtering query. It looks like we don't have great docs for function calling yet for Genkit, will take note to improve that.
What's new in Firebase for building gen AI features
42:19
Firebase
Рет қаралды 18 М.
大家都拉出了什么#小丑 #shorts
00:35
好人小丑
Рет қаралды 101 МЛН
Firebase has SQL: Introducing Data Connect
16:29
Firebase
Рет қаралды 62 М.
The AI-Assisted developer workflow: Build smarter with IDX and Chrome DevTools
36:14
18 Weird and Wonderful ways I use Docker
26:18
NetworkChuck
Рет қаралды 148 М.
Getting started with Genkit
30:48
Firebase
Рет қаралды 8 М.
What are AI Agents?
12:29
IBM Technology
Рет қаралды 477 М.
I tried 5 Firebase alternatives
10:31
Fireship
Рет қаралды 793 М.
"The Life & Death of htmx" by Alexander Petros at Big Sky Dev Con 2024
23:01
Montana Programmers
Рет қаралды 60 М.
Build generative AI agents with Vertex AI Agent Builder and Flutter
40:04
Google Cloud Tech
Рет қаралды 20 М.
The Gemini API: From prototype to production
44:36
Google for Developers
Рет қаралды 14 М.