Skip to main content

Beyond Simple RAG:Unlocking Quality, Scale and Cost-Efficient Retrieval With Mosaic AI Vector Search

Summary

  • Hybrid retrieval and reranking: Mosaic AI Vector Search achieves higher accuracy through combining keyword and semantic search, then applying intelligent reranking to surface most relevant results.
  • Automatic index freshness: Auto-syncing from source to vector index eliminates manual pipeline maintenance while keeping indexes current with live data.
  • Scale and cost optimization: Production customers achieved significant scale improvements and cost reductions through hybrid retrieval patterns and efficient index management practices.

Beyond Simple RAG:Unlocking Quality, Scale and Cost-Efficient Retrieval With Mosaic AI Vector Search

Watch: Beyond Simple RAG:Unlocking Quality, Scale and Cost-Efficient Retrieval With Mosaic AI Vector Search
Talk by Adam Gurary, Product Manager, Databricks ; Ankit Vij, Engineering Lead - Vector Search, Databricks
Mosaic AI Vector Search is powering high-accuracy retrieval systems in production across a wide range of use cases — including RAG applications, entity resolution, recommendation systems and search. Fully integrated with the Databricks Data and AI platform, it eliminates pipeline maintenance by automatically syncing data from source to index. Over the past year, customers have asked for greater scale, better quality out-of-the-box and cost-efficient performance. this video delivers on those needs — showcasing best practices for implementing high-quality retrieval systems and revealing major product advancements that improve scalability, efficiency and relevance. What you’ll learn: How to optimize Vector Search with hybrid retrieval and reranking for better out-of-the-box results Best practices for managing vector indexes with minimal operational overhead Real-world examples of how organizations have scaled and improved their search and recommendation systems
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

How does hybrid retrieval improve search accuracy?

Hybrid retrieval combines keyword-based matching with semantic similarity search, capturing both exact matches and conceptual relevance—then reranking selects the most relevant results.

What makes Mosaic AI Vector Search different from basic vector databases?

Mosaic Vector Search is fully integrated with Databricks, automatically syncs data from source systems to indexes, supports hybrid and multi-stage retrieval, and eliminates pipeline maintenance complexity.

governing vector databases and embeddings for RAG applications

Databricks Vector Search with Unity Catalog enables governance of embeddings and vector indexes alongside traditional data governance. Organizations can track data lineage, enforce access controls, and manage retention policies for vector data—ensuring RAG applications remain secure, auditable, and compliant.

How can organizations optimize costs while maintaining quality?

Using hybrid retrieval patterns, efficient embeddings, and proper index tuning reduces compute and storage costs—this video shares real examples of customers scaling while cutting costs.

What use cases beyond RAG are supported?

Mosaic Vector Search powers entity resolution, recommendation systems, and semantic search—any use case requiring similarity matching at scale benefits from its production-grade infrastructure.

Full transcript

0:00 Introduction to RAG challenges

I'm the I'm the product manager for Vector Search. And hi, I'm the tech lead for Vector Search. And we're going to talk about going beyond simple rag to largecale, high quality, fresh, and cost-effective retrieval systems. We've talked to hundreds of customers just over the last year. Uh some of them are in the room today. It's good to see you guys. Um, and so we're going to start off by sharing the typical journey that we see when customers try to go beyond simple rag.
Then we'll talk about the first steps we took towards making that journey better back when we released our first product back in 2003 by making index creation and freshness way, way easier. Then we'll talk about what we've done over the last year to solve even bigger problems around quality and scale. and we'll do a deep dive to share some of the key insights about retrieval quality and uh and how best to think about it.
And we'll get into a demo uh of doing a total end to end demo of building a super high quality agent on a massive proprietary data set. And finally, we'll finish up by sharing, you know, what's what's next for vector search. So before we get into it, just have to say, you know, this is forformational purposes only. Our road map is constantly changing as we learn from customers like you guys. Okay. So, I'm going to tell you guys a story of a typical customer journey of going beyond simple rag.
And you guys will tell me if any of this sounds familiar. Okay. So, meet. is an engineer at Brick Corp, a big consumer electronics company, and she was tasked with building an AI assistant for the customer support team to help them resolve customer support cases more quickly and more accurately. And so starting with just the robot vacuum product line, just one of her product lines, set up a vector database to create a PC for her rag chat application that could answer questions from previous cases and their resolutions and product manuals.

