Skip to main content

LanceDB: A Complete Search and Analytical Store for Serving Production-scale AI Applications

Summary

  • Unified AI Data Store: LanceDB combines vector search, key-value workloads, and analytical capabilities into one system, eliminating the need for multiple data stores and manual syncing.
  • Lance Columnar Format: Powered by the Lance columnar format, LanceDB breaks the impossible triangle of performance, scalability, and cost for AI serving on the Databricks Data and AI platform.
  • Production AI Applications: Build production-scale AI applications that handle retrieval problems, feature store workloads, and data exploration all within a single, unified data store.

LanceDB: A Complete Search and Analytical Store for Serving Production-scale AI Applications

Watch: LanceDB: A Complete Search and Analytical Store for Serving Production-scale AI Applications
Talk by Chang She, CEO / Co-founder, LanceDB ; Zero Qu, Sr. Software Engineer, Databricks
If you're building AI applications, chances are you're solving a retrieval problem somewhere along the way. This is why vector databases are popular today. But if we zoom out from just vector search, serving AI applications also requires handling KV workloads like a traditional feature store, as well as analytical workloads to explore and visualize data. This means that building an AI application often requires multiple data stores, which means multiple data copies, manual syncing, and extra infrastructure expenses. LanceDB is the first and only system that supports all of these workloads in one system. Powered by Lance columnar format, LanceDB completely breaks open the impossible triangle of performance, scalability, and cost for AI serving. Serving AI applications is different from previous waves of technology, and a new paradigm demands new tools.
Databricks Named a Leader in the 2025 Gartner® Magic Quadrant™ for Data Science and Machine Learning Platforms: https://www.databricks.com/blog/databricks-named-leader-2025-gartner-magic-quadrant-data-science-and-machine-learning
Build and deploy quality AI agent systems: https://www.databricks.com/product/artificial-intelligence
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements

Chapters

FAQs

What problem does LanceDB solve for AI applications?

According to this video, building AI applications often requires multiple data stores for vector search, key-value workloads, and analytics, leading to multiple data copies, manual syncing, and extra infrastructure expenses. LanceDB solves this by supporting all workloads in one system.

What is the Lance columnar format?

The Lance columnar format powers LanceDB and enables it to break open the impossible triangle of performance, scalability, and cost, providing optimal efficiency for AI serving workloads.

lakehouse architecture for AI workloads

A lakehouse architecture for AI combines the analytics capability of data warehouses with the flexibility of data lakes. This video explains how LanceDB implements lakehouse principles by supporting multiple workload types in one system: vector search for retrieval, key-value operations for feature stores, and analytical queries for exploration. By using the Lance columnar format with decoupled storage and compute, this architecture eliminates the traditional triangle trade-off between performance, scalability, and cost, enabling efficient serving of production-scale AI applications.

Do AI applications need a different database than traditional apps?

Yes, AI applications have unique data requirements distinct from traditional business applications. This video demonstrates how AI workloads need to perform vector search for retrieval problems, handle key-value operations like feature stores, and run analytical queries all on the same data. Traditional databases don't efficiently support this combination, leading to data duplication and manual syncing. LanceDB solves this by providing a unified platform that handles vector search, KV operations, and analytics in a single system, reducing infrastructure complexity and costs.

What are the best cloud based lakehouse platforms for modern data infrastructure?

Modern cloud-based lakehouse platforms must efficiently handle diverse AI workloads—vector search, feature store operations, and analytics—while maintaining low costs. This video highlights how LanceDB, powered by the Lance columnar format, achieves this through cloud-native architecture: decoupling storage from compute, leveraging cheap object storage for data, and using distributed indexing engines like Spark. The platform trades off performance and cost dynamically by moving data between different storage tiers, enabling organizations to build AI applications without expensive, proprietary vector database infrastructure.

Full transcript

0:00 Introduction and agenda

