⚡️The Rise and Fall of the Vector DB Category

1 May 2025

Ask about this episode

Ask anything about it. ChatGPT or Claude reads this page and answers with the times it was said.

Connect VO and ask about every podcast you hear, including the moments you saved. Add to ChatGPT · Add to Claude

In short

Podcast Notes: ⚡️The Rise and Fall of the Vector DB Category

Podcast Overview

  • Title: Latent Space: The AI Engineer Podcast
  • Description: A podcast by and for AI engineers, covering news, papers, and interviews related to Foundation Models, Code Generation, AI Agents, and more.

Episode Summary In this episode, the hosts discuss the rapid rise and subsequent decline of vector databases, especially in light of the explosion of embedding-based applications following the launch of ChatGPT. The conversation highlights the misconceptions surrounding the necessity of vector databases in AI applications and the convergence of search technologies.

Key Points

Introduction

  • Background on Trondheim, Norway, where host Joe Christian Bergam is located.
  • The focus of the episode is on the rise and fall of vector databases, influenced by embedding technologies and search systems.

The Rise and Fall of Vector Databases

  • Vector databases, like Pinecone, experienced significant growth post-ChatGPT due to the demand for AI applications using Retrieval-Augmented Generation (RAG).
  • A misconception arose that embedding-based similarity search was the only effective method for retrieving context for large language models (LLMs).
  • However, traditional information retrieval methods remained valuable and applicable.

Key Concepts

  • Retrieval-Augmented Generation (RAG): A method combining retrieval and generation, where embeddings play a crucial role.
  • Vector Embeddings: A representation of data points in high-dimensional space that became mainstream after the rise of generative AI.
  • Convergence of Search Technologies: Many database technologies, including traditional ones like Elasticsearch and PostgreSQL, now offer vector search capabilities, diminishing the uniqueness of vector DBs.

Insights on Vector Databases

  • Joe notes a distinction between the companies (like Pinecone) and the broader category of vector databases, suggesting that while the technology is valuable, the standalone category may decline.
  • The increasing integration of vector search capabilities into existing database solutions raises questions about the necessity of dedicated vector databases.

Embeddings

  • Embeddings are crucial for representing complex data, especially in multimodal contexts, but using them alone for similarity searches is insufficient.
  • Effective search systems should incorporate metadata, freshness, and authority alongside embeddings for better performance.

Recommendations for Search Systems

  • Start with classical techniques like BM25 for keyword matching as a baseline.
  • Implement a hybrid search strategy combining keyword and embedding-based retrieval to improve results.
  • Consider adding re-ranking layers for better quality but be mindful of the performance implications.

Knowledge Graphs and GraphRAG

  • Knowledge graphs are discussed as an alternative to vector databases for information retrieval.
  • Building a robust knowledge graph remains a significant challenge, and the integration of relational and graph-based methods can enhance retrieval systems.

Future Considerations

  • The episode emphasizes the need for better embedding models tailored to specific domains (e.g., legal, medical) to facilitate efficient retrieval.
  • The discussion also touches on the potential of visual language models and the challenges of scaling embedding technologies.

Conclusion

  • The episode encourages a nuanced understanding of RAG and vector databases, emphasizing the importance of adapting to new developments in search technology and embedding methods.
  • Listeners are invited to connect with Joe on social media platforms for further discussion on these topics.

Call to Action

  • Connect with Joe: Engage with Joe on X (formerly Twitter) for more insights into AI and search technologies.