1:28 The typical customer journey

And with all the open- source tech out there that's just available online, like this was actually really easy and it was actually pretty fun. But then she had to create a pipeline to compute the embeddings. And she needed to have that pipeline ready to compute embeddings not only on new cases and product manuals, but also on queries that were coming in in real time. And then it turned out that computing embeddings wasn't the only thing that this pipeline needed to do.
It also needed to insert vectors into a vector database. And if anything got added or changed in the product manuals and cases, she had to implement even more custom pipelines to make sure that the content in the vector database was actually consistent with what needed to be there. And this took her a few weeks, but she was finally able to get this done. But then she got to user acceptance testing. And it turned out that quality just wasn't good. and regular vector search wasn't helping in situations where the customers had an exact error code that they needed to look up.
So she spent all this time configuring a hybrid search, deploying a reranking model, wrapping her calls to the vector search so that they could be reranked. And this took another few weeks, but she was finally able to get it done. Quality was good. It was time to go to production. All she needed to do was just get the cases and product manuals for the company's entire product line into the vector database and she would be good to go.
But as she started to put more and more vectors into the vector database, things started getting expensive and really slow. And she started spending more money and more time manually managing the infrastructure needed just to get the vectors into the vector database. And now she was on call every time something broke with one of her custom pipelines or one of her custom reranking systems. This was definitely not fun anymore.
So, did any of that resonate with anybody here? Show of hands. Okay. Okay. Got it. Maybe somebody over here was raising their hand. Maybe uh maybe. Which part of that was uh was familiar to you guys? All of it was familiar. The re-ranking systems. I know. So the re-reranking system is something with. Anybody else thought that part of it was familiar to them? Okay. Yeah. Yeah. We've been seeing customers like implementing their own re-ranking systems.
It's a pain to manage the models, the wrapping. It's Yeah, we're definitely hearing that. So these problems are very familiar to us at data bricks. Um and today we're going to talk about how we're solving all of these problems. Uh and I'm going to hand it over Oh yeah, and how we transformed this, you know, very painful journey into a, you know, not trying to toot our own horn here. Conit the one who actually built it into a beautiful product experience where you can make a super scalable highquality vector index without the crazy cost and without all that custom code and infrastructure management.

4:37 Mosaic AI Vector Search overview

So now I'll hand it over to talk about how we did it starting from the beginning. Awesome. Thanks. Um, I'm going to give a brief overview or a recap of what Mosaic AI vector search is before we deep dive in some of the exciting things that we've been building the past year that we're very excited to share with you folks. U so we launched Mosaicia vector search in 2023 with a core philosophy of simplifying search on the lakehouse.
So you give us a delta table and we will give you a search index and manage all the complexities that involve in building that search index that involves ingestion pipelines that need to do embedding generation uh need to look up for changes on the delta table and then ingest it into uh the vector index so that all the problems that was facing that just described you don't have to face them anymore. It is simple and fully managed from both an ingestion as well as a query standpoint.
And traditional vector databases usually have a vector in vector out interface. But we want to change that. We want to give you a text in text out interface so that you don't have to worry about any of the complexities that goes into building or serving an index. You only care about searching. It is scalable and performant. And we have seen a a variety of use cases being used uh at scale and we are able to see performance uh with various uh different uh use cases that customers are playing around with and it has deep native integration with the data intelligence platform and other search AI systems on the platform.
So that such as like agents like you can create vector search register it as a tool on the agent then evaluate the agent using the agent evaluation framework all while having built-in governance using uh we have unity catalog and we've seen great adoption um customers have rapidly adopted the product and as of May 2025 we've seen tens and thousands of indices being served live on the platform and thousands of customers customers are using vector search on a daily basis.
Now I just wanted to give you a perspective of what customers are using vector search and what are they productionizing it. The most common use case is the rag. It is is nothing but you retrieve data from uh from the vector source uh and give it to the LLMS context so that it can summarize. So good examples of this would be real-time chat applications uh which is the most common one. You can also do like batch investment report generation and automated root cause analysis are also like categorized as rag application.
But there are interesting use cases that customers are also building. One such use case is matching. A matching use case is where you're trying to match a query to a set of similar entities. Like examples of this would be you're matching job applicants with job postings. you're trying to detect malware using similar old binaries or you're recommending similar items on the on on a for shopping for example. And the third use case uh that is more common is the traditional search use case where you have a search bar example and you want to search for it give the results back to the user which are the most relevant ones.
So in product searches, assembling highquality data sets and searching across a lot of communications for like audit purposes comes under these buckets. Now we did provide a simple fully managed solution that was scalable and performant. But we started getting feedback on quality and scale especially when customers started to use the product more and more and they had use cases that were pushing the limits of our or boundaries of our of our product.