Hey everybody, thanks for coming to our session. So, we're going to get started. I'm the CEO and co-founder of LANCB and this is uh Zero. Yeah. Uh hi everyone. I'm currently a senior software engineer at Data Works. So um I know the presentation title is a little bit different from what you see out on the sign. We decided to expand the scope a little bit um to talk about not just uh search and analytics but a sort of a complete lakehouse architecture for your AI data especially if it's multimodal.
Um and so a little bit about me I'm one of the original co-authors of the pandas library. I'm working on LANDB today for all of the AI data that doesn't fit neatly into those pandas data frames and uh I've been building data tools for about two decades. So this really is something that I um feel super passionate about. Uh so a little bit about me uh I work on two different uh product at data works including mosaic vector search and feature store product as a founding engineer and most recently I've led a project to completely rearchitecture our vector search in the back end uh and we just announced a new product offering called storage optimized vector search on this new architecture.
So what we're going to talk about today is sort of broken into two parts. One is we're going to do a little bit of a technical deep dive or or zero will um to talk about the new cloudnative vector search that um data bricks has been has been working on and what that architecture looks like and the problems that um you run into when you build something like that and how do we kind of solve those problems and then we're going to talk about the Lance DV part which is the multimodal lakehouse for AI.
So how we go from a vector database to something that is more of a a complete platform for AI uh data infrastructure. So what are the new data infrastructure challenges that AI poses? Um how lens format is designed to solve those challenges and how we can work on not just search but all of the diverse workloads that you need to run on that AI data. And um by then it'll be clear why even though the talk is uh about LANCB that we have we're talking about uh data bricks uh search here.
So um and basically what we hope that you'll get out of the talk is essentially what a modern architecture for AI data infrastructure looks like or at least should look like and uh what are the things that you need to be thinking about when you plan for such architecture. Cool. Um, so my talk today will mainly focus on cloud native vector search architecture and how we built uh at data bricks on the vector search team a massively scalable vector database that's far lower cost compared to many of the existing solutions.

2:52 Cloud-native vector search

