Sponsored by: Firebolt | The Power of Low-latency Data for AI Apps
Summary
- RAG with SQL analytics: This video demonstrates how combining retrieval-augmented generation with low-latency SQL analytics enriches AI responses with instant, data-driven insights.
- Interactive AI applications: Using Firebolt's low-latency SQL capabilities with AI applications creates seamless, responsive user experiences with fresh, accurate intelligence.
- Improved decision-making: The combination delivers speed, accuracy, and trust by grounding AI responses in current relational data rather than static knowledge bases.
Sponsored by: Firebolt | The Power of Low-latency Data for AI Apps

Talk by Cole Bowden, Developer Advocate, Firebolt (Sponsor Speaker)
Retrieval-augmented generation (RAG) has transformed AI applications by grounding responses with external data. It can be better. By pairing RAG with low latency SQL analytics, you can enrich responses with instant insights, leading to a more interactive and insightful user experience with fresh, data-driven intelligence. In this talk, we’ll demo how low latency SQL combined with an AI application can deliver speed, accuracy, and trust.
Here’s more to explore:
Production ready data pipelines for analytics and AI: https://www.databricks.com/solutions/data-engineering
The Big Book of Data Engineering: https://www.databricks.com/resources/ebook/big-book-data-engineering-2nd-edition
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
FAQs
How does combining RAG with SQL analytics improve AI responses?
Traditional RAG uses static embeddings from knowledge bases. Adding low-latency SQL analytics lets the AI system enrich responses with current, data-driven insights from live relational data.
Why is low-latency SQL crucial for interactive AI apps?
Users expect interactive experiences with immediate feedback. Low-latency SQL enables AI applications to query fresh data and return insights in milliseconds, creating responsive, engaging user experiences.
Why is low-latency data access critical for real-time AI and analytics?
Low-latency data access enables AI systems to make decisions based on current information rather than stale snapshots, improving recommendation quality, fraud detection accuracy, and operational responsiveness. For analytics, low-latency queries allow exploratory analysis and dashboard responsiveness that accelerate insight discovery and decision making. Systems that optimize for sub-second query response enable interactive workflows that were previously impossible with traditional batch-oriented data warehouses.
How do modern platforms balance throughput and latency for real-time workloads?
Real-time data platforms use columnar storage formats, aggressive caching, and specialized indexing to deliver sub-second query response on large datasets while maintaining analytical capabilities. Multi-tiered architectures layer hot data in fast storage with older data in cost-optimized tiers, enabling organizations to maintain query performance as data volume grows. The combination of in-memory caching, query result caching, and intelligent data pruning techniques allows platforms to deliver interactive performance for exploratory analysis and AI inference.
How can organizations build low-latency feature stores for real-time AI inference?
Real-time feature stores combine batch feature computation with online serving that delivers features to inference endpoints within milliseconds during model scoring. The platform manages the complexity of synchronizing batch and real-time feature computations, handling feature refresh schedules, and ensuring consistency between training and serving environments. This architecture enables AI systems to incorporate up-to-date features in decisions without the latency overhead of computing features at inference time.
Full transcript
Yeah, I think I'm going to go ahead and get started. So, hello everyone. Welcome to the University NI Summit. Uh, I'm really grateful that you took the time to come to this talk when the expo hall is fresh and new and open for the first time. It's all very exciting out there. So, I appreciate it that you're you're here with me to listen about data, AI, and interactive experiences with AI. Um, so forward-looking statement.
You're going to get to see a lot of these over the course of this conference. I think um it's aboutformational purposes. I don't represent data bricks, some other stuff. Um, also a reminder to please complete your surveys. Uh, your feedback has a direct impact on how they curate the event in the future. Um, so you'll receive a survey for attending this session. Give me five stars, please. I don't actually know how the review works, but you know, actually put in the honest review, not five stars.
Looks like there's not a full review like that. In any case, uh, onto the talk. So, I'll introduce myself first. I'm a software engineer, data engineer, and developer advocate at a company called Firebolt. Um, we're a low latency cloud data warehouse and query engine. Um, we're going to be talking about the query engine side of things, mostly while we're here today. Um, and I'm here to talk to you about the power of using low latency for AI applications and how you can make an AI application an interactive seamless experience.
So, an overview of this presentation. Uh, first up, I'm going to overview what Rag is. Uh, hopefully we all know what this is. It's been around for a little while now. It's not a foreign concept. Uh I'm going to discuss using SQL for rag and using relational SQL databases like something in data bricks uh as a backing for an AI application that has an interactive user experience. I'm going to discuss the power of low latency where firewalls can slot into this picture and how getting really accelerated low latency queries can make that user experience on an AI application really really good.
Uh and I'm going to demo this and show it in action as well as open up to Q&A. Um, we're gonna have to figure out the logistics of Q&A in a bit, but we'll get there when we get there. For starters, uh, defining RAG and what it does. Um, more or less it's it's AI and data. Um, when you're using generative AI, you know, they're a predictive model that tries to guess what's coming in next. Uh, and you can supplement them with any kind of additional information.
Um, I think most people in this room have probably done it. If you use chat GPT and you've uploaded a file to it and said, "Please read this file." That's rag. you're retrieving information out of that file and then generating output based off of that. Um, it's not magic. It's pretty simple a lot of the time. Um, but it's a really useful and strategic tool for getting more specific insights related to a domain. Uh, it can be more current.
You know, it's a model is trained and then it only knows the world up to that point. So, if you wanted insights as to events or data that you acquired yesterday or last week, your model won't have awareness of that without using Rag as a strategy. Um, it's controllable. you can kind of tell it to focus in on the exact data you're interested in hearing about and you can trust it more. You know, you're going to have less hallucinations.
You're going to have more accurate insight into your data. Uh, and that's a really powerful idea for making sure that your generation is what you want it to be and not just trusting the general non-domain specific world of generative AI. So the question then is why am I going to suggest using SQL for rag? Um, I think in the AI space, it's a lot of AI applications want to use vector databases. You know, they want to tap into similarity search and use comparisons to generate this predictive output.
Um, I shouldn't have to convince you that SQL is everywhere given that we're here at Data Brick Summit where everyone's probably either using or looking at using data bricks. You know, you've got relational data all over the place whether that's in Delta Lake or Unity Catalog or whatever else. Um, so that I think we're on board with here. Um, but SQL also does some things that vector DVs aren't good at. Um, you can do aggregations faster.
So if you're trying to do statistical analysis on data, whether you're looking at medians or averages or percentiles, sums, distinct counts of elements, uh, all of that is a lot quicker and more efficient to do with a SQL database. Uh, the same is true for timebased analysis with indexing. uh you can filter on events that happen on a specific date with high reliability, speed, and accuracy. Uh which is really handy. Um SQL's multiunctional, you know, if if you're tapping into your SQL database or like a Delta Lake table.
Um it's multiunctional. You know, you can use Delta Lake for more than just AI. You can use it for everything. Uh you can use Unity for more than just AI. You can use it for everything. Um and that means that you have a lot of versatility. You know, you're not standing up multiple different databases and different systems, which incurs a higher total cost of ownership. you're going to have to have pipelines and ETL connecting these things.
It's going to take a little more engineering work to support you know a normal relational database and also a vector database for AI workloads. Uh and also uh traditional relational databases are fully asset compliant whereas vector DBs aren't which means that they can be productionized. You can write to them as part of your business. You don't have to worry about things breaking, exploding, duplication of data, uh errors during transactions.
Uh you know it's it's a triedand-true technology that just works a little smoother. Um, so Zoho has these benefits that make it more reliable, uh, make it simpler, make it less expensive. Um, but the downside you might think is, well, SQL's kind of slow sometimes, especially for AI related applications. And that is where I'm going to bring in Firebolt. So Firebolt brings ultra low latency SQL to your data bricks tables and to SQL itself.
Um, Firebolt is able to connect to tables managed in UD catalog and deliver 10 millisecond query latency on those tables. Um, it goes very very fast and that powers kind of these seamless interactive human use cases where if you're asking a question of a model or you're running a query and you get a response back in 10 milliseconds, you hardly even realize that you've done a round trip with a SQL query into your database and back again.
And for a user experience or an analyst experience or anyone trying to understand this data and run an AI conversation, that low latency makes sure that this conversation keeps you in tune. You know, if if you're asking a question and running a SQL query takes 30 seconds or 45 seconds, it's going to take you out of the conversation. It interrupts your flow. You can't deliver that to users. You can't deliver that to customers.
Um that's just simply not going to be acceptable. And so when you use Firebolt, you get that interactivity of really low latency queries. Uh we have scalability. Uh Firebolt can scale up to handle thousands of queries per second. Uh which means that if you have many users using an AI application, uh it's not going to be a bottleneck. You know, you can use a relatively inexpensive firewall query engine connected to Uni Catalog to handle many many concurrent users at the same time and they'll all get that low latency.
Uh and it's also really efficient by leveraging caching and doing as little work as possible. Uh it's able to save on cost and these thousands of queries aren't going to be very expensive. They won't run up a massive bill. um you're charged for uptime rather than per query. Uh which means that the more users are running similar queries uh the more Firebolt will speed up and the less it's going to charge you relative to other solutions.
So Firebolt can plug into Unity catalog. It actually doesn't write to Unity Delta Lake or Iceberg. Uh it's it's read only on top of these services. So you should still use your data bricks account. You should still use data bricks for managing for ETL for writing your data. uh and then firebolt when you need low latency or serving layer on top of this uh it'll go very very fast. So I have a demo to showcase this. Uh I am going to provide a rather transparent caveat that my demo actually is not on Unity catalog.
Uh Firebolt does have its own storage format as well that I'm going to be using for this. Not because it's faster, but because I'm using some data that was generously provided to us by one of our customers. Uh and we are not allowed to write that into data bricks. Um, so we didn't get permission to do that. So I will be using data in Firebolt itself rather than data bricks. But I'm going to say if you want to see a demo in action showing off the same latency I'm talking about here today on a data bricks uh unique catalog table, uh we have our VP of engineering, Benjamin Wagner, giving a talk tomorrow at the same time in uh a normal room where he will be showing off how he managed to achieve this low latency and demoing that in action.
Um and that's kind of more generic. It's not AI tailored, but uh that'll be a really compelling talk if you're curious about how we made this work. Um so for now, I have to ask you to generously pretend like I'm quering a Unity catalog table as part of this demo. Uh it would behave exactly the same way, but I'll swing into now an application and the text stack for this is this is just a user interface and I'm going to be sending a message that's going to do an API call to chat GPT 40 model.
That model is connected through a tool called chain lit. It knows to generate SQL based off of the natural language I provide. With that SQL, it will run that SQL on Firebolt as the backend query engine. Firebolt will return results to my application. My application will provide those results back to 40. 40 will interpret those results and then generate a response. So this query is when I send a message, it's going to go from my laptop over the Wi-Fi to 40. from 40 back to my laptop, from my laptop to Firebolt, from Firebolt back to my laptop again, and then from my laptop to 40.
We have a lot of network jumps in here. And hopefully the conference Wi-Fi is not going to make this very slow, but I can ask what data is available. And then we'll see this data set provided to us by one of our customers. Um, this is web traffic data from a single day in August of 2024, so last fall. Uh, you see that this is about 7 tab of data. This is not a toy data set. This is a real amount of data that we're looking at here.
Um, it's a pretty large table with a lot of different information about people who are using search engines and then click click data and ad data as well. So, we can ask a simple question of this data set like what were the top 10 search engines. And perhaps unsurprisingly, once we generate our result, the Wi-Fi is being slow, but there we go. Uh, you can see the top search engine in the world is Google. um that hopefully is expected.
Um and it's it's lapping all of the other search engines in the world. You can see as we go down this list, you know, we're looking at a bunch of different search engines being of course it's Microsoft's competitor. Yandex popular in Russia. Yahoo Japan, I think you can guess where that's popular. Duck. go for those who are privacy aware. I believe neighbor is popular in South Korea. So you see like kind of these global search engines popping up here.
And the cool thing about this demo is I can actually go look at the query that I ran to get this information. So you can see I was selecting my search engine. My count is usage count from this table grouping by search engines. You can see that this query read that's kilobytes, megabytes, gigabytes in 02 seconds uh and returned these results back and then chatb generated a message on them. But we can get more specific and we can do some more exploratory analysis on this data and we can ask for example what were the top 10 keywords that drove traffic to airbnb. com and it's going to run another query and we're going to see clicks given to Airbnb based on what people are searching.
Um once again we can go look at the query that was run. You see it took 08 seconds this time. So, the latency in this stack was mostly conference Wi-Fi. If you're in a quick office with speedier Wi-Fi or on an Ethernet connection or even running an application in the cloud, then that Wi-Fi latency goes down. And this starts to become very, very, very quick. Um, and Firebolt makes sure that it stays that quick. Uh, but you can see here, you know, people are searching a variety of different terms to get to Airbnb.
You can see Airbnb is of course the most common. That's not a surprise as well. Sometimes people put a space in there. Uh, sometimes people search RBNB, which is a little interesting to me because I don't know what that is. Uh, Verbbo, one of their competitors, is also high up on that list. We'll explore that a little more. And then you see some various less popular results. Um, this one probably an artifact of the data set being from a single day.
I'm not sure what went on there. Maybe some bot activity. But in any case, we can drill deeper into this. Um, first of all, maybe we want to use the power of AI to just ask a simple question like what is RBNB? Is that a music genre or what? Um, and you know, you all might have your guess, but the joy of AI is that though this is a SQL backdra application, I don't have to use my data for everything. I can just use the model to give me some insight as to understanding my data set.
It's it's not always running SQL. And here it's going to say, yeah, it's like a misspelling or informal abbreviation. Um, I'm not sure who's doing this, but model seems to think that's the most likely culprit here, and I'll buy it. Uh, I don't know what else I would think. Um, we can also continue to do some analysis. you know, it's it's people searching Verbbo and clicking on Airbnb is a little interesting. Um, I personally, if I search Verbbo, I'm probably clicking on the Verbbo website.
So, what's causing that to happen? And we can drill into this data a little more by asking questions like organic traffic. So, inorganic click is when you search for something and you just click on it in the normal search engine results. Inorganic traffic is if you've ever searched something on Google and you know, you've seen promoted or ads in the top three searches. Um, I'm sure we're all used to this. every time we search for a data product and some competitor's data product pops up as the search result as a as a first result um from an ad and you know we can ask what percentage of traffic for each of those keywords was organic and when I run this we're going to run another query and it's going to give me a breakdown on all of these these keywords and what you can see here is interestingly uh you know they're they're running ads on their own name.
Airbnb wants to make sure that when people search for them, that's what they're clicking on. But even more than that, they're running a ton of ads on the Verbbo keyword. Um, when people Google Verbbo, it's some percentage of the time they're going to click on Airbnb. And almost all of the time that happens, it's because Airbnb is running advertisements on the Verbbo keyword. They want to steal their competitor's traffic.
Um, this is a real data set. This is proof. you know, if if you ever wanted to do some competitive intelligence in the like home sharing market, you now know that Airbnb is is advertising on the Verbbo keyword. That's real. Um, and perhaps unsurprising again because it's kind of their business to do that. Um, and again, I want to iterate or reiterate like this query ran in 140 milliseconds. The human blink of an eye is 150 milliseconds.
Um, so we're able to power this kind of interactive chat conversation by running really, really, really fast SQL in a way where accessing your data is basically not providing any slowdown whatsoever. Uh, and this scales again to many many many users and this is the power of Firebolt on top of your relational data and how it can power interactive applications. So I'd like to thank you all for coming to my talk. Uh, I will be in the Firebolt booth.
It's like right over there for the rest of the entire conference. So, if you'd like to talk more in person, uh, please feel free to swing by. And again, I'd like to remind you to please also go to talk tomorrow on how Fireball got this low latency on iceberg in Unity. It is a super cool talk. Uh, I'm really excited for it and I'd really encourage going there because you're going to learn a lot about how he engineered this.
Thank you everyone.
Learn more about the Databricks Data and AI platform.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.