8:35 Quality, scale, and cost solutions

So on the quality side we we saw that there was a need for more quality and the way that they were building it was deploying their own reanking solutions which which is also complex in some way but it is also an operational overhead which now they have to maintain. So what was so they were literally asking us to provide us with more out ofbox quality so that they don't have to manage any of this infra from themselves.
And when it comes to scale, uh they started realizing then as and when they wanted to ingest more and more vectors, they often started hitting limits of the system. And to circumvent that they could either split the data into multiple endpoints so that now they can uh get away with the limits that we have or they soon realized that at that scale it was getting a lot costly than they had hoped for. So we improved out of box quality with a hybrid search and reanker.
Like hybrid search uh is out of the box which we released last year and it really helped customers to like do semantic relevance with keyword precision. But for more for customers who wanted even better quality, they were still maintaining their own reanking systems. So, we worked closely with the Mosaic research team, which are total rock stars, by the way, and build a fast, state-of-the-art reranker that can improve the relevance of your search results while providing better quality than state-of-the-art cloud competitors out there.
This is soon to this is coming soon in the summer. It is still in private preview. But how does a reanker work and why does it provide with better quality? So we we should take a step back. So a traditional vector database works on embeddings. So when you embed something, you would often lose some signal. And when you lose that signal, even though the initial results that you get from a vector database might be good enough, but for customers who really want high quality, they have to do something else.
And that is where a reanker shines. A reanker is nothing but a bigger model and it works directly on text and it would provide you with better ranking. So that no so that all the signals that got lost in the embedding generation does not happen when you're doing this redacking step. But what's the catch? The catch here is that it adds latency to your retrieval step. And I'm going to talk about of some of the retrieval u quality u tradeoffs in a few minutes.
And for solving scale at low cost, we're very excited to announce our new offering called storage optimized endpoints. This is a new offering that is in public preview and is ready to use. It is a completely rearchitecture of a of a current offering and with storage compute isolation that allows us to solve some of the most challenging scaling problems out there in cost-effective manner. In one line, if I have to tell it, it's the same API that you're used to, whether it's from the Python SDK or whether it is from the REST API, but with a brand new backend that we are managing to provide you with scale at low cost.
But what does it actually mean to you as a user? So there are three parts to it. So first is uh so the first part of it is cost. It is 7x cheaper than our current offering. It can now scale into billions of vectors. So you don't have to worry about uh like splitting your data or worrying about how much to store there. And on top of it, it has 20x faster ingestion. So now you can develop faster and but at the same time you can also upgrade production very quickly.
But what's the catch again? So the catch here is there's a trade-off that we had to do on the latency side to provide you with all these benefits. It adds about 200 milliseconds of additional latency but we are really working towards improving that down the road uh down the road. But what we have heard from most of the customers uh that since they have an LLM in the retrieval step, this additional latency does not affect them as much and they can still use this to get all the other benefits because their LLM is still going to take the most amount of time.
But one key takeaway is like if you have latency sensitive in uh like searches like in product search or or recommend systems stronger consideration still needs to be taken while adopting the storage optimized endpoints and the standard offering might still be a better fit for it. And customers are really happy with preview. We have we have from PSP investments who who mentioned that storage optimized vector search is their next generation vector search.
It is way more scalable and fast and is really helping them build their AI investment analyst assistant quickly. Now before we go to the demo, we also wanted to share a retrieval quality playbook. So we have talked to hundreds of customers and these are some of the recommendations that we feel would really help to improve your retrieval quality. But let's talk about what is retrieval. So retrieval in one line is nothing but getting the most relevant information for your task.

14:04 Retrieval quality playbook