And I'll start off talking about some of the challenges we see in many of the first generation vector databases. First being couple storage and compute. Uh this is what you get from a traditional share nothing distributed system architecture where you have compute nodes and this attached to them act as the persistent storage layer. And what it means is you you're m effectively maintaining a stateful system and you have to manage data movements across different nodes.
Uh and for those of you who are in the sea today operated in such system in the past you know that is extremely difficult to operate at scale. The second point being vector indices are mostly memory resident. Uh to give some additional context for position embeddings are huge. Uh we can do some simple math. Let's say you have a four byte uh typical floating point. You're using open embedding model with a,024 dimension vectors and you have a 100 million points.
Just storing the full precision vector itself is if you add that up is over 300 GB of storage and you have to serve all of them in memory. And the actual vector index is typically larger as well because you need to store some additional info for query search scope reduction. And this is why if you see a lot of the existing vector DB products out there, they're super super expensive uh typically resulting in thousands of dollars of infrastructure bill um just to keep the index warm in memory.
And the third point has to do the cury pattern uh that's sort of inherited from a traditional search architecture and this is what we call a scatter and gather query pattern. Uh the idea is you have immutable data fragments uh and you have indices built for each of these immutable data fragments. So these two are essentially coupled together. Um and the benefit of this approach is you can build significantly as you scale the number of data segments.
Second uh merging these segments also is very costly. uh specifically for vector indices, you effectively have to rebuild these vector indices when you compact data fragments um and merging them. So how are we overcoming these challenges? Um and this is where we take the lakehouse approach. Um the first is you know decoupble storage and compute. Your vector indices and raw data fragments live in durable claw object storage.
Cury nodes are completely stateless and it only needs to cache data in local SSD and memory when needed. We've taken a further step to decouple injection serving compute as well. Injection runs on fully distributed in-house vector indexing engine built on on top of spark. Cury runs on light much lighter weight uh raw services. And this is what you get with a cloudnative vector search architecture which gives you unparallel scalability at far lower cost by effectively leveraging cloud object storage.
It also give you high flexibility trading off between performance and cost by simply moving data around different storage tiers. What do I mean by storage tiers exactly? So one of the most important design decision uh we have to make when designing storage system is to reason about what data needs to be stored where. On the top you can see you have memory local MV SSD. These are high performance uh fast storage tiers that comes at a very high cost.
On the bottom you can see something like claw object storage uh which give you slow performance slow and lower performance uh but they're magnitude cheaper. And the high level design philosophy is how can we leverage fast high performance storage tiers for the most computationally expensive steps and use the and use cloud object storage cheap storage for the rest. We've also take a step to completely redesign the data layouts uh for our vector database.
Many of the first generation vector database uh use something some algorithm known as HSW. It stands for hierarchal navigable small word graph. It's basically graph index with random charting and HSW index contains a graph connected graph with full position embeddings and is designed to work when you have the entire index serving memory. Um, and if you blindly offload the index onto disk, it hurts query performance dramatically in seconds or even tens of seconds.
So what you end up having is you have to serve this very large HSW index fully in memory and it's really hard to scale and what many system did is end up basically running sharding uh these data fragments and build separate HSW indices on top of them to overcome this challenge. And this is where you know as I mentioned earlier you have a couple index and data fragment data structure and you're running something called scatter and gather queries.
What does it mean? It means like your query has to touch every data fragments all there for the query to complete. And this is what's shown in the graph on top on injection. You have some compute nodes that's effectively building some data fragments. Each data fragment has a corresponding index in it. On query, you're doing one of the compute node is you know talking to all the other compute nodes and you need to run the search on each of these data fragments and this vector index and you need to do a final aggregation step to get the result back.
And this is what's inherited from the traditional search architecture. And when you have many of these segments and vector indices, you end up driving up t latencies and query compute costs also the aggregation overhead. This is why we're shifting to AVF style vector indices. We built a single index for the entire data set with spatialware partitions for search scope reduction. And this is shown in the graph below. Uh this is a two-dimensional space.
You're effectively breaking down the embedding space into spatial partitions represented by a cluster. And on query, you only need to search the clusters that are closest to your curve vector. And this also requires you to decouple the index data structure from the immutable data fragments. As I mentioned earlier, updates happens independently in the two different data structures and you no longer need to constantly rebuild these sub indices where you add new data fragments or compact existing ones piecing it together.
How does it actually work when we build this? Uh we're leveraging Spark's massive scale and parallelism for ingestion. Uh turns out Spark is perfect for building IVS style indices. Uh because as you can see in the graph on top, the most computationally intensive step which involves transforming and assigning FVF partitions for each row in the data set can be fully paralyzed on Spark. We're also harnessing state-of-the-art qualization techniques for serving cost reduction.
This is coming back to the question of what data should be stored where and quantization technique can dramat dramatically reduce the vector index size with a trade-off to retrieval quality. So we could effectively serve a heavily quantized vector index fully in memory and offload four position vectors in cheap storage like cloud object storage and retrieval quality can be compensated by doing a simple overfetch and rerank with four position embedding.
And in this step you require random lookup to basically do this over fetch and rerank. you you require a storage system with really good random access performance. And this is an overview of how we rearchitecture and completely redesigned our vector search system in the back end. And coming back to lens, lens db is built to be a cloud native vector store. When we initially designed this project, we had many chats with folks from Lens DB exchanging ideas, discussing architecture and we share a very similar vision in terms of what the cloudnative vector search architecture should be.
Lens felt format is one of the best storage formats out there. Heavily optimized for both scan and random access performance. Lens table formats supports filebased secondary indices including vector full text B3 indices making lens a perfect fit for building a cloud native vector store as I've demonstrated above with that being said I'll hand it to talk more about thank you cool so um I think what we heard from zero is very exciting about the new product launch from data bricks right so to summarize as when you have when you're building a massive scale cloud vector store uh and cloud search product, you need compute storage separation.
You need to be able to think not just about the index, but also about how are you going to store the data, how are you going to shard that data, how are you going to um uh associate the right data fragments with the right parts of the indices. And then you need to think about uh random access performance straight off of um um object store, right? Because if you have great indices that you can point to the rows that you need, but then it takes a million years to actually access those rows, it doesn't really help you all that much.
So you need all those things together. And th this is the kind of uh benefits that moving from legacy formats like parquet to something like lance uh helps us build more compelling and bigger scale products uh and AI data products on top. Now let's expand and zoom out a little bit. when let's say you're building a new AI application or you're you're building an AI model right so search is one part of it and it's an important part of it you need it maybe for serving that application you need it to do data exploration for data curation dduplication but it's not the only thing that you need to think about so when when you think about end to end what you need you have to you have to maybe analyze that data what's in my data set um run some aggregates compute some metrics about your data set, you need to pre-process that data, right?