Additional Resources

  • For full show notes and more episodes, visit [Latent Space](https://latent.space).

Written by AI. May contain mistakes. Listen to the episode to check what was said.

Hear the part that matters, and keep it.Open this episode in VO. Double tap your headphones to save a moment as you listen.
Get VO free

Transcript

Automatic transcript. May contain errors.

0:02Okay, hi. So this is another Lightning pod with Joe Christian Bergam. Did I get it right? You're over in Norway? I'm over in Norway, Trondheim, Norway, in the center of Norway, yes. What should people know about Trondheim? It's a small city. It's easy to get around. There's a great technical university here. The climate sucks a little bit, but it's easy to get things done in the winter. So, yeah. I've never been over. I've been to AuraDev, I think, which is over near you guys. But yeah, what we're here to talk about just generally your hot takes on RAG, search, vector databases, all that stuff.

0:39I think you've taken to publishing a lot more recently on X and that's gone really well. So I'll just kind of go into that main thing that everybody knows you for, which is your piece on the vector databases, the rise and fall vector databases. So maybe give us the background of like why you felt compelled to write this. yeah first of all i think i had to go a little bit back right so i have a long background in search and working on infrastructure for search like i've been in search working on search systems for 20 years at yahoo company also fast search and transfer here in tronheim and norway and also working on embeddings neural search all of those things right leading up until chat GPT, the chat GPT moment, like November 2022.

1:30And then there was some kind of cookbook, I think, from OpenAI where they said, okay, this is how you can do connect chat GPT with your data and here's embeddings. And I think then a lot of developers got into this is how we can build cert. This is how we can do RAG. And I think there was like this unnatural connection, meaning that between retrieval in Rack, that it had to be vector embeddings. By the way, I have a small role in that. I actually was the one who wrote the Chroma example in the OpenAgg cookbook. You did? Okay. I was an angel investor in Chroma before they became a vector database.

2:11And then I was just helping out. I'm actually a huge fan of Jeff and Anton from Chroma. I mean, I think Anton left, but I think they've done a great job. but promoting retrieval for AI and infrastructure. And they did a lot of great things. So I really enjoy talking to them on X. Anyway, and then we had the whole vector database. I think Pinecoin was one of the pioneers framing it as a new infrastructure category. If you need to work on embeddings, you have to use a vector database. And naturally, then if you want to do anything in AI, then you need to have a vector database. And that was my primary motivation for writing that piece and looking a little bit back, you know, what happened and where we are now and how I see it.

2:58And yeah, so that was the pure, pure motivation. Okay. And the general thesis, I guess, if you want to just sort of recap that, like, you know, I think it's a very fast rise and fall. like Pinecone was a dominant player for a long, long time. And, you know, I don't know my exact sources because there's a lot of rumors going back and forth. But apparently they went up to like 100 million AR very, very quickly. They raised a big round. And then suddenly a lot of people started leaving. Like suddenly it went from cool to uncool very quickly. And I don't understand why. I don't understand that either.

3:34And I think also they repositioned a little bit going back to their core messaging. If you go to their website now, it looks more developer focused. It's not the memory for AI. It's not like enterprise-ish. It's more towards developers now. So I think that they're trying to go back to their original roots. I think that's a good thing. But also, of course, there's been a lot of competition in this space, a lot of new companies. One of the upcoming stars is Turbo Puffer, kind of same SaaS model, a little bit different pricing. and they really talk to developers. And I'm not saying that the companies are dying, right?

4:13I'm just saying that the separate infrastructure category is dying, right? Because you have vector search capabilities in almost any DB technology nowadays, right? And you have it also in more traditional search engines like Elasticsearch, Solar, Vespa. So I think there's like convergence on features on both parts. So, and then you have things like PG vector in Postgres. A lot of people, you know, get confused. Okay, I have already a DB. It has vector search. Why do I need another DB, like a vector DB? So the whole database concept. So I think those companies, I mean, there are lots of great technology here.

4:56Don't get me wrong on that. But I don't say that the companies are dying, but I'm saying that the category is dying. So there's this distinction. And I think a lot of people like oversaw that and like came at me and say that you know because they had some kind of hate around some of these companies and they said yeah you know go fuck bank on and whatnot right but i actually say that the category is dying and i'm actually want to call these new companies that they are like search engines and i want to go back to the natural i think that's a more natural abstraction for connecting ai with knowledge and all the arguments for doing rag i think the natural concept there is search.

5:36And I think one of the insights I have from, I use Windsurf a lot. I love Windsurf. They're like cascade mode. And if you ask it, like, what are the tools you have available? And like list like 17, 18 tools, like edit files. But there's also like things like search code base, search the web, grep. And these are like search abstractions, right? And I love that idea where you like just connect the reasoning model with these tools that are essentially search tools. And that can help the agent or the LLM to actually formulate the query. You know, should I do a grep or should I do more of a semantic search or should I do more a keyword search or should I just search the web?

6:16So I think that's more like the natural abstraction instead of jumping into, you know, vectors and how you represent. That is more of like a detail like of how you implement search yeah um it's interesting that we fixated a lot on on vector like you know dents and biddings and all that and i think now we're sort of broadening out i will also mention that chroma i think from the start has always said they're kind of going after information retrieval and not so much not so much uh you know the narrow sense of rag and i think like broadly this is the consensus that you know like uh the the category was was never really going to be lasting for that long uh it was just there was just a brief period of time from my one of my favorite early tweets in ai uh you know this post jgbt phase was um i i summed up all of the fundraising that happened in vector databases for and it was something like 230 million, all put into all the vector databases.

7:20And that was more than the entire lifespan fundraising of MongoDB. Right. So basically, they cannot all win because they've already taken more money than supports one of the de facto winner companies in NoSQL. Yep. Interesting. I think also on MongoDB, they brought a new category in NoSQL goal. Right. And, but nowadays all the other database players have also caught up, right? So now even MongoDB has relational SQL, right? So there's always like this convergence, but MongoDB kind of, it sticks, but I don't think that for Pinecoin that was originally leading that movement, it won't like stick in the same way.

8:08It's too narrow. It's too narrow. Yeah. But I would like to say one more thing about embedding. So people like, okay, Joe, but embeddings is really important. And I also think that embeddings is really important, right? Because you can represent more data than ever before, right? Multimodal, whatnot. Run into a neural network, get an embedding representation, and then you can move this embedding representation around in vector space and adjust to your domain or whatever you're doing. So it's really important. But what happened was that it went mainstream, right? It went from these big tech companies like Google, Yahoo, Facebook, all of them, you know, been working on embeddings for a long time for a lot of different tasks, right?

8:50But with post-ChatGPT and we got the embedding APIs from OpenAPI, it suddenly became mainstream. Like every developer would start using embeddings, right? And what to do with them and similarity search and so forth. So I'm not against embeddings, right? embeddings are here to stay. It's just that it's not only about similarity searches in this kind of embedding space. And then I think more people actually realize that you actually need something more to it than just embedding and a cosine similarity to do search well, like things like freshness or authority and all of other signals that really plays into a role in web search.

9:35And I remember one of the OpenAI guys wrote, like, you can embed the whole web and then you can build the next generation web search. And I thought, like, okay, just looking at semantic similarity, that's not going to play out too well. So, yeah, I mean, they're trying to sell you their model, right? So what they're going to do is say those very hypey things. Yeah, I mean, the way that I put it is always you're always going to want to do a hybrid query. You always want to add metadata and, like, do all that stuff. I think my question to you is maybe a very ageless question, which is, should they all be the same system?

10:09Right. Your search system, like Elasticsearch is typically like you duplicate your whatever your main storage or record is. And then you have that search index that is basically almost a complete duplicate. You just copy over the documents. Do you believe in that? Do you think there's a convergence here? This is a fantastic question. I think for a lot of use cases, right? And if you're already using some database like Postgres, it has this great extension, PGA Vector. And I know that I tweeted things about PGA Vector that was true in the start around the limitations of PGA Vector. But there was a rally around PGA Vector, like adding new algorithm, introducing actually two algorithms, both EBF and HNSW, adding half-vec, adding binary vectors.

11:01So actually, what you can see, PGA Vector is doing more in the capabilities of Vector Search than some of the real Vector Database players, right? So if you're only looking at, like, Vector Search capabilities and you already have your data in Postgres and you're operating at a reasonable scale, I think it's fair to use Postgres. Sorry? I think it's fair to use Postgres or use one database if you're operating at a really large scale and you do some vector search-related workloads and you also use a database for other types of workload, then it might make sense to just keep the data there. But if you're actually building something that really depends on search quality and your business depends on it, yeah, then definitely I think that you should consider, you know, actually using a real kind of retrieval or search engine to represent the data there, right?

12:02Yeah. And is the search system, how closely entwined is RECSys and search in your mind? Yeah, and that's the thing with embeddings, right? embeddings, I think with embeddings and embedding-based retrieval, because embedding-based retrieval has been used for a long time in recommender systems, like large-scale recommender systems like TikTok or Yahoo News or things like that. Apparently, TikTok published their Rexys recently, which is kind of interesting. Yeah, it's like a cascade of... There's always in this system that operates at a really large scale, there's always... a cascade of different stages where you first have to retrieve over the candidate pool, and that's typically using embedding-based retrieval.

12:49And then you have layers of re-ranking layers that finally you end up with 100 candidates or something like that, that you actually present to the user. So I think definitely there's convergence in that embedding-based retrieval is also more common for search systems. So there's convergence there on how it actually sold on the technology spectrum. Yeah, yeah. Any other thoughts on like, I guess the confusion for a lot of folks who are newer to this, right, who are, they understand now that you cannot just have embeddings only and quasi-similarity only. It's just the sequencing. of like, what should I do first?

13:38What should I do second? What should I do third? Everyone says like, you know, re-ranking is like super important, but that, you know, it adds like maybe like 3 % to 4 % to your results. And maybe that's like the lowest hanging fruit. So I'm always trying to figure out like, what should I recommend to people, right? Like that they should start with. Like, you know, like a Postgres or MongoDB as their transactional and in the end vector store. Then they can split it out to maybe use Elasticsearch or Vespa. I don't know if that would be the recommendation there. Redis, I think, is also trying to push themselves there very, very hard.

14:18And then you add the Rexys. Is that a good sequence? I think it's really hard to come up with general recommendations without knowing what you're doing. But if you're looking to build a RAG application, I think most people are interested in something related to RAG, right? Where you have some data and you have to transform your data. I think first, I think it's Hamel that always talks about look at your data or everyone's talking about look at the data. So first of all, how to get your data in a cleaned up way. If it's like PDFs or whatnot to do that, there's things there. I think actually that a very strong baseline is the classical BM25 algorithm that's been around for 30 years, right?

15:03It's keyword matching, but it offers a very useful baseline for a lot of different search use cases because it gives you that baseline, right? Then you can start looking at using an off-the-shelf embedding model to also embed a model. And all of the engines, more or less, most of the engines have some kind of hybrid search capability. start to play with that and then if you can afford it both from a latency perspective and a cost perspective you can look at adding like a re-ranking layer on top of that how you stitch that together uh depends on you know your do your framework of choice but i think most of you you can you can stitch this together like with multiple different apis depending on uh your budget i guess yeah and you know i i always tend to recommend people to do this offline as much as possible like batch line whatever most people don't need fully online systems yeah and that that's a friction point because i've been used to working on kind of constrained online systems like at a pretty significant scale and where there's always like everything is online needs to be a low latency and then I have problems adjusting to, you know, when you want to do things at a much lower scale.

16:21So I'll give you an example, like calling out to some kind of embedding API to get JSON floats, you know, it's not something, you know, you want to do if you're running at thousands of QPS, you don't want to add that dependency. You want to have something local, something that is faster. So I've always been like, okay, I'm going to call out to this endpoint. and it's going to take 300 milliseconds to get this large float. It's something that I like, oh, shrug. But now I'm shifting towards more, you know, it's easy. It's an API-based service. You don't have to think about it. It's just there. So it's much easier to build from, right, to have something that is API-based.

17:01So I'm trying to embrace that. I see, I see. No, so when I say offline, I mean more like not in the critical path, like batch. systems because, yeah. And it's interesting. I don't know if you've looked at Postgres ML for running the models alongside of the database. Are you bullish on that kind of stuff? No, I'm not. I'm sorry. I'm not. I think this is, yeah, we also seen other players that tries to, you know, move a lot of the logic into the database, agentic embedding inference and whatnot. I think it's the right direction is to keep infrastructure a little bit separate from that because they're like different scaling properties.

17:43I think people can stitch those two things together instead of trying to do everything with one single platform. So no, I'm not bullish on that because I don't believe in the developer experience of writing like these huge SQL statements for transforming data from this and then embedding it and then writing it back and expressing this in the database. It's like, what does this do to my database? Is it like calling out? What's going on? I tend to want to have more control over cost and performance and what's going on than just writing some really large SQL to execute. Yeah, it's interesting. I think there's this constant tension between what should live in the database versus what is an external system.

18:27I don't think it's a clear cut. Like, you know, classic, like the cron service, which we have in Superbase. Okay, so cool. Like any other like hot takes or, you know, what are the biggest criticisms that you got after you published this? You know, like, you know, what do you agree with? What do you, what do you disagree with? You know, just. Yeah, I think one of the things that people pointed out, if something goes semi viral after a few days, you discover that there's a lot of replies that you didn't see and you're like, okay. But I think one of the things that stood out was that people said that Joe is saying that RAG is dead because of vector database infrastructure is dead, right?

19:06And I think that was a misunderstanding as well. And I think that comes from people making the connection between RAG and vector databases. It's so strong. So when I'm saying that the vector database infrastructure category is dead, it's like, okay, RAG is dead. And I think that RAG is definitely not dead, right? Augmenting AI with retrieval or search is still going to be relevant. And I think it's going to be relevant for a very long time right so that was one of the things i mean i saw that you know now we have 10 million model longer context and you have the same cycle repeat every time every time i'm just like you know for me you know i i put out this like cryptic tweet i was like um you know this is llama 4 is going to reignite the long context versus fact debate but it will actually resolve the debate but not in the way that you want yes hold on this is too cryptic to me no it's just like there's there's there are like five other guys like saying oh like you know long context skills rag like rip rag i'm just like guys you you are you're idiots or like you're you're engagement farming basically like a lot most most likely you believe like they know what they're doing and they're just saying nonsense just just to just to have fun.

20:26And people who don't know take them seriously. Yeah. But also, it's nuanced to this, right? So I've seen people do RAG when there's no need to do RAG, meaning that, you know, if you have one PDF, like, with visual information and things and you want to chat with that, definitely that case is probably like that if you don't have, like, high QPS and things like that. So I think there's nuances around this that there's definitely I had a call with someone that had like 300 articles. And I said, you know, this will just fit into the context window of one of these Gemini models. You don't have to have a vector database for this case.

21:07And they were so surprised that when I said this, can you really do that? Yeah. But it's also look at it. It's like just, we had like 4K context window, right? And now 10 million, right? So, and that's fast, right? And then people are still running their initial demos from early January 2023, right? So where you were dealing with 4K or 8K, right? So some parts of it is still not relevant now because we have longer context windows. But I think retrieval, of course, it's going to be there for a long time. One example I love to bring up is like one of these small toy data sets from So, Trekk COVID is like 170 ,000 documents, and it's already 36 million tokens.

21:53And you're not going to load all of that, you know, for a single query. Yeah, awesome. Do you have a take on knowledge graphs and GraphRag? I think that the GraphRag, well, I have a lot of takes around it. I think that one issue, I mean, graph databases is a database that kind of solves one particular problem. and it does it well to traverse the edges in the graph and random access and jump across. But the core issue is actually to build the knowledge graph, right? The entities, the relationships. So if you say graph databases or graph rag is going to kill vector rag and all that discussion, I think the first issue is to actually build the knowledge graph the first place, right?

22:39And if you use a search engine or a dedicated GraphDB to actually speed up and accelerate the searches, okay, fine. But I think people are like, okay, if I'm going to do GraphRag, then I need a graph database. And I hate that connection between doing something and then connecting it to some specific technology. And I think a lot of people do that, right? You jump from some concept into some technology. You can also do graph exploration with a search engine, right? So you don't need a specific technology to do it. And can graph rag be better than vector rag? Yeah, for sure. In some cases, it might make sense or hybrid or whatnot.

23:20But I think people get caught up in some specific technology all the time. Yeah, but I think that's okay. But I'm still trying to validate the presence of knowledge graphs in LLM applications because obviously with LLMs, it is much easier, better to create these entity triplets and all that. So theoretically, it should be better. Yeah, I mean, in the past, knowledge graph has been a dirty word, but now maybe it's not. Maybe, yeah, maybe. I think with LLMs, you can do a lot more things around data generation, you know, in general. So generating those triplets is a bottleneck, right? It's been a bottleneck.

23:59And now we have LLMs, so I agree. you know, now it could be easier to actually build what matters, right? Which is those triplets. Okay. Awesome. Any other opportunities that you find? I know that you mentioned Gina. I think they're a prominent European startup in RAG. And then I think over here, Voyage just got acquired by NVIDIA. You know, anything on the embedding side, like do we need a lot better embedding models? Is what we have from the big labs good enough? Oh, I hope to see. I mean, Voyage was really leading the pack on doing domain specific embedding models like legal PDFs. And what I want to see is more embedding models in that direction where you essentially, you know, represent this PDF as an embedding or multiple embeddings, you know, for legal domain or finance or health.

24:56I hope to see that grow so that you can have a better starting point than just those text models. And I've been a huge believer in using visual language models as the backbone for embedding models, where you essentially take a screenshot of a page. You don't have to go through OCR, so you then get a much richer representation. You don't have to go through these complex processing pipelines. So I hope to see more innovation. I'm not sure if it's going to happen because I think it's a difficult business model to be in, like, because you have to have an API-based service and you have to do batching and you have to make up for the compute.

25:36And then, you know, are people willing to pay for it? And I think maybe that's why Voyage got acquired. I think also G9 is doing a lot of great things in this space now, especially in European languages. But I think every company is trying to move up in the value ladder, right? They want to move into enterprise search or move into a different direction. So, yeah, but I do hope that we will see more and better, like, general embedding models. Yeah, yeah. I mean, I'm sure, I think the Voyage guys are very happy because it seems like they got acquired for a lot. Yeah, okay. So, okay, cool. Anything else before we wrap?

26:12Any calls to action? Any, you know, parting rants on the topics of the day? No, I would love, I mean, if you want to connect with me, you know, for the audience, you can find me on Axe. I'm under the handle Joe Bergen there. So I love a show that shout out on Axe. So I hang out there quite sometimes. Yeah. Yeah. I mean, it's where the AI community is, you know, although I've been, I'm always trying to like grow on LinkedIn or YouTube. I mean, you know, there's a lot more people there, you know, there's Twitter is just this like echo chamber. Yeah, but it's, it's not the same. I mean, Axe's, I mean, And we wouldn't have this meeting me and you without X there, right?

26:50So it's a great place for really high signal to noise. And I think the AI community there is really great. Yeah, awesome. Well, thank you. Thank you so much for having me, Svex. This has been awesome.

From the publisher

Note from your hosts: we were off this week for ICLR and RSA! This week we’re bringing you one of the top episodes from our lightning podcast series, the shorter format, Youtube-only side podcast we do for breaking news and faster turnaround. Please support our work on YouTube! https://www.youtube.com/playlist?list=PLWEAb1SXhjlc5qgVK4NgehdCzMYCwZtiB

The explosion of embedding-based applications created a new challenge: efficiently storing, indexing, and searching these high-dimensional vectors at scale. This gap gave rise to the vector database category, with companies like Pinecone leading the charge in 2022-2023 by defining specialized infrastructure for vector operations.

The category saw explosive growth following ChatGPT's launch in late 2022, as developers rushed to build AI applications using Retrieval-Augmented Generation (RAG). This surge was partly driven by a widespread misconception that embedding-based similarity search was the only viable method for retrieving context for LLMs!!!

The resulting "vector database gold rush" saw massive investment and attention directed toward vector search infrastructure, even though traditional information retrieval techniques remained equally valuable for many RAG applications.

https://x.com/jobergum/status/1872923872007217309

Chapters

00:00 Introduction to Trondheim and Background
03:03 The Rise and Fall of Vector Databases
06:08 Convergence of Search Technologies
09:04 Embeddings and Their Importance
12:03 Building Effective Search Systems
15:00 RAG Applications and Recommendations
17:55 The Role of Knowledge Graphs
20:49 Future of Embedding Models and Innovations

More from Latent Space: The AI Engineer Podcast

All 247 episodes
⚡️The Rise and Fall of the Vector DB CategoryLatent Space: The AI Engineer Podcast
Listen in VO