So for a rack chatbot, this could be the most accurate context that you have to give to the LLM. For a matching system, it needs to be the closest entities and for a search system, it needs to be the top results that the user would see. So the first takeaway that we have is use hybrid search when you need both semantic relevance and keyword precision. But how do we know you need this? A good way to think about is whenever you have domain specific vocabulary, use hybrid search.
The reason for this is embedding models often are not aware or do not have the context on on your domain specific vocabulary. So they might not give you the most accurate results from just semantic relevance. And this is where hybrid search shines like it would get it would use best of both worlds fuse the results and give you the top results so that you don't have to worry about this. And luckily this is all built in.
All you have to do is turn on the feature or choose a mode during your query time and you can improve your quality from the get- go. Now let's talk about reancher because this is something a lot of customers are building on their own before we introduced our our own. So just a quick recap like traditional vector databases work on embeds and whenever you embed something there's possibility of losing signal so it might not give you the best results.
So reranker works d it's a bigger model works directly on text would provide you with better uh with better ranking but the trade-off here is there adds latency to your search retrieval but for customers who are really sensitive to lat uh to quality and they want the top quality and they are okay with slight increase in latency reranker really shines and that is true for most of the customers that we have talked to because they have an LLM in their retrieval step it usually is the most timeconuming But for latency sensitive applications the stronger consideration still needs to be given before adopting a re-ranker.
Now let's talk about evaluation. Like we feel consistent evaluation is the best way to iterate on quality. Now what we have seen from customers is like a lot of customers uh struggle uh during evaluation because they're doing everything manually and mostly via wipe checking. Now wipe checking can only take you so far like let's say you change something a setting in your system that is expected to increase quality but how do you prove that it increased quality?
So in that case, wipe checking is not the right solution and we want you to think of it in a more automatic fashion so that you don't have to worry about when some setting is being changed and how does it affect quality. So the first recommendation is automate the process and with database agent evaluation it really helps to make your uh to iterate this whole process better and at the same time give you that quick uh feedback that you're looking for whenever you are improving quality.
Now let's say you don't have an evaluation data set or you don't have the time or it's tough to create one. We still have other tools that you could use uh on a system like you can use a ground truthf free judges or synthetic data uh generation APIs to get started with quality. Now to summarize uh the quality retrieval quality best practices the first is hybrid search. Use hybrid search whenever you have domain specific uh vocabulary.
This is out of the box and should be used to just improve your quality on the get- go. Use re-ranking when quality is of the of the highest importance and you're okay with sacrificing some latency. And this is coming in summer. And finally, consistent evaluation. Use data bricks agent evaluation and ground truth three judges or synthetic data generation APIs to iterate on your quality. Now I'm going to hand it over to show it how to show how it all works. uh how can create and evaluate a highquality search agent on a billion vector database for her customer support trips.
All right, thank you. Uh so let's dive into the demo. What we're going to do today is we're going to start by creating an absolutely massive vector index over the customer support tickets and their resolutions. We're going to take that index and use it to create a data intelligent agent that can use that index to help answer uh to help the support team answer and resolve new customer cases. We'll run an evaluation of that agent with multiple retrieval configurations like hybrid search and reranking to get a much more high quality agent.

18:39 End-to-end demo and evaluation