14:41 Beyond vector databases

So maybe your pipeline started with raw PDF documents. Your model or application isn't going to run off of those raw documents. You have to go through a fairly sophisticated data prep-processing pipeline, maybe extracting text, extracting charts, tables, and then cleaning that data up. Then u chunking the text and then embedding it and then building indices off of that. and then you can serve and then you can train uh models.
And then finally, if you're if you're doing uh fine-tuning, uh if you're doing pre-training or post- training, you need to be able to uh load your data into GPUs, multiple GPUs, sometimes in a completely different local. Uh you need to be able to do global shuffles effectively. Uh and you need to be able to have great integration with your training tools, right? So none of those things uh vector databases really give you uh the ability to do and also traditional vector databases also force you to copy data to a different location.
And so now the rest of your AI data infrastructure you uh has to have this like synchronization process and copy pipeline that you need to maintain and manage. If you uh if you're on the infrastructure team and your um research team creates a new feature or something like that. Well, now you got to now you got to go back and rethink through the that pipeline like okay where does that new feature fit in? Does that feature need to get replicated as well?
Um does that need to get served? And so it really slows down iteration by having all your data and your workloads in different systems and scattered in different places. Uh and so this is what I want to talk to you about today is how lance CB and Lance format solves that problem. So first um let's think about sort of the new world that we're in, right? I think AI represents a generational shift in data infrastructure.

17:03 AI data infrastructure challenges

And what I'm what I mean by that is um sort of three things. There's sort of new problems but really old themes of one a variety. So uh I think you know even 5 years ago right the 80% of enterprise data is already multimodal. So there's a lot more variety um that we're dealing with. But AI has made all of this data a lot more valuable right? So think you know PDF documents, uh sales slides, think contracts, right? Uh all of that enterprise data that previously was difficult, really difficult to get value out of, AI has completely changed that picture.
Number two, if you think about um traditional tabular data, right, floating points and integers, those are those are pretty small. But now if you move to documents and images and you know, god forbid, videos, right? These are 3 to nine orders of magnitude larger than the tabular data that you see. So volume is much larger. And then number three is instead of relying and being bottlenecked on sort of human you know finger clicking and key typing uh a lot of this new data is being generated by the model.
Right? So we are uh creating this larger data much faster. So what this gives us is the three you know the three V's that and AI has completely changed the three V's and created tons of new challenges for data infrastructure. So um and you know why do we need to do this rethink and why do we need new things? Uh it's because the new these new problems really demand uh new solutions. Traditional data lakes are optimized for as you know tabular data but they're they're not great for search.
They're not great for um embeddings. They're not great for multimodal data storage. Uh vector databases, which is, you know, the sort of the latest, you know, type of databases that have come up in the past few years, are great for one workload and one type of data, and that is vector data. Um but they don't they don't generally integrate well with data links. they require you to copy some of your data and kind of transform it uh and deal with the complexities that uh that comes with that and you know they're not great for the regular tabular data and they're not great for multimodal data.
So what's the answer? Well, we think the solution uh well so so uh we think the solution is LANCB. And so to kind of illustrate the problem a little bit more, right? So if you go back to if you map that analogy, right? like instead of having Postgress you had to manage several services maybe there's a B tree service there's a separate storage service for like the integers and the um the floatingoint numbers there's an there's a storage service for vectors and then there's a separate storage service for like your your PDFs um and then you only had like REST APIs to communicate between them right how how far would you be able to take kind of basically uh the internet u without this kind of uh like a data a whole concept of a database that did all of these things together for you.

19:44 The LanceDB approach

