How an Open, Scalable and Secure Data Platform is Powering Quick Commerce Swiggy's AI
Summary
- Swiggy's quick commerce scale: Serving 13 million users across 653 cities with 196,000 restaurant partners requires a secure, scalable AI platform handling millions of predictions per second.
- Apache Kafka and real-time streaming: Swiggy's tech stack uses Kafka to ingest millions of events, powering real-time recommendations and optimization for quick commerce delivery.
- Open, scalable architecture for predictive analytics: The platform supports diverse ML use cases—delivery time prediction, restaurant recommendation, inventory optimization—at unprecedented scale.
How an Open, Scalable and Secure Data Platform is Powering Quick Commerce Swiggy's AI

Talk by Akash Agarwal, Principal Engineer, Swiggy ; Vasan Vembu Srini, Sr Solutions Architect, Databricks
Swiggy, India's leading quick commerce platform, serves ~13 million users across 653 cities, with 196,000 restaurant partners and 17,000 SKUs. To handle this scale, Swiggy developed a secure, scalable AI platform processing millions of predictions per second. The tech stack includes Apache Kafka for real-time streaming, Apache Spark on Databricks for analytics and ML, and Apache Flink for stream processing. The Lakehouse architecture on Delta ensures data reliability, while Unity Catalog enables centralized access control and auditing. These technologies power critical AI applications like demand forecasting, route optimization, personalized recommendations, predictive delivery SLAs, and generative AI use cases.
Key Takeaway:
this video explores building a data platform at scale, focusing on cost efficiency, simplicity, and speed, empowering Swiggy to seamlessly support millions of users and AI use cases.
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
What scale of operations does Swiggy manage?
Swiggy serves ~13 million users across 653 Indian cities, coordinates with 196,000 restaurant partners, and manages thousands of SKUs—generating millions of prediction requests per second.
How does Apache Kafka enable Swiggy's real-time platform?
Kafka ingests event streams from restaurants, delivery partners, and users, enabling real-time feature engineering and ML predictions for recommendations, delivery routing, and inventory management.
What will enterprise data platform architecture look like in 2030?
This video shows how Swiggy built a data platform handling 13 million users across 653 cities, processing 10-20 billion events daily and 1 million+ predictions per second. The architecture combines Apache Kafka for real-time streaming, Apache Spark on Databricks for analytics and ML, Apache Flink for stream processing, and Delta Lake for reliability—demonstrating the lakehouse approach that enterprises are adopting at scale. This unified architecture enables AI applications like demand forecasting, route optimization, and personalized recommendations, showing the convergence of real-time and batch analytics on a single platform.
What ML models power quick commerce optimization?
Swiggy uses delivery time prediction, restaurant ranking and recommendation, user preference modeling, inventory demand forecasting, and dynamic pricing—all trained on real-time event data.
Why is platform security critical for Swiggy's operations?
Swiggy manages sensitive user data, restaurant information, and transaction records—security and privacy are essential for trust, regulatory compliance, and protecting the ecosystem.
Full transcript
Okay, welcome folks. Um, I'm going to pass the mic on to Akos and Vasan to present how an open, scalable, and secure data platform is powering quick commerce Swiggies AI. Let's give it up for them. Thank you, Rohit. All right. So, good morning everyone. Hope uh everyone had a chance to catch up on breakfast. Otherwise, um a quick guess what Swiggy is doing. You can order it and get it in like 10 minutes. Uh so. I'm a senior solutions architect with data bricks.
Uh I have Akash here with me who is a principal engineer with Swiggy. So a quick agenda items that we want to cover is um quickly start uh with the introduction about uh what Swiggy is doing and what is the scale that it is handling and uh we will drill down to a little bit on u uh what they wanted from a data platform and their architecture and then we will also see um how AI is leveraging the data platform. Uh we probably open up uh for question and answers like soon after we are done.
So um please feel free to ask questions. Uh hold on to your questions till then. Uh so over to introduce Swiggy. Hey guys, good morning. I hope you all are awake now. Yeah. So as V was mentioned right like I'm representing Swiggy and uh what Swiggy does is you have Uber Eats and Doores in US right now in uh we have Swiggy and Zomat and some other companies in India and the difference here is that we have 1. 5 billion population in India and we will talk about the numbers and all right like how it works and all those things.
So the first thing is uh like you know what we do is uh we are uh delivering food as well as groceries and also trying out few other uh business lines in Swiggy and uh so if you see from the business side right like we are connecting the dots in the meaning we have restaurant partners from where the order kind of you know gets prepared. We have delivery partners who kind of pick the order and give it to the customer.
So we are connecting these three dots customer with delivery partner and restaurant partners. And at the same time we do have groceries where instead of delay a restaurant partner it would be a dark store which is owned by Swiggy as of today. So that is our business model but that is what people look at from the outside but what we are actually is something different. Why customer comes to Swiggy customer comes to Swiggy?
Because you know we provide them a very very unique you know it's a very very unique experience to that customer. We are very reliable and we are very transparent to the customer and hence customer choose to us and if you look at our number I'll just give it to the next you can just look at the numbers how much you know we are kind of delivering so in September 24 I cannot give the right uh today's number because it comes under UPSi but we have already ordered 3.
5 billions order so far in previous year September itself we are live in 700 plus cities 500k delivery partners And uh if you just look at the delivery partners plus cities, right? Can you just do a random guess like how many times Swiggy delivery partners you know kind of uh travel the entire globe? Any random guess? Just imagine like you know one delivery partner is going like how much 7 miles around 10 kilometers per day.
So it is thousand plus times we are crossing the entire globe. That is the scale what we are operating in. And if you look at the numbers right like we process almost 10 to 20 billion events per day, thousand plus streams, thousands of jobs. And when it comes to predictions, right, like we do 1 million plus predictions at a scale at a second. Cool. I'll go to the next and I'll you know like tell you the challenges. What all challenges are there?
How did we figure out like you know how are we solving this with open scalable? how did we build that platform and how AI is kind of helping us. So the second thing here is tackling Swiggy scale. So here if you see what we actually need is both the things right like real time as well as the batch. So why we need real time because asan mentioned right like most of our deliveries we complete in 10 minutes. So guys just imagine right like when you go to a coffee shop Starbucks or something right you kind of go look at the menu and then order you spend some time our delivery partner doesn't even have a time to think because our entire journey of order is under 10 minutes in most of the cases so I know I was like just give you an example so we were discussing like few thousands years ago when someone used to feel hungry they used to go and hunt to a time where you just order and then you know you just uh wait for your order to get delivered.
In fact, you spend more time to order than your order comes to you in India. Now, so, so to get that done right, we need lot of real time and batch related use cases. So, real time meaning when you open the Swiggy app, right, at the same time, we kind of provide you that how much time would it take for us to deliver your order. So, that is called predicted SLA for that as well as like you know how how you know our delivery partners are doing in the ground. what is the ground situations we have to optimize our delivery partners meaning let's say in one part of the city imagine like in San Francisco right so you have SFO and let's say you know your uh San Jose now imagine that for some reason I mean you know lot of diversity would be here as well right maybe in SFO you have a lot of bachelors versus in San Jose maybe let's say lot of family members are there right let's say some events are happening so in India we have you know events like IPL new year and all those things that time our order just go like you know uh it it it will be typically 10x of what we generally see the peak so for that you know we have to prepare a lot of things in the ground and that is where this real-time metrics help us so an example would be let's imagine that I have a lot of delivery partners in San Jose and there the number of orders are relatively less then on the ground the delivery uh like you know the manager can kind of shift few delivery partners from there to SFO and how they will do it they will just open Sanusa restaurants from SFO so that some orders can come from there to here and then that delivery partners can stay here itself.
So we do a lot of things here like I mean I'm just giving one or two example but there are almost like thousand plus metrics and you know all these metrics are in real time and at the same time lot of things are also in the batch side. We need both the things together and then like as I mentioned PSLA customer partner behavior new data uh and yeah so as I speak right like new cities new menu new catalog gets added so all those things we have to do at runtime without involving any of us right then uh business team as I mentioned real need realtime data uh and we are very very hyper hyper local business meaning if you see India right India is known for its culture if you go from one place to another place it's entirely different Like just a simple example from north to south if you go in south you get you know lot of orders related to let's say idli something idli sambar and those kind of food uh but if you go to north it would be more of a bread kind of items samosa kachori and those kind of food within like like you know one city as I mentioned right like let's say if some area is very bachelor heavy area versus in few places you have lot of family members then the difference will be there bachelors typically order a lot of coke pepsi you know chips and so on versus family members will order a lot of uh pulses and all those kind of items.
So like you know we are very very hyper local. We have this data we have trend our models we have you know uh ensured that whatever people are looking they are seeing that items uh and you know right availability is there. Cool. Uh so if you ask me in Swiggy right especially from the tech side what we are looking then we have three major pillar. One is faster, second is simpler and third is cost efficient is meaning cheaper.
So this is the backbone of Swiggy in tech team. When I say faster, even obviously since our most of the delivery is happening in 10 minutes, so we have to be a fast. Let's say if our metrics is available after an hour or two, right? Then it doesn't actually add a lot of values. So how our order looks like, right? In fact, in fact when we talk about our audits, right? We never talk about OPD like how many orders we are doing in a day because what happens in we are you know we are very unique business where lot of our orders comes only during the lunch and dinner peak.
So let's imagine you know we are getting a random guess like let's say 100 orders per minute. As soon as the lunch time comes, our order will spike from 100 to let's say 10,000 per minutes. Sudden jump and in two hours most of the orders will be done again. You we will be back on 100 to 200 per minutes. Again in the evening let's say around 7:30 8:00 our order will jump from 100 to again 15,000 per minute and then it will come down.
So all our uh metrics whatever data we are having it has to be as real time as possible. In fact, most of the data source has to be available in couple of seconds to take the right decision. So that's the reason faster is the important key. Second is simpler because we are talking about you know like uh like multiple business line, multiple cities, hyper hyper local business, right? So our system has to be simpler otherwise we will need a lot of workforce to manage that especially from the day to side right once the software is deployed in the uh in in the system.
So that is the second thing and third is cheaper. Cheaper meaning uh cost efficient. So like you know uh before adding any new features even when we open a new business lines we ensure that what we are doing is it worth doing it or not because if we are spending a lot of money then it doesn't even uh make sense for us to run that you know specific metric or whatever like features we are enabling. Cool. So uh I'll hand.
Vasan will tell about you know like what are our problem statements and then maybe I'll explain how we have solved that uh uniquely. Yep. So we saw how um what what kind of problems that Swiggy are dealing with on a day in day basis right so I wouldn't call it problems good to have problems right so um the massive scale of data I mean there are plethora of data sources that they will be getting the data from so they need a um open and a unified lakehouse um to make sure that all their data across systems across different formats structured semiructured unstructured can reside And it needed to be open so that they don't get logged into a particular format right so they should be able to do it uh using multiple technologies a lot of technologies evolve over over a period of time so they need to be uh open and like what Akash told there are new cities being added new products being rolled out so there are a lot of new data sources get added so the platform should be able to scale to these new data sources so quickly that they don't actually they are able to get on with the business uh pretty soon bringing All this data is great but the most important part of all this is to be able to govern and secure them.
So if you're not able to give the right access to right users and at the right time um all this data being there doesn't make sense. So governance and security is very critical um need of the platform and we already discussed so how important the real-time data is the sooner the data is sooner the decision- making is and the AI team can make use of that data. Um I mean imagine predicting millions of u predictions and recommendations per second.
Uh you need to be at that scale. Let's take a look at why data bricks actually fit in naturally u as a unified AI platform. Um starting about the storage. So data bricks standardizes the data across all the source systems uh in Swiggy's uh environment into a unified lakehouse and the delta lake which is the lakehouse format. supports both delta and iceberg. So delta and iceberg as you already know is probably the most uh sought after formats uh when you're building lakehouse.
So support to both of these format and Swiggy not having to worry about what is that I have to write with and what is that I have to read with um made made it an easy decision there and um Delta Lake supports u injection into using spark flink um which kind of helps them depending on the use case choose a injection engine and on top of all this uh the thing that we discussed most like the governance and security unity catalog became the single point of governance uh for them to ensure that data is secured, access controls are on and all the audits are available for their compliance requirements and other capabilities like um the AIBA dashboards, Genie uh that can be used by the BI team so that the reporting um and alerting systems can work fine.
And last but not least, I mean everyone is on the GI genai LLM bandwagon. So for their AI team to be able to use the data um easily is one of the uh important criteria and Mosaic AI provides um capabilities like um uh inferencing and providing a way to guard rail your inferencing and build an uh agent application seamlessly some some of the features that they are using. I'll quickly uh touch upon the architecture and give it to Akash to del deeper.
So if you look at a highle reference architecture um of spiggy um on the left hand side you see all the different source systems. So uh it could be a relational database a lot of events coming out um and there are so much of unstructured data that is coming out. So all this get into um the unified lakehouse uh that is built on delta. So that Swiggy's team follow a medallion architecture preserving the raw and um the raw layer that is primarily becomes their audit view where they do all the audits that is needed and um they also have the silver layer where they store the filtered and cleaner data and um an aggregated layer for the business.
Swiggy team also has the fast access stores and OLAB that are needed for some of their AI and BI use cases which can help them uh make decisions quickly. So there are m I mean um the lakehouse can provide that data to them or it could come from the directly come directly from the injection uh place and um calling out BI and AI team as two different downstream users who actually use this data platform effectively right and again uh unity catalog uh provides governance end to end from the data engineering till the serving end where the entire metadata is stored the lineage is uh preserved and also the governance I'll just quickly give it to Akash to walk through um a deep dive into the data architecture and show you how these happen.
Yep. Cool guys. So as mentioned right I'll just give you a little overview of what is happening here. So basically what we have is if you look at the left most part right these are the data which we are getting from our internal applications or like you know when user login or restaurant partner opens the app or delivery partner opens the app right so the leftmost part is the data which comes to us and right most if you go then the data what you know typically uh our AI BI hi will use it so I'll give you like the definitions what what is the meaning of all of all these things so if you look at uh our users right we I have two major uh use cases.
When I say AI, all the data science platform related use case, AIdriven use cases, all the automated related use case will go under that bucket. And when I say HI, HI meaning human intelligence right where human has to be in the loop that use case will go in the uh H uh HI bucket. So left most side if you see right so we are on AWS as of today and uh what happens is like let's say someone tries to make an order from Swiggy app right um it could be groceries order or food app the what happens is we get a lot of click stream data like what user is doing where it where he's clicking from the initial page to the search page to the cart page to the while making the order lot of data we collect that data is required I mean as I explained in the very very first slide right like the unique experience what we give right so What happens is uh based on the user who is logging in what is he male female what kind of age criteria and all those things we kind of get from which location he's ordering and then we give them a unique experience so that data is required to us that is one kind of source then when restaurant partner have their own app right to accept the orders and so on delivery partner also have the same thing and then we have a thousand plus micros service internally right which run all this business so all these microser also generates billions of events as well as they have their own transactional stores like RDS, Dynamob and all those things, right?
So the leftmost part is the data source. Now what we have done is we have a completely automated pipeline where all this data stream like you know whether it is coming from the Android, iOS devices, customer, restaurant partner, internal services, all these things comes to us via one layer. We write it to our Q which is Kafka layer. Then we have all our uh transactional stores like RDS and uh Dynamob that data also we try to write it to either Kafka or uh in our S3 bucket.
So our S3 is the uh source of truth for all our data. Now what we have done is yeah and then we do have some batch data as well like which is within Swiggy or maybe some third party data. So that data also come to us. We are having two major use cases right. So one is real realtime use cases and second is more of a batch use cases right. So for real-time use cases as of today we are using Apache Flink we have built a layer on top of it so that uh our internal stakeholder doesn't need to worry about like how Flink manage the states how a job has to be written how the state management will happen how to join multiple streams how to do all these things.
So that is pretty much simplified for them. they just have to write a SQL and then whatever output they need or maybe let's say if they want to create any business alerts kind of rules right like let's say suddenly if my uh orders are getting dipped or let's say suddenly if the orders is uh going way too high then uh our internal stakeholders business stakeholder needs alert so that you know they can do a better planning so all those use cases will go in the realtime streaming rest of the things will go to all our you know batch related use case now what we do is asan mentioned right so all our use cases uh we have this uh all the data row data coming in from Kafka or from S3 and then what we have uniquely did here is uh so basically whether it is stream data or even in the transactional store right so typically what happens let's go through a order journey let's say if someone is trying to make an order then what happens first the order will get create like but as when as soon as you add some add some items in your cart right then the order will get create there will be one cart then a user will try to make an uh uh you know payment.
So then it will go to a next state like order created to maybe uh uh uh it it's going under the payment. Once the payment is done then it will go payment done. Then that order will be assigned to you know restaurant partner for prepare or maybe let's say it's assigned to our internal uh IM pod. I mean IM pod is nothing but our grocery store. It will go there so that the picker can pick that order and kind of you know uh prepare it so that the delivery partner can pick it up.
So basically order goes through a different states. Okay. And if you look at the transactional store where we store the data the same row get updated multiple times from order create to either it gets delivered to the user or the order is canceled for some reason. Now that different states the same row gets updated in our transactional store. But since we are having this uh CDC change data feed so we get each and every uh you know states of that order.
Now based on our use case we can store this data and we give them both the views as per the requirement like let's say if they need some audit kind of use cases right where they want to look at each different different states with the time right because to analyze the data or maybe if it is required for some compliance purpose we do store that as well as well as we create a similar view meaning whatever is the updated status is there in the uh in our transactional store we do have the same thing in uh data platform as Well and that is where you know we heavily use this delta uh and iceberg like the merge capability.
Now coming to the rightmost part right where the data how we have to use right so that part if you look at so what we do is uh we have lot of uh real-time streaming data again I'll go back to the same example right like when someone open the Swiggy app we kind of provide them the predicted SLA so it's not that easy to provide right because again uh we are very very hyper local right now depending on the time when you are ordering which location you are ordering what is the traffic in at that point of time what is the stress at that restaurant partner or at the you know in in our grocery store.
So a lot of metrics are there right? So what we do there are two major factors here. All the old data like historical data whatever is there we process the data and keep it in our feature store as well as whatever is happening in the real time at that particular point of time on the ground that also we process using our yeah using our real-time streaming layer and then it goes all the way to feature store. Now in feature store I have everything what I need and then we have one layer which is nothing but our uh ML serving platform where we get you know millions of uh prediction per second.
So that is where you know all our engineering uh applications will make an order with like whatever data points they have and then our all model runs here in this uh in this specific layer the serving layer and using this data we calculate like uh what will be the predicted SLA or like whatever like serviceability or whatever metrics we need and that is what we eventually provide to our application back and they will uh respectively give that informations in the app or like whatever wherever it is required.
Cool. Now again if you look at the previous uh slide to this slide it's more of a more detailed way but roughly it is almost same. So if you look at the leftmost part is the data source the all the row data like each and every state will go to the first layer. Then we create you know the sync view on top of that and eventually the last uh last but not the least is the actual source you know I mean the actual target table which is what typically you know our stakeholders will use.
So I'll just give a you know more overview like what why exactly we need this. So basically what happens is you know we have like let's say a lot of data order related data city related data discounting and so on right so all this row data comes in this layer one where all the audit logs are there from there we create a sync view sync view is nothing but the latest status of that order or discounting or whatever it is right now in for our use cases let's say if I want to run any use case right typically in order maybe let's say CT name is not there only CT ID is there or let's say instead of discount discount id is there and so on right so what we do we created this L2 L3 basically we created a layered architecture so what how this layered architecture help us here is the leftmost part which is owned by the engineering source that is not directly exposed to our our internal stakeholder and this help us help us in standardizing our data stores meaning I mean you understand right like like thousand plus microservices are running they will have to change few things in their data right and if I'm directly exposing this data to my stakeholders then it's too difficult to release any new feature so what we have done this data is not directly exposed to anyone and instead we have created this layered architecture this is one of the use case at the same time if the data is not completely available in one table then we do a lot of joins right joining between multiple tables uh lookup tables and all those things right so we created that uh you know the join part and everything in the layer two and from there we have final metric right so this also help us to kind of streamline uh our matrixes or our you know use cases meaning uh you know just an example like around a couple of years back I remember we were discussing within Swiggy what is the definition on of OPD OPD meaning order per day trust me that definition itself we were confused because we were looking at different different numbers from different different places and I'll give you an example why it was different so let's imagine today is let's say 12th of June right now if a order is coming on 12th of June but it is getting delivered on 13th or let's say if a order is coming on 11th of June but it is getting delivered on 12th just you know before the 12:00 in midnight where should we consider so those kind of you know very minute level details are there and that is what we have standardized in this layer so now this is ensuring that everyone in the company is looking at the same data so this is also helping in in that also it is helping helping us you know in in in our security and all those things because all the data what you see here after this layer right it is properly governed like there is no PI data nothing is available from here the proper role level access and all those things are in place yeah so this is again almost the same thing like how the layered architecture works so uh if I if you go at the L0 is nothing but the leftmost part where the data source was there and if you go to the rightmost part.
This is the place you know where we do this recommendation PSLA serviceability and all these metrices. So again the same example if you know like lot of use cases like when a user is trying to make an order we have trust and safety how the discounts are going the you know because uh almost like uh if I if I guess a number 10,000 plus times in a day we upload our catalog 10,000 plus times we upload our discounts you know because we are in 700 plus cities and we have to make a lot of changes in our discounting and all those things right so what we do in the layer four we have all those standardized definitions available and there we have to do a lot of calculations like let's say how much amount we are investing for our business growth is it actually making sense or not.
It is like you know you have to find that thin layer between the investment as well as how much growth you are seeing and so on like your discount let's say for some reason if someone has configured wrong then your uh you know uh your orders you will see let's say 70 to 80% discount which is wrong right and sometimes it does happen so all these uh layer help us in kind of uh standardizing these things and creating the alerts on top of that and all those alert comes you know within few back ends.
Cool. Uh so uh with again uh in the architectural itself you know like how our data layer works. So this lay architecture help us you you know are writing the data in the right way. uh the leftmost part is nothing but the down here and the top is the rightmost part where this uh since the data is coming from the data source right so they will ensure that the leftmost part or in this diagram especially the down part right the bottom that is standardized from the uh engineering side let's say if they are writing some data two three times for some reason they will uh you know uh register in the schema that which is the right data to use and then when someone create the metrics on top of that or joining on top of that in the uh in in the schema registry they will kind of uh write that and that is what we use internally and uh you know this helps us standardizing all these things yeah I'll pass on toan for how this architecture looks like and how you know delta or this iceberg is helping us all right so I just wanted to highlight couple few delta lake um properties that help um uh Swiggy manage their platform better, right?
So Akash talked about merge capabilities that are needed. So it is at that level. So it has to happen so fast. So the Delta Lakes function features like liquid clustering help them merge the data so fast so that they can retain the source type of view um to the customer downstream. Right? And there the delta lakes re consistent read um functionality to be able to read consistently respective of writes and reads happening at the same time helps the downstream user just access the data without having to worry about it.
And um the change data feed to uh read incremental data on large tables primarily is with the help of data delta leaks functionalities of managing the uh files checkpoints and um metadata accordingly and um features like uh rolling back to the versions that is needed also helps the uh Swiggy team uh take care of some audit requirements. Last but not least, um the most important that they felt is uh beneficial was the support of Delta and iceberg because it gives them the flexibility of reading from any SQL engine of their choice um depending on some of their use cases.
So I just wanted to touch upon how Unity catalog is helping um Swiggy uh organize their workspaces and um their data cataloges. Right. So I I'll probably flip through this so that you get the entire view of this. Um so Swiggy's workspaces are categorized by teams. So um the platform team which is kind of respons which is responsible for bringing in all the data and maintaining them um has a separate workspace of its own and the data science team, analytics team, BI, marketing so on so forth have their own workspaces.
This is essentially this essentially gives them the uh autonomous uh control on their own workspaces and but the interesting thing is how do we share data whatever the platform team generates to the other workspaces right so unity catalog has a three-level namespace catalog schema and tables so what it lets um you do is to be able to associate a particular set of catalog or a schema or a table to a workspace in this example platform team is respons responsible for writing the landing data.
It'll be the only team which has access to the landing data and uh when data is being curated they generate a curated data and the curated data can be associated only to the analytics team which needs that data and it is not at just the catalog level. You can go down to the schema or the table level and important point to note is um they might just have access to read the data and not write the data. So access controls can be across these like readability, writability and also even viewability right they can they can't even see if there is a data existing uh but the beauty of unity catalog is still there so for example the data science team has access to the read access to the curated data right um when they look at the data they still get the lineage so they know where the data is coming from so they will still see the roots of the data where it's coming from the raw tables uh even though they don't have access to the real data.
They know where the data is coming from. That this enables trust. They will be able to use the data um with trust and it also helps them discover. So it also let them uh it also gives them information. It's like where is this source? What is it? And if they really need access at some point they can start requesting it. So this kind of gives them an entire um a easier way to control uh the whole uh uh environment within the Swiggy team.
So let's see how so we we saw how the data platform is built how a layered architecture is helping Swiggy um manage the data platform to the scale that they want. Uh I wanted to touch upon a couple of use cases on how AI leverages the data right we will we'll check out couple of use cases uh on that. So the first is the AI democratization. So this is a way to democratize data to the end user um uh using the data agents.
So data agents are um a way to give access to the give access to the end users uh irrespective of what technology that the data is behind right and a chatbots are the agentic application that uses plethora of data service within the swiggies organization and LLM together to provide a chat interface for various use cases. It could be customer asking where is my order or um a delivery partner asking what's where the order is right so irrespective of it I'll let I'll let Akash speak about both these use cases quickly to give you an idea of this yeah guys I wanted to discuss a lot of things but the time is like only five more minutes I have so guys uh what we have done is uh I mean first of all like in Swiggy what we are looking is 100x what we used to do like around a year back.
So keeping that in mind if you see right we have a lot of business related use case and one of the problem what we were facing is business team is not very comfortable you know writing the SQL queries or getting the data out right so what we have built is one of our intelligence layer so asan mentioned right we have couple of uh uh different different use cases and our data is stored in a way where it can be leveraged by multiple tools right so we have real-time OLAP layer where all the uh data as soon as we do something the data is available there like you typically the like how the OLAP layer will work like kind of layer then we also have this data brick snowflake EMR and all those things using uh this delta plus iceberg so what we have done is we have installed our data agents which is specifically written for that specific tool where we are fetching the data from so let's say the data agent in datab bricks versus snowflake versus o player could be different and it is very specific to that specific engine so we have two parts layer one is uh data agent is specific to that layer and we have one intelligence brain uh before that so what it does is let's say if I'm opening a reports right so we have done a lot of changes there previously you know you have a lot of data how to get the knowledge out of data that was the challenge now the knowledge is also there but how to act on it so we just not give the metrics to the user but we also give them a summary and what to do all those things we do by ourself and the beauty here is since we have this intelligence layer. this layer knows when a uh let's say you know if if a CXO is asking like let's say what is the trend of customer can I mean you know order cancellations in this city automatically this intelligence layer will will redirect that request to the right place like let's say if if it has to calculate the data for last couple of hours it will go to the OLAP layer versus if it has to see data from the let's say last 6 months it will go to the S3 plus one of the lakehouse could be data bricks or EMR and so on right so and What extra we have here is like when a report is opened right.
So in that report you will see the summary as well as the action item what that person has to do and you know he can literally drill down to that specific report and go to the next next like where it is and the in best part in this intelligence layer is it has the context and hence it can take a best decision. So like if you open chat GPT right so when you start uh working with chat GPT as in when you go to next like couple of steps right it starts giving you better results because now it has the context the similar things we have built it here.
I'll just take two more minutes. Yeah the last but not the least is the AI chatbot. So here what we have done is t today in Swiggy if any customer comes and chat with our customer agents right then it is completely uh AI automated. So as Vasan was saying Vimo right where is my order so that uh we have already like you know productionize and it's already enabled to our customer. So today if you come to Swiggy order and if you start you know checking where is my order my order why it's not getting delivered where is you know why I'm not getting the order any problem right with specific to order or let's say if you want to do a chat with your human asence then now there we have deployed this vimo AI chatbot and very uh like you know I'll just give you a very very quick brief so what we have done here is we are using uh uh data bricks for all our serving purpose and all the inferencing and all and then we are using ll LMS for like we are figuring out multiple LLMs right to optimize like jami and then openai and so on.
So what we do is we have API layer. So if you look at this specific part right where the user is chatting the request goes to our one of our API layer. From there the request will finally go to the back end layer where the agents is installed lot of you know uh we have here uh uh MCP servers which talks to our internal storage layer or to our internal APIs. Then it stores all the context in the radius platform. All the metrics right like how the agency is doing the latency and all those things goes to Prometheus and then we also use stressing servers provided by datab bricks to dress all the requests.
So this is a very little brief maybe you know uh if you really are interested I can give you more detailed in uh in our uh like one to one or maybe in the question answer session. Thanks.
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.