And finally, we'll give you guys a sneak peek of a super secret feature that only you guys are going to know about for the time being, which is our full text search capability. and we're going to show you how we can create a search agent for the support team that can even help in customer cases where there's a super specific error code that needs to be found. But first, I'm going to show you our end state for the demo today.
So, I'm in playground here and I'm going to select our data intelligent agent that can answer questions over previous cases right here. Uh, and I'm going to ask it a question. I'm going to ask it. You know, my customer is saying they're getting an error like system internal error 002 on their smart speaker. How do I help them? So, remember this is actually not simple rag. Behind the scenes, this agent is using an absolutely massive and automatically updating vector search index to answer this question.
And there's hybrid search ranking and full text search going on in the background to answer this question. So, looks like it already answered the question. That was fast. Um, so great, it retrieved the document that has that internal error. I can provide you with information on how to resolve this error. So they just have to restart the smart speaker and make sure the phone is closer to the smart speaker. Um, and we can even see the documents that I retrieved.
Okay. Yeah. So the resolution summary actually was to restart the speaker and bring the speaker close when they were having this error code. So we can tell that this response was grounded. So this is our Nirvana state. Let's figure out how we actually get to this point. So, what we're going to do first is we're actually going to need to create that massive vector index that the agent can use to answer these questions for the support team.
So, I'll switch back over and go to delta table. So, this is delta table of previous customer support cases and their resolutions. Now, note that this is over a billion records. And so, if I go into sample data here, we can see that each row is a previous ticket with its ID. it's about a specific product and it has an error code. You know, in this case, the description of this ticket is, you know, the looks like the doorbell cam was having some sort of authentication issue in this case.
Uh, we can see this resolution summary. So, in this case, for the doorbell cam, they just have to reset their password and verify their off settings. Uh, and there's, you know, there's some tags here. There's some other information, but most importantly, we're going to have a column here that's the description and the resolution in one column. And this is actually the column that we're going to use for our retrieval.
So for to create her AI assistant for the support team, she's going to need to create a search index to retrieve over these cases that we're looking at right now. So all I'm going to do here is go to create and hit search index. And so for the name of it, I'm going to name it something like consumer electronics index. For the primary key, I'm just going to select the ticket ID. If you check the tool tip, it just says that this has to be a unique column that you have here.
And for columns to sync, I'm actually just going to leave that blank. This is going to now allow me to retrieve all of the columns at retrieval time, not just a subset of them that I select. So, I'll just leave that blank. And then for embeddings, now notice that I can actually click skip embeddings here. Um, this is part of the super secret sneak peek that you guys are getting today of our full text search offering.
So what we're going to be enabling people to do is just create a pure full text search index without having to compute embeddings uh at all or in the case that they are computing embeddings they'll be able to query that index with just a regular keyword search paradigm and we'll show you how to do that in a few minutes. So I'm going to select compute embeddings for the embedding source column. I'm going to select that description resolution column that contains the description of the issue and the resolution of the issue in that one column uh that we can embed and retrieve over.
For the embedding model, I'm just going to select GTE large. This is a high quality model that most of our customers are using right now and we offer it out of the box. Now, finally, I have to select our vector search endpoint. So, I'm going to go in here and I'm going to select customer support endpoint. Now, I'm going to backspace here. As you see, all these endpoints over here are standard, but this endpoint is going to be a storage optimized endpoint.
So, that's all you need to do basically to get that billion vector scale. that super fast indexing and that way cheaper cost is literally just select storage optimized uh endpoint for your index and I'll hit create here. Now for a billion vectors it can take about eight hours to create an index and while this is literally world class I'm not going to force you to sit here and watch that happen. I'm just going to go to one that I've already created uh in advance for you guys.
So I'll switch over to my index. So this is my vector search index now. looks very similar to the table. This is just it's also a Unity catalog entity and it's actually linked to the table we created the index from. So what that means is when new tickets and customer support cases end up making their way into that table, they'll automatically get embedded and ingested into this index whenever a sync is triggered. So there's literally zero embedding and ingestion pipeline management needed for in this case.
And notice that this is an entity in Unity catalog. I can do the regular things I can do with entities in Unity Catalog. I can go to permissions here. I can grant permissions to whoever needs to be able to access this access this index. It's just a regular Unity catalog entity. So, we successfully created our index. Now that we've created the index, it's time to create the agent that can actually use that index to help the customer support team resolve new cases.
So, I'll switch over to playground here. Now I'm going to select Claude 37 as I know it's a pretty good model. Not as good as Claw 4, but I'll select Claude 37 for now. Uh, and I'm going to add our vector search index as tool. Oops. Have to select vector search. Okay. And then I'm going to ask it the same question that we asked uh, you know, the Nirvana agent before. My customer is saying that they're getting this system internal error 00002 on their smart speaker.
How do I help them? And so behind the scenes, the agent is going to decide how it's going to answer the question based on the tools that it has available. In this case, only our vector search index. And it's going to create and execute a query against that vector search index, take the results of that query, and pass it to Claude 37 Sonnet to actually answer the question. Now, spoiler alert here. It's probably going to retry a bunch of times, and we're going to be looking if it's actually able to answer this question in a grounded way.
Because since this is just a regular vector similarity search, it's highly unlikely it's going to be able to find the ticket with this super specific error code that we're looking for. Since the embedding model has likely never seen that exact error code in its training data, so it looks like it finally answered. Let's see. Let's see what it came up with. Okay. Yeah, the AI judge is already telling us this is not grounded.
So, it tried a bunch of times. It's telling us, yeah, the exact error code doesn't appear in our database. That's a hallucination. It's definitely in the database. It just wasn't able to find it. And if we scroll down, you know, the AI judge is telling us this this is just not a grounded answer. So, the error code appears on smart speakers, but the retrieved context describes a similar issue, and the retrieved context does not specifically mention that error code.
Okay, so this was a hallucination. Um, and so it it answered the question, but is going to need to figure out how to improve this. She's going to need to figure out how to understand the quality of this agent. How good is it? She's going to need to be able to um systematically evaluate it and then figure out if she can improve it. So that's what we're going to do. Now that we've created this agent, we're going to have to improve it.
So, we're going to run an evaluation comparing a few different retrieval configurations, including hybrid search and reranking to try to make our agent better. And so, with the release of our re-ranker this summer, we're going to be providing an out-of-the-box notebook that just does that for you. Uh, it basically helps you automatically evaluate and uh automatically evaluate different retrieval configurations for your use case. uh and it's going to generate agents against that evaluation set and evaluate them against them uh for whatever retriever configurations you want to test.
So basically all I have to do is fill out the first cell here and then just run the notebook and it'll just do it for me. So in this case I just had to provide my source table. I had to provide my vector search index. I had to provide my ID column and oh I also had to provide an LLM that I'm going to use as the LLM that powers the agent. Uh, and then I just had to give the agent a description um, so that it knows what it is.
Um, so it can actually do execute the task. So I just told it that it's a rag chatbot designed to help customer support agents answer questions uh, etc. And then for the synthetic data generation, I need to provide some example questions to help guide the synthetic data generation. So you know what are questions that c that these support agents might be asking? How do I fix an off issue for the doorbell cam? or the customer says the smart speaker isn't turning on or the router pro is blinking.
You know, those kinds of things. Now, most importantly, let's look at the retriever configurations that we're going to test today. So, we're testing two retriever configurations. The top one against the bottom one. Now, they're both going to be retrieving 10 results from the vector index, but notice that the query types are different. So, in the first one, we're just going to be evaluating the naive implementation that we just tested.
Basically, just using ANN is approximate nearest neighbors. This is just standard vector similarity search. And in the bottom one, we're going to be testing our hybrid search. So this is going to help us in situations where there might be domain specific vocabulary. Let's say a specific product name or hopefully, you know, a specific error code. And so um I've also added columns to rerank here, which is going to enable our reranker.
So our re-ranker is now going to be able to look at this column, the text column that we've provided, and hopefully even boost the quality even more. So generating the synthe synthetic data, running the evaluation with the LLM judges. This can take a few minutes. I've already ran it in advance. Literally once you run the notebook, you just get this like beautiful evalui uh that we're actually really proud of here. So let me show you what it guys what it looks like here.
So we're evaluating the green dot which is the you know mature implementation that has hybrid and has re-ranker with top 10 results against the blue dot which is this naive implementation that we started with which is just the you know typical vector similarity search. And we can see that just by enabling hybrid and re-rinker, we were able to boost, you know, precision and chunk relevance by 24 points. We were able to boost context efficiency, which is another really important metrics for LLM judges, uh, by 29% and we were able to increase groundedness by 21%.
So this is huge. We already have a much better configuration in in just just by running this notebook. So now that we have this better configuration, let's take a step back. We've done most of the work here of creating a super high quality agent. Um, but we want to show you a sneak peek of how we can make it even better. And so we're going to show you our full text search. This is going to help our customer support team resolve tickets where there's a very specific error code even more quickly and accurately.
So I'm going to switch over to a notebook here. Now I'm as we see I'm querying our index here for this very specific error code but I'm using the query type ANN so I can run it uh and as we've seen multiple times unfortunately ANN is just not cut out for this ANN is just a regular vector similarity search using an embedding model and that embedding model has definitely never seen this uh error code so if we look at the results yeah this has literally nothing to do with the error code that we're looking for so what we can try is I can try to switch my query type to hybrid and this actually might work.
This might this might help. So, I'm going to try that. So, we can try hybrid search and it's it's possible that it'll help, but it's doing both keyword search and ANN at the same time and then fusing the results. So, even if it does work, let's see if it does. Okay, in this case, it didn't even work. But, uh even if it does work, there's going to be noise mixed into the results from the regular ANN. So, if you're searching for this super specific error code, all you care about is that specific error code. you don't care about doing a similarity search against that error code that AMD embedding model has never even seen before.
So recently as customers have been moving beyond simple rag, this is what they've been asking for. They're starting to see a need for keyword precision without the noise of ANN in their similarity searches in situations just like these where the keyword is literally the only thing that matters. So we've just added a full text search option. So all you need to do is just change your query. Same API, just do a full text search query and we get the results that only correspond to this specific internal error.
So this is huge for us. Um the results are good. Now let's see what the agent looks like that can actually use this. So let's switch over to the playground. So once again, we're going to select the naive implementation, which is just calling ANN on our vector search index. And we're going to do a comparison side by side with our super special secret hybrid search and full text and reinker agent that we saw at the beginning.
And we're going to ask it the same exact question. My customer is getting this super specific error. How do I help them? Now, behind the scenes, once again, the agent on the left is our naive agent. So, it's just going to call the vector search agent with regular similarity search, and it's probably going to hallucinate just like it did before. The agent on our right is our new agent that can use full text search, hybrid search, and our reranker to get the best possible answer for the support agent.
To be completely fair, neither of these are simple rag. You know, they're both backed by a massive and automatically updating vector index, but our agent to the right is just taking it to the next level in terms of quality by using all of our capabilities to the max like hybrid search, reranking, full text search. Uh, and as we see, the agent on the right has already completed and it's answered the question. Let's see.
Yeah, so it retrieved the document that has that error code. You know, restart the speaker, bring it closer. As we saw before, that's the resolution. Um, and this one took a while to answer. It looks like it retried like five times because it couldn't find anything that had to do with that error code. And in this case, like it didn't even retrieve anything for with that error code, but it's just hallucinating an answer.
So, as we see, the agent on the right is able to resolve this case for our customer support agents, and the agent on the left is just it's too naive and it's not going to help them. So, we've been able to go through this quality loop together and get something that can help our support agents. So let's take a step back here. That's our demo. We started with our massive data set of previous support tickets and their resolutions.
We created a very large scale index to be able to retrieve from that set of support tickets and their resolutions. Then we created this kind of basic agent that could use that index to help the support team resolve new cases, but it just wasn't enough. We wanted to make it super high quality. So, we ran an automatic eval with synthetic data generation to see if our out- of-the-box hybrid search and reranker would actually help the quality and they really did.
And finally, we gave you guys a sneak peek of what's coming soon, which is our full text search. We showed you how can make the agent handle these edge cases where the customer is expecting or is experiencing a very specific error code and it was able to answer the question perfectly. So, you might be wondering what's coming next for us in vector search. Well, we're coming soon with this full text search capability that, you know, we we previewed to you guys today.