So this is what lance format and lance DB is designed to be right. Lance lance format open source new standard for multimodal um it's right as zero was saying there's a it's file format which basically is the equivalent to parquet but offers faster random access um the ability to manage both large binary and really like mixed with data. So, especially with parquet, if you're mixing, you know, your traditional tabular data with images and videos, it it's very very easy to uh run out of memory and it forces you into really awkward trade-offs and how you um size your row groups and lance format sort of gets rid of row groups altogether and um doesn't doesn't force you into into those weird situations.
Uh it's also a table format. Um it's sort of the equivalent of uh iceberg but for uh for AI workloads. So there it's a two-dimensional layout. So a lot of times what um AI use cases need to do is this very flexible data evolution where you need to add rows and then you need to add columns over time and you need need to be able to do that without copying the data. So uh you know if you if you have tabular data uh like a billion rows of tabular data and floatingoint numbers like if you if you had to copy some rows to do um schema evolution it's probably you know not great but like it's not the end of the world.
Uh but if you have a column of images and videos it's like hey your original table is like a pabyte right you really don't uh want to incur that expense uh of that copy. Um uh and of course the table format itself has an arrow based API. So uh it out of the box it's compatible with most of your existing data lake components. And so this works really well uh you know when you in by introducing this compatibility layer.
So lance lance format basically works uh out of the box with all the tools that you're familiar with and you don't need this like huge lift in how you think about your data infrastructure and most of the time the workloads can be the same the co the code can even be the same and it just runs faster. Uh and then the last part is the secondary in uh indexes. So there's a typo there. Um and so for index I think in the past uh I don't know if you remember there have been attempts at uh creating this secondary index subsystem for uh parquet and inevitably these things haven't um gone very well and haven't really succeeded.
One of the problems was that parquet doesn't really support great random access and so you could point to the rows that you want and then you know you have to fetch the whole row group to get it. Um but in addition to that uh the secondary indexes in lance uh format also gives you uh it's focused around disk based indexing sub subsystem and by disk based I mean you know either local disk or uh cloud storage and we have a rich uh type uh types of uh indexes right so you heard about the vector indexes but for search and higher quality retrieval you really need hybrid index types.
So you need to do full text searches and then you need to have fast filters um and you need to be able to then do reranking on top of that. All right. And so what LANCB gives you then uh is you know being built on top of lance format. It is a t a single table for all of your AI data. Uh and that becomes a single source of truth for all of your AI workloads. So uh you can run you can store all of that data on object store.
You can run, you know, key value fetches like you would um in, let's say, like Reddus or You can run SQL for analytics on that data. You can do, let's say, hybrid searches where you can search, you know, the text and the embeddings at the same time. And of course you can store the raw u bytes of your your actual data which then you can plug into a pietorch data loader if you're doing uh you if you're doing fine-tuning or re uh or or pre-training or post-training.
Cool. So um the take-home messages that we have for you is one uh AI has fundamentally changed the needs that we have for data infrastructure by changing the data types uh and the variety of data that we need by changing the fundamentally change the volume of data that we need to deal with and changing the rate at which this new larger and more more varied data is being generated. uh the what what we find is that uh enterprises really need a a new kind of architecture for cloudnative search and dealing with AI data at scale and this isn't just a you know another type of database but it's something that integrates with your your data lakeink um and has a lakehouse kind of architecture on top of that so that you can get to the scale you can get the u diversity of the workloads that you need to run And you can do that all in one package.
Uh and so and this is what lance format is designed to do is power this single source of truth for AI data. Cool. Um so one of the things that Zero mentioned was how great uh Spark uh was a how great a fit Spark was for generating these um uh sort of distributed indexes and working with uh working with AI data in memory. And so tomorrow there's a we have another joint talk uh lanc and data bricks uh on p uh specifically focus on pispark and the integration between lance and pispark.

25:56 Closing and Q&A

So this will be a joint talk between uh a database engineer from our team and uh engineer on the data bricks team who works on on pispark. So I uh if this is something interesting highly encourage you guys to go check that out tomorrow. All right. So, um we'll open this up for questions. Thank you so much for listening to our our talk. Uh you can check out this QR code for the Lance uh Discord and check out our open source and then uh I think for the new storage optimized vector search.
Is that the announcement or the blog? The announcement. The announcement. Yeah. So, very very exciting launch. Anyways, uh so thank you and uh you know if anybody has any questions, we'd love to take them now.

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.