34:51 Roadmap and concluding remarks

This is going to be regular largecale keyword search with, you know, functionalities like filtering and faceting. Now, we're releasing even more capabilities around cost management, including things like scale to zero capabilities to reduce your costs during development and all sorts of budget policies and tags to allow you even finer control and visibility into your costs. Now, some customers have actually been really pushing the limits of our system in terms of load.
So, we're actually going to be introducing some native support for high QPS use cases. So, this means no more creating multiple endpoints and load balancing across them. We're going to have a native solution for this. Now, we're also working on more governance capabilities. For example, when your users are chatting against your knowledge base, it's probably best that they can only get answers to data that they should have access to.
And right now customers are kind of implementing this themselves using our filtering capabilities. So we want this to be a more native experience to do row based access control for your vector search index. And finally we're working on rank boosting. So you can boost results on attributes like recency for example to make sure that we're taking into account that the most recent docs might actually be more relevant in your use case.
So we covered a lot today. Let's do a quick recap. We went through the typical journey that we see customers going through when they depart their naive simple rag applications. We went through how do we make that journey a whole lot easier on data bricks starting from index creation and freshness to quality scale cost. We gave you some insider tips about retrieval quality and how best to think about it including when to use hybrid search and rerankers. and we showed you how it's done and created a super high quality agent to retrieve from our massive data set of customer support tickets.
And finally, we shared the road map. So, thank you so much for coming today, guys. Uh we really appreciate it. If you want more resources, we're going to be sending out a bunch of resources. Um, and or if you want to get in contact with us on some of those roadmap features, uh, for private previews, definitely scan this code and just fill out which private previews you're interested in participating in, and we'll be in contact very soon about getting you guys into those private previews.
So, everybody scanned. Okay. Thanks so much for coming today, guys. Uh, we really appreciate it.

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.