OpenNashPodcasts

The Cognitive Revolution

Write, Change, Recall, Forget: MongoDB's Pete Johnson on How Retrieval Drives Agent Performance

1 Sep 2026 · 1h 35m · Nathan Labenz, Pete Johnson · 21 quoted facts

▶ Play episodeOriginal source ↗

In brief

Pete Johnson, field CTO of AI at MongoDB, argues that how well an AI agent performs, and how much it costs to run, depends mostly on retrieval: finding the right few pieces of data to hand the model. He ties this to database history. Storage was once scarce, so data was split into linked tables. Now developer time and token cost are scarce, so flexible documents, search and memory matter more.

The main tension is between brute force and precision. Huge context windows and 'token maxing' (feeding models as much text as possible) proved expensive and can confuse the model. Pete says better embeddings, re-rankers and memory systems are the alternative. But agent memory is unsolved: writing and recalling are manageable, while forgetting is hardest. He stresses that agents are only about eighteen months old as an industry, so no standard stack exists yet.

Key insights

  1. Cheap storage made duplicated data the faster choice

    In 1970 disk was the costliest part, so relational databases split data across linked tables to avoid repeats. By 2007 time was the scarce resource, and storing a copy of an address inside each record meant one disk read instead of three.

  2. Stuffing the context window hurts cost and accuracy

    Pete cites Uber burning through its 2026 token budget in thirteen weeks. He also cites studies saying models weight the first and last 7,000 tokens most, so material in between can muddy the answer.

  3. Embedding models are not yet interchangeable commodities

    Pete says the choice of embedding model (the model that turns text into numbers for similarity search) changes retrieval quality materially. He claims Voyage models lead a public benchmark by up to fourteen percent, and that a re-ranker can add another five to ten percent.

  4. Memory needs write, change, recall and forget

    Agents must retrieve only relevant memories under a token budget, then write results back. Because memories lose value over time, pruning outdated ones is the hardest part, and Pete says nobody has a settled answer.

  5. Choosing a measurable problem predicts AI project success

    Pete says stalled projects usually picked the wrong problem, not the wrong technology. Call centers work well because cost per call and call volume are already tracked, and he warns that bad data or security gets amplified by AI.

Questions

What is the difference between SQL and NoSQL databases?

SQL databases split information into linked tables so nothing is stored twice, a design from when disk space was expensive. NoSQL databases like MongoDB keep related data together in flexible JSON-style documents, which Pete says is faster and scales better, at the cost of some duplication.

Why can't I just give an AI model all my company data at once?

Pete says it gets expensive, because you pay for every token (a small chunk of text) each time. Studies he cites also suggest models focus on the start and end of long inputs, so extra material in the middle can confuse them.

What is RAG and why is it back in fashion?

RAG (retrieval-augmented generation) means looking up your own documents and giving the relevant pieces to the model, so you don't have to retrain it. Nathan notes people declared it dead when million-token windows arrived. Pete says it is a priority again because filling the window costs several dollars per call.

What does it mean for an AI agent to forget?

Agent memories lose value over time, and an agent can keep treating an abandoned project as active, as Nathan describes. Pete calls deciding what to drop the hardest unsolved part of the write, change, recall, forget loop.

Are US companies ahead of the rest of the world on AI?

Pete says no. After visiting seven countries this year, he found the two most sophisticated customers in Mexico City and Sao Paulo. He credits worldwide cloud data centers and easy access to models for erasing geographic barriers.

Facts

Stated by the speakers. Each quote matches the transcript, which shows what was said, not that it is true.

IBM researcher E. F. Codd wrote the original paper that gave rise to SQL in June 1970.

“June of 1970 is when EF Codd, who's an IBM researcher, wrote the original white paper that gave birth to SQL”

0:06:31 · Pete Johnson · SQL origins · 1970

The first code commit to MongoDB was made in October 2007.

“in October of 2007 is when the first commit was made to MongoDB”

0:08:39 · Pete Johnson · MongoDB founding · 2007

MongoDB stores documents on disk in BSON, a binary form of JSON, which Pete Johnson says keeps one format from disk to client and makes it fast.

“we're storing it on disk in a binary form of JSON we call BSON, and that's part of why we're so fast”

0:09:39 · Pete Johnson · BSON storage

Pete Johnson said MongoDB's revenue for fiscal 2026 was about $2.5 billion.

“we're about 2.5 billion is what we ended our revenue. That was our revenue number for our fiscal twenty six”

0:12:24 · Pete Johnson · MongoDB revenue · 2026

In 2020 MongoDB noticed customers running their own Apache Lucene servers beside their clusters for keyword search.

“So in 2020, we noticed that a common use case for MongoDB was for people to stand up their own Apache Lucene servers co-located with wherever their their MongoDB clusters might be”

0:23:22 · Pete Johnson · Lexical search · 2020

MongoDB's managed service, Atlas, can be deployed in the data centers of Amazon, Google and Azure.

“which you can deploy your instances on any cloud hyperscaler data center you'd like amongst Amazon, Google, and Azure”

0:23:50 · Pete Johnson · Atlas deployment

MongoDB introduced Atlas Search, keyword search on its managed service, in 2020.

“So in 2020, we introduced what's now known as Atlas Search, which is on the managed version, the managed version of MongoDB”

0:24:25 · Pete Johnson · Atlas Search · 2020

MongoDB acquired Voyage AI, an embedding model company, in 2025.

“we purchased Voyage in 2025, which created this better together story”

0:28:23 · Pete Johnson · Voyage acquisition · 2025

Host Nathan put the price of MongoDB's Voyage AI acquisition at about $220 million.

“the price, at even at 220 million, which is, I'm old enough to remember when that was serious money”

1:17:07 · Nathan Labenz · Voyage price · 2025

MongoDB announced two aggregation pipeline stages, rank fusion and score fusion, that merge keyword and vector search results in a single query.

“we just announced a a pair of features, one's called Rake Fusion and one's called Score Fusion”

0:30:26 · Pete Johnson · Hybrid search · 2026

Pete Johnson said Uber used up its entire 2026 token budget in thirteen weeks.

“Like in the wake of what happened at Uber earlier in the year, with them burning through their token budget for 2026 in thirteen weeks”

0:16:24 · Pete Johnson · Token spending · 2026

Pete Johnson said Voyage released version three of contextualized chunking last summer and version four in the six weeks before the recording.

“we released version three of that last summer. We just released four of that in the last six weeks”

0:41:43 · Pete Johnson · Contextualized chunking · 2026

Pete Johnson said embedding vectors typically have from 256 to as many as 2048 dimensions.

“you tend to have at least 256 dimensions and sometimes as high as 2048”

0:44:05 · Pete Johnson · Embedding dimensions

Pete Johnson said Voyage AI models typically rank at the top of a Hugging Face embedding benchmark, which the transcript calls RTab.

“Hugging Face has a benchmark out there called RTab, that Voyage AI models are typically at the top of”

0:48:50 · Pete Johnson · Embedding benchmark

Pete Johnson said Anthropic has no embedding model of its own and recommends MongoDB's Voyage models.

“Anthropic does not have an embedding model in market. They recommend us.”

0:50:00 · Pete Johnson · Embedding models · 2026

MongoDB's auto embeddings feature automatically re-embeds a document's chosen field whenever it changes and updates the stored vector.

“Anytime an existing document with that attribute and it changes, we will automatically take that new, let's say it's text, put it through the embedding model, update the vector in the document”

0:52:25 · Pete Johnson · Auto embeddings

Pete Johnson said ChatGPT launched at the end of 2022 with a simple design: a query went into the context window and the model answered.

“When ChatGPT came out in 2022, in the end of 2022, it had a very simple application architecture”

0:54:15 · Pete Johnson · ChatGPT history · 2022

Pete Johnson said that, depending on the use case, a re-ranker can improve retrieval quality by about five to ten percent.

“you can get like a five to 10% boost at retrieval quality just by using a re-ranker on top of whatever your embedding model of choice is”

1:03:37 · Pete Johnson · Re-ranking

Pete Johnson cited ElevenLabs as an example of a company running multiple smaller agents per customer.

“There's a company called Eleven Labs out there, they have multiple agents per customer, this sort of micro-agent approach”

1:05:51 · Pete Johnson · Agent memory

Pete Johnson said Voyage 4 includes a free, open-weight 'nano' embedding model that can be downloaded from Hugging Face.

“But we also introduced something called the nano, which is open weight and free for anybody to download in off of Hugging Space”

1:28:18 · Pete Johnson · Voyage nano · 2026

Pete Johnson said Anthropic published the Model Context Protocol on the Monday before Thanksgiving two years earlier, and competitors adopted it by March.

“MC published MCP on like Monday before Thanksgiving two years ago, and by March, all of their competitors had embraced it as a protocol”

1:29:35 · Pete Johnson · Model Context Protocol · 2024

Chapters

  1. 0:07:30Why SQL began in an era of costly disks

    Pete frames database history around scarcity. Storage was the expensive resource in 1970, which explains normalized tables.

    “storage was by far the most expensive of those three things in 1970”
  2. 0:25:04From keyword search to vectors in MongoDB

    Pete explains how MongoDB added keyword search, then vector search as one more document field. That allowed hybrid queries.

    “At the end of the day, a vector is an array of floats, right?”
  3. 0:41:12Contextualized chunking and chunk-size tradeoffs

    Chunk size normally forces a tradeoff between context and precision. Voyage's approach aims to give better retrieval from smaller chunks.

    “it turns out you can get better retrieval quality with a smaller chunk size”
  4. 0:45:28Matryoshka embeddings cut testing time

    Nested dimensions let developers test smaller vectors without re-embedding all their data.

    “you just lop off the last five twelve”
  5. 0:50:00Embedding models are not a commodity

    Pete argues model choice affects retrieval quality, and so affects hallucinations, cost and speed.

    “Most people think embedding models are commoditized, and that is not true.”
  6. 0:56:54Smarter short- and long-term agent memory

    Pete traces how agents moved from simple chat to tools, looping and memory. He argues for selecting only relevant context.

    “the first 7,000, and like the last 7,000 tokens are the most important”
  7. 1:02:21Forgetting as the hardest memory problem

    Memory must be written, changed, recalled and forgotten. Pete says forgetting has no settled answer.

    “Write, change, recall, forget, because these things have a a half-life to them, right?”
  8. 1:08:47Build versus buy and picking measurable problems

    Pete describes three enterprise camps and says the right problem, with good data and existing metrics, decides ROI.

    “don't get solved by AI, they get amplified by AI”
  9. 1:24:54Advanced AI adopters outside the US

    Pete reports the most sophisticated customers he met this year were in Mexico and Brazil, because infrastructure access is now global.

    “the two most sophisticated customers I talked to this year were in Mexico City”

Transcript

0:00:00
Nathan Labenz

Hello and welcome back to the cognitive revolution. Today, my guest is Pete Johnson, a thirty-year technology veteran, now serving as field CTO of AI at MongoDB. We start with a brief history of database technology, going back to the 1970 introduction of SQL. And unpacking how the relative scarcity of disk space at that time informed data normalization as a design principle. And then how decades of Moore's law and the resulting evolution of constraints ultimately led to the creation of MongoDB in 2007.

0:00:36

This history puts today's acceleration into stark relief. As Pete recounts, in a remarkably short period of time, we've gone from being effectively forced to implement rag pipelines by the very limited context windows of GPT four-class models to rag is dead. When we first got million token contexts, to the brief token maxing window and subsequent budgetary fallout, to today, where rag is again a major enterprise priority, as company data is increasingly available for AI systems to use, usage itself is scaling, and naively maxing out the context window costs multiple dollars each and every time.

0:01:16

Pete's key point above all is that agent performance, and especially cost adjusted agent performance, depends heavily on effective retrieval. With this in mind, MongoDB has continued to ship the improvements that developers need to take full advantage of AI. Vector search, sorting methods, which combine traditional and vector search results into a single result set, a re-rank tool called Dollar Re-rank, and their own embedding models, powered by the acquisition of Voyage AI, which have some pretty cool features, like a shared embedding space across model sizes and a Matryoshka data structure.

0:01:56

Interestingly, while MongoDB customers are free to use whatever embedding models they like, Pete insists that embeddings are, contrary to popular belief, not yet commoditized. From there, we go on to talk about how developers are using these tools to build memory systems, the write change, recall, forget loop that Pete sees as the general pattern, and why forgetting is currently the hardest part. For now, Pete says it's important to remember that we're only eighteen months or so into building AI agents.

0:02:28

And as such, there is no established right answer, and nothing like a lamp stack for AI that enterprises can confidently buy and deploy without meaningful customization. We also touch on the lessons he's learned from talking to customers in India, Brazil, Mexico, and Europe, all just this year. And to my surprise, he reports that the most advanced companies he's spoken to in 2026 were, in fact, outside of the United States. Without further ado, I hope you enjoy this speed run through database history and high level AI readiness strategy for enterprises and survey of the still fast-evolving frontier of agent memory with Pete Johnson, field CTO of AI at MongoDB.

0:03:15

The Cognitive Revolution is brought to you by Mercury, the banking platform loved by over 300,000 entrepreneurs. I use Mercury's virtual cards, which make it super easy to set limits, expiration dates, category and even merchant-specific spending controls, to give my more autonomous AI agents, Aid and Clay, the ability to buy and test products. Recently, I asked if they could find a good way to split an AI generated image into layers, separating the text from the background and so on.

0:03:46

Two of the products they found were behind paywalls, but using their Mercury virtual card, which is limited to SaaS purchases only, they bought a month subscription, tested the products, allowed me to review the results, and then canceled the stuff we didn't need, all with functionally zero risk to me. This is already really powerful. And now, with spend, Mercury is making it possible to run an entire company's spending with the same level of ease and control. With spend, you can set granular budgets for every team, person, and all the agents you like.

0:04:20

Plus, you can process receipts automatically and even temporarily auto-lock people's cards if there are ever any issues. The future of spending money is dynamic, but controlled. So join me in the future of banking. Visit Mercury dot com to learn more and apply online in minutes. Mercury is a fintech company, not an FDIC insured bank. Banking services provided through Choice Financial Group and Column NA, members FDIC. The IO card is issued by Patriot Bank, NA, member FDIC, pursuant to a license from Mastercard International Incorporated.

0:04:56

Pete Johnson, field CTO of AI at MongoDB. Welcome to the cognitive revolution. Thanks so much for having me, Nathan. I appreciate it. I'm excited for this conversation. I've been a database guy in the past, and now we're all kind of everything guys these days with our agents greasing the wheels for us. But the I think one of the big themes that we're gonna get into is the Quality of data is still critically important to making things work, and I'm excited to learn everything I can from you over the course of the next hour or so.

0:05:31

Maybe just for quick starters, I remember first encountering MongoDB, like fifteen years ago, maybe when a young Guillermo Roush, who's now the CEO of Vercel, was showing it off in the context of what at that time was like, seemingly like crazy futuristic Node dot js applications. Like, wow, you can make JavaScript do these kinds of things, and there's a wait. There's a database that, like, works in this different way, where I'm not constrained by the schema that I already defined, like this was mind-blowing stuff.

0:06:04

I'm not sure we've got a lot of technical people in the audience that say AI engineer is kind of our number one profile, but I'm not sure everybody knows kind of the broad lay of the land when it comes to database technology. So I thought maybe it would be helpful just to first kind of contextualize SQL versus no SQL schema versus schema-less, give us kind of the high-level view, so we know where Mongo sits in this obviously bigger database space.

0:06:31
Pete Johnson

sure, I like to think of this in terms of the history, in terms of the different kinds of problems we've had to try to solve with software over the last sixty years or so. And where it really starts for me is in June of 1970 is when EF Codd, who's an IBM researcher, wrote the original white paper that gave birth to SQL. So that was June of 1970. I happen to have been born in February of 1970, so I am as old as SQL, Nathan.

0:07:03

And if you think about the kinds of applications we were building at the time as an industry and the kinds of hardware we had at our disposal at the time, the applications were very departmental in their nature, right? Not every not every company had a computer, and those that did, the people that were using it were often on the same floor or certainly in the same building. They were working nine to five hours. It was okay to have downtime on the weekend.

0:07:30

And if you think about the big three pieces of hardware at the time, memory, compute, and storage, storage was by far the most expensive of those three things in 1970. So if you think about how you might organize data, keeping in mind that the scarce resource was storage, you would, of course, do it in such a way that's now known as normalization. So you may have in university or in coding school, you may have learned things like first and third normal form, all about trying to lay out data on disk in the most efficient way so that you aren't storing any piece of data more than once.

0:08:09

The simplest example I can give with that might be my wife and I share an address, and maybe with a retailer, might want to know what our address is. There's two people at that address. You might have in one table the list of people in another table, you might have the addresses. You might have a third table that links the people to the address, so that you're only storing that address one time. And that's the most disk efficient way to do that, with, like I said, some kind of normalization.

0:08:39

Well, fast forward to 2007, which in October of 2007 is when the first commit was made to MongoDB. And the world is a very different place in 2007. The world has internet, the world has cloud, the world has mobile devices. iPhone came out in the US for the first time that year, so it's a very different world. And the scarce resource in that world, because we had forty seven years of Moore's Law between those two dates, the scarce resource in that ecosystem became time.

0:09:10

Because the kinds of applications that we would write that were in the cloud or that we would write for mobile devices, you could not have downtime on the weekends. It was not people who were confined to the same building. It was not nine to five use cases. So it was a very different world that required a very different kind of database. And that's what gave rise to NoSQL. Now, our flavor of NoSQL, which, like I said, that first commit was in October of 2007, uses a as its core JSON.

0:09:39

So you mentioned the stuff with JavaScript. That's why that was so popular fifteen years ago or so, is because what you get back from your API call is JSON. We're storing it in transit as JSON, we're storing it on disk in a binary form of JSON we call BSON, and that's part of why we're so fast is because we're keeping that format the whole time. So that when you serialize it off a disk, when it goes through our servers, when it ends up in your client, it's essentially staying in the same format that whole time.

0:10:11

So if you think about the kinds of applications that we've been building since 2007, like I said, disk space is no longer the scarce resource. If you take that address example, if you denormalize that data just a little bit, if you instead of storing it across three tables. If you have a JSON structure that has my name and my address, and then a second one that's got my wife's name and the same address, you're duplicating the address.

0:10:38

But what do you get in return? What you get in return is one disk read. So that's why it's faster. So instead of having to do three disk reads to get that same data, you can now do it in one disk read. Does that mean that every problem is solved by a NoSQL database or by MongoDB in particular? No, but it also doesn't mean that every problem has to be solved with SQL. And that's how that sort of evolved out of SQL was invented at a time where the problems were slightly different, and a lot of those problems still exist.

0:11:11

SQL is a certainly valid solution to lots of different problems that we still have. But when you need speed, when you need scale, and increasingly, when you need better retrieval quality, that's really where MongoDB shines.

0:11:25
Nathan Labenz

Reminded of the old saying that the problem has faded, but the solution persists. And there's, yeah, I see that in a lot of parts of life these days. Tell me a little bit more. You're you were just kind of getting to it, but tell me a little bit more about, I mean, Mongo's a pretty big company, 30 billion dollar market cap. Obviously, has made serious inroads into some of the biggest companies in the world as customers.

0:11:51

Give me kind of the next level of detail in terms of before the AI moment, and then obviously we'll get into that in depth. Um, what are the kind of big decision factors that would push an enterprise to go one way or the other with their database decision? And how are they? Do they typically do it on, like, an application by application basis these days, or do big companies feel that they need to have a single kind of consistent database technology for everything they're doing?

0:12:24
Pete Johnson

sure, it it's a mix. Like you just said, we're in like 75% of the Fortune 500. But if you look at the overall market, you mentioned our market cap, we're about 2.5 billion is what we ended our revenue. That was our revenue number for our fiscal twenty six. We're currently in the middle of our fiscal twenty seven. And that's about two, 3% of the hundred to 110 billion dollar database market.

0:12:47

Where most enterprises choose us is those first two things that I mentioned, when you need it fast, or when you need it at higher scale, because you're not storing disk, you're not storing that data across multiple places of disk. That's how you get the speed, that's how you can get better scale if you're if you're storing, if you're gonna retrieve JSON, because every modern programming language can serialize JSON into some object format so that you can use it immediately in your business logic.

0:13:14

And that's the other aspect of time. It's not just wall time for the transaction, but it's also the developer time of what do I have to do with this? Wad that I get back from my API call and then make some kind of useful business decision out of it. But what we see is right solution for the right problem. And increasingly, what AI has done is it's opened up the number of problems that were a better foot fit for than a traditional SQL approach, especially those at higher scale.

0:13:40

And that's why I mentioned the three things the speed, the scale, the retrieval quality has really become an important factor. It continues to, especially later here in 2026, as you start to see people strategize around token maxing, to evolve different kinds of agentic architectures in ways that we didn't see in the first half of 2026. Retrieval quality has become more important for AI, but it it it does end up being a mix.

0:14:07

It depends on the corporation. Some of them will take it workload by workload, and for this workload, we'll use Mongo, and for a different workload, we'll use SQL. Others are taking an all in strategy. It really varies based on, in some cases, how much greenfield versus brownfield do you have in your portfolio? In other cases, it's where's my talents already? I was just at for a major automotive company here in North America. I was just at a hackathon where we trained up like 250 engineers and turned them loose for three days on a hackathon, and they've got some new product ideas that fell out of that.

0:14:41

So there's no single right answer, right? There's lots of ways to sort of walk through that forest. But at the end of the day, it does come down to right problem for a right solution for the right problem. And where we typically help people is with those modern applications that need that speed at scale and those agentic use cases that increasingly need that better retrieval quality.

0:15:02
Nathan Labenz

I am really interested, though, in big three tech modernization, and I've sort of, uh, brushed with it from time to time, just enough to know that there's a lot of appetite, but there's also a lot of friction. What was your experience of? And I'm sure a lot of these app concepts that people are working on are AI apps, right? Without naming names, what more can you tell us about the kind of gonzo on the ground experience in the big three?

0:15:30
Pete Johnson

Some of it was customer experience kind of applications, others was how can we make the dealers more efficient? how can we make the mechanics more efficient? Some of it was how can we make the in car experience more efficient. It really spanned the gambit of different types of use cases that a big three automaker might have. But really, it's, I mean, I'll go as far as to say, like our education system has a bias, a historical bias that thou shalt always normalize.

0:15:58

And for a lot of use cases, that's valid, but there are an increasing number of use cases where these big three that I just mentioned matter. And increasingly, that retrieval quality one is becoming a much bigger deal for agentic architectures as you start to try to take better advantage of the context window than just stuffing it with a million tokens every time. And we can get into some of the details as to why we're a good fit for that and why that's emerged.

0:16:24

Like in the wake of what happened at Uber earlier in the year, with them burning through their token budget for 2026 in thirteen weeks. That grabbed a lot of headlines, and there's been similar stories about where, like, maybe token maxing wasn't such a great idea to begin with.

0:16:38
Nathan Labenz

Yeah, it was a phase. We've all been, we've all been through our phases. Uh, I was really attracted to the schemaless database model way back when, because I'm just kind of a free flowing person who loves to just make a mess now and tell myself I'll clean it up later. And so this is one of the things that I'm really interested in in terms of how DB interacts with AI applications. Because it seems like, on the one hand, it's more tempting than ever to do that, right?

0:17:10

It's more valuable than ever to just be like, let me just dump all the data in here and like, maybe an AI will make use of it sometime later. But then you do have interesting challenges downstream of that. One with your example of like the two records with the same address, now you gotta update it in two places, so that's something to keep track of, obviously. I'm also kind of struck that, like the advantage of latency, you may have a different take on this, but it feels to me like the advantage of latency is somewhat reduced.

0:17:41

Because now, like, everything gets put through a slow step anyway, and so the ability to, like, shave a little time off the DB call. When I'm then gonna have to wait for tokens, maybe matters less. And then I'm also thinking, like, if I do start just dropping all my data payloads into a sort of extra field, now I'm gonna be doing like exactly what you're saying I shouldn't be doing in terms of just bringing a million tokens into context all the time.

0:18:07

Um, so take that in whatever direction you will. What do you see as kind of the biggest trends in application development that have bearing on your database choices as we are AIifying everything? Hey, we'll continue our interview in a moment after a word from our sponsors. Today's episode is brought to you by Granola, the AI powered notepad built for the way real people actually meet. Here's how it works. You take rough notes like you normally would, and in the background, Granola securely transcribes the meeting.

0:18:44

Then it turns everything into clean, structured, actually useful notes when the meeting ends. And the best part, Granola works through your device's audio, which means it integrates seamlessly into the video conferencing tools you already use. No setup and no awkward bots. It's just your normal meeting with superpowers. You get to actually listen instead of frantically typing every word, and still walk away knowing exactly what was decided, who's doing what, and what comes next. When I had Granola co-founder Sam Stevenson on the show earlier this year, he explained how Granola aims to provide a calming experience for people with crazy workdays.

0:21:30

And as a user of the app myself, I have been struck by how streamlined, even minimalist, the Granola product experience is. That takes real discipline, but the result is a product that works not just for AI early adopters, but diverse teams of people who just want to get things done more efficiently and effectively. Listen to my full episode with Granola co-founder Sam Stevenson for a master class in designing AI products for mass market adoption. And try Granola for free at Granola dot ai slash TCR.

0:21:54

That's granola dot ai slash TCR. The Cognitive Revolution is brought to you by Diffusion, the AI transformation specialists that help organizations, from traditional SaaS businesses to defense companies to nonprofits, build software factories that can scale not just outputs, but business outcomes. You probably know that the majority of enterprise AI projects fail. In general, that's because leadership fails to realize that AI isn't like traditional software that you can just buy and install. On the contrary, if you want AI to amplify your business's unique DNA, you'll need to make a sustained effort to record, understand, simulate, and optimize your business processes.

0:22:22

Building these skills by trial and error takes years, but your business problems can't afford to wait. So here's how diffusion can help. You identify your most important business problem, fly to Silicon Valley for an intense week of problem solving with the diffusion team. And by the time you leave, you'll have not only cracked a critical challenge, but built the core skills needed to do it over and over again from home. Cognitive Revolution listeners receive 25% service credit on their first engagement with Diffusion.

0:22:57

So visit diffusion dot io slash TCR to learn more about how custom-built software factories can scale critical outcomes for your business. That's diffusion dot io slash TCR. Sure, so let me. So first, let me push back on one thing you just said. Most people think that we're schemaless, and that's not actually true. It's not that we're schemaless, it's that we're schema flexible, that you can change the schema more easily over time because more of the data is denormalized and therefore centralized in a way.

0:23:20

It's not a strict requirement unless you specifically say so that every document in a collection, so we don't have tables and rows, right? We have a think of a JSON WAD as a document, and you have multiple JSON WADs put together into a collection. Not every document in a collection necessarily has to have the same shape. You can have different shaped documents in the same collection. So because the schemas are flexible, and because you can have different doc different document shapes in the same collection, that's why people assume that we're schemaless.

0:23:21

But what it does is it gives us the ability to be malleable in a way that a traditional SQL schema is less malleable. I won't say not malleable at all because it depends on how you're laying out the data. But anybody who's ever had to change a SQL schema that's already in production and the cascading effect that has on multiple tables knows the pain of what I'm talking about. That if you had some of that data denormalized, it's far easier to add attributes to a document that's already there and do so selectively in a way that isn't possible nearly the same extent in the SQL world.

0:23:22

And this is where how we've implemented, like the history of how we implemented vector search and the impact that has on application architectures for agents ends up like the details matter here. So if you'll allow me, I'd like to talk a little bit about that history. Does that sound okay? Yeah, please.

0:23:22
Pete Johnson

Okay, so for us, it really started with in an unusual place, and that is with lexical search. So in 2020, we noticed that a common use case for MongoDB was for people to stand up their own Apache Lucene servers co-located with wherever their their MongoDB clusters might be. And the reason they were doing that is they wanted to be able to point that Lucene cluster to different text fields in a document and be able to do keyword retrieval off of them.

0:23:50

Perfectly reasonable thing. So we thought, well, as you might know, there's there's three different versions of MongoDB. There's community, which is you're responsible for the support, you're responsible for the operations. There's enterprise advanced, which most customers are using on prem, where you're responsible for the operations, but we're responsible for the support. And then there's Atlas, which is our managed service version of it, which you can deploy your instances on any cloud hyperscaler data center you'd like amongst Amazon, Google, and Azure.

0:24:25

Wit and in that form factor, we will do the support and we'll do the operations. So those are the different choices you have when you deploy MongoDB, and regardless of which one you choose, like I said, we notice people standing up Lucene server so that they could get keyword retrieval on what they had. So in 2020, we introduced what's now known as Atlas Search, which is on the managed version, the managed version of MongoDB. You automatically just you just get it as part of the instance that that there's a a lower priced tier where you just point it to attributes, some text attributes that you already have in your data will automatically index them.

0:25:04

You can do keyword retrieval search on those. Then the next logical thing was a couple years later. Well, if you're gonna have lexical search, you might as well also have vector search. So think about this. What's a vector? At the end of the day, a vector is an array of floats, right? You take some piece of data, and whether that piece of data is text or an image or audio or video, you pass it to an embedding model of your choosing, and what you get back is an array of floats.

0:25:33

So to us, an array of floats is just an additional attribute to a document you already have. So for us to implement vector search was just add an additional attribute to the flexible schemas that we already have, and now build a vector index on top of that array of floats, and that's your vector search. And what it created was this notion of being able to do these powerful hybrid searches as well. So if you think about the sort of the trivial example that most people learn MongoDB off of is suppose you have a book, and a book might have a text field for the title, and it might have a text field that is a URL that points to the

0:26:15

cover of that book. You might have an integer that's the number of pages, you might have an integer that's the year of publish, and you might have a text field that's the synopsis. So if that's a standard record for a book in, if that's a standard document for a book in MongoDB, and that's put in a collection. Suppose now I want to create a vector index off of the synopsis. I could take that text synopsis text, I could pass it through an embedding model of my choice, and I then store the array of floats that come back from that embedding model.

0:26:52

And if I wanted to, suppose I had 10,000 records, I had 10,000 documents in my collection. Maybe I only want to do a vector search on the top thousand. Maybe I don't want to do it on all of them. Because of the flexibility of the schemas, because you can have different shapes, MongoDB not only allows that, but thrives on it really well. So we had lexical search, we had vector search, and then that enabled us to do this notion of hybrid search.

0:27:17

So suppose I wanted to do combine a lexical search of the title of the book with this now vector search that I have on the synopsis. And what if I also wanted to pre-filter? Because I've got some integer fields in here. Suppose I want to do a search where I do a lexical search on the subject and a lex and a vector search on the synopsis. But I want to eliminate any documents, any books that weren't published after th that were public.

0:27:47

Oh, I only want to see books in my data set that were published after the year 2,000. So now I have these three levers of query power that together are give me lots of interesting ways now querying my data that I combine this sort of pre filtering based on the metadata with the lexical search with the with the vector search. So once we had that in play by like 2023, we thought, well, this works with any embedding model you want, but could we make this easier to develop if we had an embedding model that was part of it?

0:28:23

And that's why we purchased Voyage in 2025, which created this better together story. We can get into all kinds of things with the better together, but the way that we go to market with Voyage is you can use Voyage on whatever vector database you want. You can use any embedding model and use MongoDB as your vector database, or you can use them together, and there's a better together story. That's a part of that. So that's kind of our history.

0:28:48

Like I said, kind of unusual that it started with lexical search, but it kind of went lexical search, vector search, hybrid search with pre-filtering, and now this better together storage with the Voyager embedding models. That's how that built over time for us. What is it like to query that today? Are you able to? I think this is like a has been relatively recently advanced, right? That Yeah,

0:29:11
Nathan Labenz

I can now issue a single query and put kind of in SQL terms, I guess, a where clause and like all three of those different kinds of data and the engine under the hood. Which filter to apply first, like all that stuff, kind of, I don't have to worry about anymore. Is that right?

0:29:28
Pete Johnson

that is so. One of the advantages that we have in the way that we implemented vector search is it gets to stand on the shoulders of the base product that we already had. So we've been running Atlas in production for a decade now. So we already knew know how to replicate data across multiple data centers, even across multiple clouds. We already know how to do sharding, whether you want to keep data close to specific users for business reasons or for legal reasons.

0:29:54

We already know how to do security, not only query at rest and qu or not only encrypted at rest and encrypted in transit, but we can also do during the query. We get to stand on the shoulders of all of that for the vector search. And one of the things that we get to do on top of that is MongoDB has always had this notion of aggregation pipelines. And the point of aggregation pipelines is instead of forcing you to do a query, get some JSON WAD back of your result set and then have to massage that before you use it.

0:30:26

Instead, with the aggregation pipelines, you can give extra, you can give extra instructions to the back end. So that that data gets sorted, filtered, massaged in different ways, so that what you get back from that API call, you can now use immediately and you don't have to do any other further massaging. So because we already had that mechanic in the core product, what you're referring to is we just announced a a pair of features, one's called Rake Fusion and one's called Score Fusion.

0:30:56

And what that allows you to do is in absence of an aggregation pipeline in these new aggregation pipeline stages, you would have to make the vector search in, and then independently, you would have to make the lexical search, and then you would have to combine them yourself. Now, with those two aggregation pipeline stages, you can do it in one API call. So you only have one round trip call to our servers, and then on the back end, we'll do both of those calls for you.

0:31:24

And then we'll combine the results either based on their rank with rank fusion or based on their score with score fusion. So that what you get back is an already sorted list based on which one of those functions in the aggregation pipeline you chose, so that you could then use that JSON wire that result set immediately.

0:31:41
Nathan Labenz

I'd love to learn a little bit more about how that works, because this is something that I have run into, and I've have have come up with pretty simple solutions for myself, right? But like, you sort of have the filter, and then I'll just be like, Okay, I guess I'll sort by the vector match score, subject to the filter, right? Or we'll kind of tier them based on different filter values. It's always struck me that there should be smarter ways to do that that I've come up with, and I'm sure you guys have some.

0:32:16

So what are the kind of galaxy brained approaches for getting the best final sort order from these kind of fundamentally different things?

0:32:28
Pete Johnson

So for now, what most people are doing is, and this is the reason why we have the pipeline stages that we do. It's it's usually based on a ranker by score. And if you also throw in the pre-filtering, that lets you that lets you reduce the data set before you do the queries, and then you get those queries back and you can interleave them based on either score or rank. For now, that's what most people are trying to do.

0:32:50

But my joke for this, Nathan, is like, there's two kinds of developers, there's those that love MongoDB and there's ones that haven't tried it. Like, we're we're we're always in a pretty tight loop of feedback where we lit. The whole reason we came up with rank fusion and score fusion is cause the community told us they wanted it in very much the same way that why did we start doing Atlas search? Why did we make lexical search part of the platforms?

0:33:13

Cause we saw people were using it, we found a way, we saw a way to make their lives easier. If it's so that you don't have to spend the operational cycles managing your own Lucene servers, what could you do with the cycles that we give back to you? And it's the same thing with rank fusion and score fusion, so that you don't have to manage that code base yourself. So that if you could just throw it in as a verb in the query that you already have, okay, now what are you gonna do with that?

0:33:39

W with that time that we're giving back to you? So where it goes, community's gonna tell us what other kinds of things they want with that.

0:33:50
Nathan Labenz

Read more novels is one candidate answer for what I'll do with my time savings. And going back to your book example, another thing I've struggled with at times is, let's say I have the book, but let's say I actually have all the contents of the book too, right? Now I've got hundreds of pages of text associated with this kind of one entity. Now I can break that down into. I just wrote a novel that had acts, so it had like four different acts, and then, of course, there were chapters within the acts, and then there were sections, perhaps, and paragraphs, and obviously, you're down to sentences at some point.

0:34:27

How do you think about? I think there's some new work on this too, although I confess I don't grok it fully. Um, how do you think about, like, how that raw text should be chunked or otherwise divided up to be represented in vector space? Is it like, am I looking for a single answer to that, or is it? Do you think of it more like a trunk and branch and leaf kind of thing? I've experimented with that kind of stuff a little bit as well, but I don't, I guess I, I c.

0:35:03

I don't really know what the state of the art is in that realm today.

0:35:06
Speaker 4

Hey, we'll continue our interview in a moment after a word from our sponsors.

0:35:09
Speaker 3

You're listening to Deepgram Flux TTS. Different voices, same model, all ready to speak.

0:35:18
Nathan Labenz

Flux TTS is a streaming text-to-speech model built for voice agents.

0:35:21
Pete Johnson

flux reads the room, it holds context across the conversation, turn after turn,

0:35:31
Speaker 3

So your agents keep it flowing and customers can just keep talking.

0:35:34
Pete Johnson

try Deepgram Flux TTS free now until September twelfth. Visit deepgram dot com slash keep talking. Terms apply.

0:35:41
Nathan Labenz

Today's episode is brought to you by Anthropic. By now, you know my story. Claude drafts my intro essays, and I rewrite them, not because the drafts are bad, but so I can stand behind everything I publish. Well, I have an important update. Claude Fable five is the first model to have me rethinking my role. Today, I now think co-authorship, not sole ownership, should often be the goal. Where the model excels, rewriting its work can be more about vanity or a misplaced sense of duty than integrity.

0:36:17

I feel it most in songwriting. I'm no lyricist, but I'm good with a song concept, and Fable writes some amazing verses. I give it feedback on its misses, and I push it to aim for higher inspiration, add layers of meaning, optimize syllable density, and, above all, write a hit song. These days, I get compliments on just about every song we write together. Claude is the AI for problem solvers. It's the collaborator that understands your entire workflow and thinks with you, not for you.

0:36:49

Whether you're debugging code at midnight, building a financial model, or strategizing your next business move, Claude extends your thinking to tackle the problems that matter. For problems worth solving, get started with Claude at Claude dot ai slash TCR. That's Claude dot ai slash TCR. And check out Claude Pro, which includes access to all of the features mentioned in today's episode. Once more, that's Claude dot ai slash TCR.

0:37:17
Pete Johnson

Fair. So there's a couple of more broadly speaking, and I promise I'll answer your question. More broadly speaking, the use case for this level of search, for this kind of semantic or vector searching, is typically rag pipelines for agents, or for a more sophisticated agentic memory for agents. That's when you typically see vector search start to enter the conversation when it comes into an agentic architecture in some way. Specifically, what you're talking about here is chunking and chunk size tends to be more in that rag pipeline use case.

0:37:52

I've got some external data, I've got some proprietary data. I want to inject that proprietary data into my LLM of choice without having to go through an expensive fine-tuning or training process. Because the LLMs are trained on public data, they're not trained on my proprietary data. So how do I inject that in a safe way? That still gives me some data fidelity so that I'm not, I'm not giving away my proprietary data, but I can still get it to focus on my business problems instead of every LLM knows who the last thirty Oscar winners were.

0:38:24

And that's not super helpful when I'm trying to get an agent to help me figure out what my NOC should do next, or my my IT ticketing should do next. So that's the use case. So if you've got a bunch of documentation that someone who is a human professional in that world, you now need to figure out how big the how big the should the chunks be that I place in the individual documents, and what's the fidelity of that?

0:38:49

And when you're the application developer trying to figure this out, there's this trade-off that you're looking at. So if I make my chunks too small, let's say to the fidelity of a sentence, if I make my, I potentially lose the context in which that sentence appears. Just if you just read one sentence from a novel, doesn't tell you a whole lot, but if you then also read the paragraph or the page, it tells you a lot more about what the context of that sentence is.

0:39:19

So that's an argument for, well, maybe I should make my chunks bigger. There comes a point, though, where if my chunks are too big, my storage costs start to go up and my retrieval quality starts to go down. Because if I've got three pages, let's say, and I'm trying to get to the fidelity of a sentence, I now have too much information and I lose the fidelity of that sentence. So what's the right answer? I I've been doing this a long time, Nathan.

0:39:46

The answer is always it depends, right? So you have to go through as a developer, you have to go through this iterative cycle. Like I chunk to a certain size, I run some tests, what's my retrieval quality? Okay, now I try it again. I try a different chunk size, I do some tests, I see what my retrieval quality is. And I have to do that three or four times to for my use case to try to find out what the right balance is between chunk size, storage costs, and retrieval quality.

0:40:14

So one of the reasons we bought Voyage is because, like those guys, like their side hustle is teaching people at Stanford how to how to build LLMs. Those guys are all geniuses, and they came up with this new concept last summer called contextualized chunking. And we've got a blog article on this that we can potentially link through here. But the idea here is that if left to your own devices and figuring out your own iterations of chunk sizes, there comes a point in a graph where if you've got retrieval quality on your X on your Y axis and you've got chunk size on your X-axis.

0:40:46

With a traditional embedding model, there comes a point where at lower chunk sizes, you have zero context, so the retrieval quality is low and it it builds, but then at some point it flattens and then it starts to degrade if your chunk sizes become too big. And that's why you have to go through these iterations to find the right combination. But what if you didn't? What if instead of sending that all as one big text blob?

0:41:12

What if instead you sent it as two? What if you sent the fidelity of the sentence you actually want, and then as a second string, you send the size, you send the other contextual information where the name contextualized chunking comes from. And we will figure out for you what the right chunk size is for that combination. And we will give you a vector array that comes back that balances those things for you. When you flip that script, it turns out you can get better retrieval quality with a smaller chunk size, which otherwise is not possible.

0:41:43

If you're doing it the traditional way, you the way to get better chunk size, the way to get better retrieval quality was with higher chunk size. But if you use this contextualized chunking, we released version three of that last summer. We just released four of that in the last six weeks. You can flip that script. Now there still are use cases where you need to control the chunk size for different things. But if that's something that you wanted to not worry about or have to learn about.

0:42:08

And the way I think about this is more developers will build AI agents in the next three years than did in the last three years. And in order to make that possible, we have to lower the learning curve, we have to make it easier for the developer ecosystem to learn how to do this. So if you don't want to have to learn how to go through the iterations of figuring out what the right balance of chunk size and retrieval quality is.

0:42:32

Instead, if you could use contextualized chunky, we'll figure it out for you, and you still get good retrieval quality out of it. So that's that's one of the benefits that Voyage offers that no other embedding model out on the market offers that ease of use feature that gets you better retrieval quality. I definitely appreciate not having to worry about it, but I do want to learn a little more about it. It it sounds like this happens in sort of a test free way at the level of the developer.

0:43:04

So, like, I don't have to bring a bunch of eval suite work to the No,

0:43:12
Nathan Labenz

table. So how at the level of kind of principles, like, how is it working in the background? And you said also I'm getting one vector back, right? So I pass in the sort of the chunk that I think I would really want to be able to zero in on and context, and that gets converted into a single vector back do you feel that represents both of those things in, I guess, some sort of superposition.

0:43:37
Pete Johnson

yes, that's exactly how it works. So you get back one array of floats, exactly how you did before. It's just now you don't have to go through the iterations of figuring out the size of the chunk sheet. And similarly, there's another voyage feature that all the voyage, all the voyage embedding models have called Matryoshka reasoning. Because the other place you have to make a decision about storage cost versus retrieval quality is with number of dimensions. So what do I mean by that?

0:44:05

Everybody knows what two dimensions is if you've taken high school level algebra, right? X, Y, right? But in an embedding space, you tend to have at least 256 dimensions and sometimes as high as 2048. And the more dimensions you have, so each dimension is represented by one of those floats in that array of floats. The more dimensions you have, the richer your embedding space is, and the better retrieval quality you get.

0:44:35

But at higher dimensions, that doesn't come for free. You've got a storing 256 floats takes up less space on disk and in the index in memory than it would for 2048. So you again have to go through this iteration of what's the right number of dimensions for my use case, given my what my storage costs might be. All the voyage models have a feature in them called Matryoshka reasoning. It comes from the Russian nesting dolls.

0:45:02

If you think about how Russian nesting dolls work, right? You've got you've got one doll and you open it up and there's another one exactly the same, but smaller, a smaller fidelity inside, and then you keep doing that and over and over. So what, what, the how, the how the voyage models work is when we generate, let's suppose you did at ten twenty four. Suppose you wanted ten twenty four dimensions. You run some tests. Now you want to try five twelve.

0:45:28

With a traditional model, you have to run your entire corpus of data through a second time at five twelve. But with voyage models, you don't have to do that. When you've run it through at ten twenty four vectors, those floats, they're ordered. So if you want to try five twelve, you just lop off the last five twelve, and that's now you immediately can begin testing on the remaining five twelve. So again, it doesn't completely solve the problem of figuring out what the right combination of retrieval quality and storage space is, but it helps you get to the answer faster.

0:46:04

So these are th there. When you take some of these things in sum, there we've got three or four of these kind of features that make it easier to use and help you get to your final answer more quickly. And the idea there is to give you time back in your day that you can work on your business logic instead of figuring out the plumbing.

0:46:22
Nathan Labenz

Yeah, that's cool. I'm a huge fan of Matryska anything. Uh, when does this stuff become necessary? So for me, I'm basically a business of one, and I try to be an early adopter of everything that I can. And I do have a pretty well working, I call it deep context, but basically a retrieval system that allows my agent to go into kind of all of my history from the last five years, essentially, which is emails and Slack messages and everything I've published online and DMs across all kinds of channels.

0:47:01

The podcast of the transcript of the podcast, I should say, Diaries, so it knows what I've said and what the guest has said. It adds up to about a gigabyte in my case, and I haven't really optimized it much at all. I just kind of let the agent throw it into a database of its choosing and put whatever optimizations on it it felt like it needed to. And then we did get a at one point, it was like, well, yeah, we could probably do better than keyword, so we've got an embedding layer on there as well.

0:47:31

I think, full disclosure, I believe I used the Gemini embedding model for that. Um, but it's like, not very well optimized. How would I know if I'm really missing out on something? I don't have like a huge eval suite, right? It's just like I'm kind of vibing it with doesn't seem to be working well. Is it a matter of like data scale, scale of users? Is it about like cost? What I want to optimize my inference cost, and that's where I really need to get serious about how much data is is being returned.

0:48:02

Like, what are the what are the thresholds that people, or obviously larger organizations, cross where they're like, okay, we can't really do it the let the agent choose its own adventure way anymore. We really need to get serious about some of these optimizations.

0:48:16
Pete Johnson

Well, I'd return to the three things I mentioned in our first twenty minutes or so. It's it's speed, scale, and retrieval quality are the main three things. What most people do, and you're not gonna offend me if this is what you did. I mean, most people start with Postgres and PG vector, and then they choose they choose their embedding model with whatever cloud they're using. Like, Gemini is prominent if you're gonna use if you're gonna be on Google, just like OpenAI's embedding model is is pretty popular over on Azure because of the historic relationship that those two companies have.

0:48:50

But there comes a point in when you're when you're doing a demo, when you're doing a POC, it doesn't always show itself. But there comes a point where when do milliseconds matter to your use case? When does scale matter to your use case? And that typically comes depending upon chunk size, that typically comes at about 100,000 vectors is when is what I mean by scale. And when does retrieval quality matter? If you look at Voyage AI model, Hugging Face has a benchmark out there called RTab, that Voyage AI models are typically at the top of.

0:49:24

And we can get as much as fourteen improvement compared to some of those other embedding models that we just mentioned. So are there use cases for which a fourteen difference in embedding model quality is the difference between a hallucination and a correct answer? And that's before you even start putting re-ranke rs on it, which is another way that you can boost retrieval quality without having to do anything special to your data. So, like I said, it's it's speed, it's scale, and by scale, I typically mean in the neighborhood of 100,000 vectors and retrieval quality out of your embedding model.

0:50:00

Most people think embedding models are commoditized, and that is not true. There is a very big difference that you can get in retrieval quality based on what embedding model you choose. Anthropic does not have an embedding model in market. They recommend us.

0:50:13
Nathan Labenz

It's a great recommendation. You mentioned re-ranker s, and then there was also this kind of earlier concept of sorting results out of the database. This brings to mind this concept of bitter lesson engineering that I think is kind of growing in prominence, which, from my simple point of view, is just like, every so often, you should probably kind of go through your stack and look at all the kludgy extra things that you did to make things work.

0:50:45

And say, like, which of these do I no longer need? Because the model got smarter, or the embedding model got better, and so things are just kind of naturally working now, or could naturally work now, where in the past I had to kind of do all these artisanal craft sort of things to to make sure that they worked. Are you seeing examples of that in the retrieval space broadly, where things are in some ways getting easier, or ha have you not really seen the bitter lesson apply to these pipelines, these production environments?

0:51:23
Pete Johnson

Yeah, I think there's two places that I've seen that recently, and one of them is with the re-ranking that we were just talking about. So in the spring, we released Dollar Re-Rank, which is a companion to the score fusion and rank fusion that we already talked about. So those two relate to doing a hybrid search, the dollar re-rank. Again, you would in a historical way, if you would have to do your vector search once, send your results to a re-ranker to get them reordered in a way that is most optimal for a RAG use case.

0:51:54

To then pop them into the context window, just like we did with the score fusion and the rank fusion. We've now got a a stage where if you do dollar re-rank, you call the API once, we'll do both of them for you on the back end so that you only have to make one round trip to the server for that. So that's one place that we've seen some a additional ease of use. The other one is a feature that we released recently called auto embeddings, which is you tell us this is a better together story.

0:52:25

You tell us what, which collection, you tell us which attribute on documents in that collection, and you tell us which voyage model and how many dimensions you want, and we'll take care of the rest of it. Anytime an existing document with that attribute and it changes, we will automatically take that new, let's say it's text, put it through the embedding model, update the vector in the document, update the index in memory, and we'll do all that for you.

0:52:54

If a new document shows up into that collection that has that attribute, we'll go through the same cycle for you. So again, trying to remove some of the plumbing so that you get some time cycles back as a developer. So you don't have to, you don't have to go craft your own and maintain over time your own embedding pipeline. You just pass us one JSON wire and we'll do it for you.

0:53:17
Nathan Labenz

Zooming out a little bit from the database to the the broader systems that wrap around them, you stuff about memory for AI systems. And this is another thing where I've seen kind of the great complication and then somewhat simplification, probably simplification, has been enabled by things that enterprises are maybe a little reluctant to pay for at scale. Like, when I get a million token context window, I'm like, great, now I don't have to worry about all this stuff.

0:53:50

I can let the model handle a lot more of it. But I do take your point that obviously you got thousands of users that can add up. H How what would you describe as? And of course, it depends, but trying to abstract away from some of the details and give me kind of a center of the distribution description. What would you say is like the state of the art in what a good memory system looks like today?

0:54:15
Pete Johnson

Sure, so I again, history matters here, right? When ChatGPT came out in 2022, in the end of 2022, it had a very simple application architecture. You took, you took the query, you put it in a context window, the LLM would process it and give you a results. End of story, that's how it worked. And by spring of that year, by the next spring, you would see headlines like ChatGPT passes the bar exam, and it would have these very cool things it could do.

0:54:46

And we've already talked about why you need RAG, because those LLMs even today are only trained on public data. If you wanna inject proprietary data into it, you need to to specifically do that with a RAG pipeline. What we saw in 2025, though, was the second problem that we see with with the core LLMs, and that gave rise to the need of memory. And that is like in spring of twenty three. If you had asked chatGPT, What's MongoDB's stock price today?

0:55:12

It couldn't tell you, and the reason it couldn't tell you was the LLMs have a knowledge cutoff date. There's a date after which they don't know anything about the world because the model vendors at some point have to stop training and put them into inferencing mode. And the way that we overcame that in 2025 or so was with tools and with MCP. And being able to have the grant to the LLM. Hey, here's this API, or here's this tool we could call to go get additional information.

0:55:39

That's why, whether you're a cloud person or a Gemini person or a chatGPT person, that's why today, if you ask, Hey, what's MongoDB's stock price? It could tell you because it can find a tool in its arsenal. Go make a web search, get that information and report it back to you. The other thing we saw in 2025, though, is this notion of looping, where the result of one loop of that agent then became the input of the last one.

0:56:05

The context window is still very dumb, right? The context window is still you have a fresh context window with every time you pass it to the LLM. And that's when we needed agentic memory, and the early passes we saw of agentic memory was short-term memory was typically okay. Take every response that we got within this session and cram it into the context window so that we can see what happened earlier in this conversation. And then long-term memory was okay.

0:56:31

Now do the same thing for every session we've had for the last three days and cram that in there as well. And then a two negative side effects that I now see people starting to push against negative side effect one we already talked about is token maxing, right? If you if every agentic loop puts a million tokens in the context window, even con- even context you don't m mean necessarily need, your cost starts to add up.

0:56:54

But there's also a functional cost to that. There's a couple academic studies that show that, like the first 7,000, and like the last 7,000 tokens are the most important. And the stuff that's in between can end up just muddying and confusing the LLM as it's trying to come up with an answer. So instead of thinking of how could I maximize, how could I cram a hundred, a million tokens into the context window every time?

0:57:16

What if I could choose just the right 200,000 for this agentic loop? So we're starting to see more sophisticated short-term memory that doesn't take everything in the session, but just the things in the session that are relevant for this pass. And the same thing with long term, and we're starting to see some new memory types, especially in Fortune five hundreds. There's a new memory type called taxonomic memory. So think about either in a vertical, so like automotive, we were talking about before, or in a specific company.

0:57:49

There's some terminology that is specific to verticals or specific to a particular company that a lay person who is not in that vertical. Those words may mean different things. So you might have a list of, let's say, a hundred of those terms. But for this agentic loop, what are the five that are relevant for this loop of the agent? And then do that again for the next loop. What are the five that are relevant for that loop of the agent?

0:58:18

So, again, instead of taking all hundred terms and putting them in the context window every time when not all of them are going to be relevant, what if you could instead have a more sophisticated memory type memory system that instead of just taking everything? Use vector search or semantic search, or some combination of vector and lexical with some pre-filtering and just got the just the right. Just there's some perfect you'll never get there, but there's some perfect context window for this pass.

0:58:51

And that perfect window doesn't use all of it, it uses just the stuff that it needs to. Those are the kinds of things that we're starting to see in enterprises, both to combat the cost of the tokens and to combat the relevance of the tokens. So you can get the best answer out of this call to the LLM. And do you have any tips for maintaining these memory systems? I mean, this kind of goes back to some of the challenges with, and may maybe there's good solves within MongoDB for some of this, if so, definitely highlight them for me.

0:59:44

But I sort of struggle with the lack of normalization or my failure to observe the dry rule in my own memory system. Sometimes I'll have, like, you know, I have these like raw exports that combine my email and DMs and everything else right into these kind of Sure,

0:59:44
Nathan Labenz

monthly log files. And these are typically like a couple 100,000 tokens for a month. Then I'll like summarize those into a monthly summary, and then I'll take the monthly summaries and I'll put those into a yearly summary. And then I've got like a wiki type, Karpathy inspired structure that sits on top of all that and is like more entity based, and they kind of link to each other. And some of this lives in a database, some of it lives in a file system.

1:00:10

But now I've got a challenge where I'm like, some new stuff has happened, okay, what do I do? what do I change? How do I make sure that ev- it's changed everywhere it needs to be changed? I sometimes also have instances where I've, I've had really funny. I mean, I think the models are getting better with this, maybe it's less of a problem these days. But in setting this up in the first place, I had some problems where the models would see a project that I like experimented with a little bit, or like, was maybe gonna pursue and then didn't.

1:00:41

And it will like keep it as like an open thread for months and months. And I'm like, Dude, I never actually did that. You can, you just forget about it. So forgetting is also sometimes a a real virtue. A a memory system, um, how, what have, what have you learned? What tips would you offer in terms of how to maintain these things so they're accurate? Not just when you first create it, but on an ongoing basis.

1:01:05
Pete Johnson

this is the hardest problem with agents right now, I think. And the way that I put this to people is we as an industry, we've been building databases for sixty years, we've been building agents for like, eighteen months, man. Like, nobody knows all the answers yet, we're all sort of collectively figuring it out. But what I do see with these more sophisticated memory types is that as the application author, that you have two responsibilities with these memory systems, where with the prior one, you only had one, really.

1:01:34

So not only do you call this memory system, Hey, here's my query, give me the best. Maybe you give it a token budget is the way some of these work, so that you don't. You don't have to figure out how many memory types there are and how to query them. You're just like, give me the best 50,000 tokens, or give me the best 100,000 tokens. You give it a token budget, and then it gets it back from the mix of different memory types it might have.

1:01:54

And then you put that in the context window, you get your answer, and then your second responsibility is to send that answer back to the memory system so the memory system can then curate it and then write it into the memory system. And when it m writes it into the memory system, the more sophisticated ones also have this notion of R. Back. So that if you and I are in the same job type, that we get to share the memories.

1:02:21

So that if you come up with a really good memory and then I get to reuse it later, then that ends up being beneficial for both of us. So that's the second responsibility you have. But the hardest part is what you're talking about here. The way that one coworker just wrote this to me yesterday, I want to quote him Write, change, recall, forget, because these things have a a half-life to them, right? Like things that are more recent are more important than ones that that took place weeks, if not months ago.

1:02:50
Nathan Labenz

maybe you can tell me about any, like Mongo specific tricks or advantages for these sort of graph structures that I seem to keep making. I have people and the organizations they work for and the ideas that that I sort of associate them with, and these things all kind of point to each other. But they do it in a pretty loose way. Where I'm, I'm right now kind of trusting the agent to hopefully notice those pointers and to the degree I'm like, running maintenance, hopefully follow those pointers and do the necessary maintenance.

1:03:28

I don't have a lot of guarantees, and I suspect that there are better technologies that I could be building on that would give me a lot more robustness.

1:03:37
Pete Johnson

Well, there's there's a couple different ways to tackle this. Like I said, the forget part is the hard part of it. But what we see our customers doing is this is where, like, the retrieval quality of those memory types, that's where that that non-commoditized embedding model can make a difference, and where a re-ranker can make a difference. You you can get, depending upon the use case, you can get like a five to 10% boost at retrieval quality just by using a re-ranker on top of whatever your embedding model of choice is.

1:04:06

Um, and that's true of architecturally. That's why we made it so easy to implement the re-ranker on top of the voyage embedding models when you're doing that vector search. But there are use cases where maybe you have so much data that you might have to take a hybrid approach where maybe you use, maybe use a graph structure for, I don't know, two to six levels of data. And then you get down to a leaf and you do a vector retrieval inside that leaf.

1:04:31

We see people doing that as well. There's all kinds of information you can find on our website about how you can, because we're JSON-based, you can use MongoDB to build, uh, graph structures into your data. So that you only have to go one place for a graph database, a core database, a vector database, the embedding, the re-ranking, all in one place. So you don't have to try to stitch together multiple tools yourself and have to maintain that over time.

1:04:58

But we do see people doing that with graph structures. It's typically not as deep as like, y you would traditionally think of as a as a graph database need. But like I said, it, it's pretty common to go, I don't know, half a dozen, or maybe maybe a dozen layers. That maybe for bigger corpuses of data that are more heavily categorized, like some of our retail customers do that with product databases. If you think about how a hierarchy of products might appear on a website or in a mobile app, they might segment that first by product category, using a using, uh, more of a graph style.

1:05:34

And then once you get to a particular product category, then do some vector searching within that individual category node.

1:05:42
Nathan Labenz

Are there any applications that you would point to as just being great examples of memory well implemented?

1:05:51
Pete Johnson

Well, our biggest customer right now, they haven't been very public about how they did it. There's a company called Eleven Labs out there, they have multiple agents per customer, this sort of micro-agent approach where you get multiple smaller agents at the disposal for individual customers. And given the number of customers they have, so they ElevenLabs started life as a model provider that was doing way sophisticated speech to text and text to speech. And they built a platform on top of that.

1:06:19

That is more of like a an audio editing suite that they do for that. And as part of that, they they have a bunch of agents doing all kinds of editing and transformation kinds of things for their customers. And if you think about the kind of context memory that they have there, an important way to to do that as well. I would worry about any memory architecture that, instead of relying on lower costs, embedders and re-ranker is relying on multiple passes of the LLM to help you categorize and shrink the the the corpus of data that you might want to then put into the context window for the larger, sort of more functional LLM call.

1:06:59

Cause then that's just adding up tokens as well. I mean, that why things like embedders and re-ranker have a lower token cost is, again, right tool for the right problem.

1:07:10
Nathan Labenz

Yeah, that adds a lot of latency, too. At this point, even the small models can reason for quite some time before you actually get your answer from them.

1:07:18
Pete Johnson

They can, and so all those things add up over time, and it's not just tokens, but you're, you're right, the overall latency for the decision loop that you're into makes a big difference.

1:07:28
Nathan Labenz

I think you also have some interesting takes on build versus buy analysis. I won't even try to summarize it, just give me your your hot takes on how people should be thinking about building versus buying. What is mature enough in the AI realm to buy? And what do you? Even if you kind of buy part of it, what do you still have to expect that you're gonna end up building or customizing enough that it kind of feels like building?

1:07:54
Pete Johnson

Yeah, so I have the good fortune in my job. I've been to seven countries this year to talk to probably a hundred different customers about where they are in their AI journey. And they tend to fall fall into sort of three camps. Camp one is I bought a license for this one tool and I'm done right, like my AI strategy is done, I bought one thing. And while that can be a good starting point, it typically is not specific enough to help solve the problems of your overall enterprise.

1:08:23

Then you have a group of people who have done some POCs and maybe a couple of production deployments with varying degrees of success on ROI that had struggled with ROI. I always argue, probably picked the wrong problem. Picking the right problem is really important in this space. And the way that I encourage customers to think about this is like, what are the top ten to fifteen problems that you have going on in your business right now?

1:08:47

And of those, what do you have good data for? I mean, you made a comment earlier in this conversation, like, data quality is a big deal. Things like bad data quality and bad security posture don't get solved by AI, they get amplified by AI. So what's your, what's your biggest problems? what do you have good data for? And then what do you already have metrics for around the problem? And that's the biggest difference that people that tend to skip over when it comes to problem selection.

1:09:15

Because if you don't already have metrics for how something is performing, you won't know if it got better. So call center use cases are very popular, low-hanging fruit in enterprises. Because I already know what cost per call is, I already know what call volume is based on how I'm already bonusing people in those jobs. So if I introduce AI into their workflow and I see those numbers jump, I can attribute that change to the AI. And I can do a back of the envelope ROI.

1:09:46

We see the same thing with software delivery lifecycle. Early in the year, we saw all kinds of bragging about well, now, because I've got Claude Code or I've got G Gravity, or if I've got Codex, now I can produce five times as much code as I did before. And anybody who's been doing it any length of time knows that lines of code is a terrible metric to judge the productivity of a set of developers off of.

1:10:08

Instead, how how fast are you getting from idea to production deployment? That's the metric that matters there, not not necessarily lines of code, so the metrics there matter. And that's the difference between the folks that are in that middle state, either stuck in sort of POC purgatory and haven't quite got to production deployments. The biggest difference isn't in how they're applying the tech, it's what problems they chose to try to solve. And then you've got people that are sort of more advanced that are looking at some of these more sophisticated memory types and things where they're trying to optimize the systems that they have.

1:10:41

And in some cases, they're they're making purchases of larger platforms to help them do that. Other times they're doing homegrown. And like I said, we're, we're like eighteen, twenty four months into this. There's there's no, there's no one way to do this yet, there's there's no lamp stack for agents yet. In the way that we have with web development, we will get there. Having lived through that, having lived through that life cycle, we'll eventually get there.

1:11:05

But like, there's, there's no React and Angular, there's no lamp stack for agents right now.

1:11:12
Nathan Labenz

You mentioned call centers, and this is the second time today that this has come to mind. I just ordered a pizza last Friday night from the local pizza place in my neighborhood. Shout out once again to Greg's Pizza in Detroit. I think Go it's just a one great. location business. And who D Detroit answers the phone?

1:11:31
Pete Johnson

Detroit style pizza is underrated, by the way.

1:11:34
Nathan Labenz

is. This actually is a traditional circular round pizza, but I agree. D After Auto, it's D Detroit's biggest export to the world is pizza. But even just this one location business, right? I call and who answers, but an AI agent. And it was a pretty impressive experience, I have to say, like, very natural conversation, not flawless. There were a couple little things where, especially as I started to get a little adversarial in my testing of it.

1:12:01

Like, I asked it, what company is powering this AI agent experience that I'm having? And it took that as it somehow thought I was ordering pizza for my company. So, you know, there's some kinks still, but I overall was, like, very impressed, like the happy path, I thought worked really well. And this has me thinking, like, boy, there must be just a ton of transformation happening at call center businesses. How, how much are you seeing? Like, there's always this kind of waves of change, right?

1:12:31

Where, like, the first wave is like, we give our agents a tool where they can, like, get help faster and be more accurate. But then there's this, like, next wave, or there might be several waves, but certainly one that seems like it's coming is you just call and talk to AIs, right? W- How far along that journey are the customers that you are talking to? How much, like, actual disruption have you seen in that part of people's businesses so far?

1:12:56
Pete Johnson

Most of the Fortune 500 that I talk to are doing employee facing use cases with human in the loop. For exactly the reasons that you just laid out, and for some of the ROI reasons that I laid out before. So if you think about the employee facing use case, you already know what you're bonusing, your different employees are and what KPIs, what key performance indicators you're using to judge whether or not they're doing a good job.

1:13:22

So, like I said, I used the example of call centers before, but you can think of any job, whether you're an insurance adjuster or a line worker in a manufacturing plant, or whatever your job might be. Everybody's got some key performance indicators. And if you introduce AI into whatever that workflow is and you see those jump, that means that you're, you're, you've figured out some ROI. But there's also a security, a data security issue for that as well.

1:13:47

If you and I are employees for the same company, is it great if my salary accidentally leaks to you? No, but it's way better to have that than if we are two customers of the same company and I get to see your data. That is a VP has to get on a plane for that kind of scenario. So, like, the risk reward is higher for customer facing use cases than it is for employee facing use cases.

1:14:14

So at least where we are now in the ecosystem, where I mostly see the Fortune 500 e- with exceptions, of course. But I see a lot more work going into those employee facing use cases with human in the loop than I see going full autonomous AI with customer facing use cases.

1:14:32
Nathan Labenz

For you in in what you're doing at and for MongoDB, are you? You, of course, you've got traditional documentation, right, that human developers can go and read. But I'm sure you're also thinking a lot about how do you make your documentation AI-friendly, and then how do you have an AI that can proxy into that documentation? And then potentially you're like packaging up and distributing skills and trying to think about, like, how to become the database that is, like, recommended by the agents.

1:15:03

When somebody's doing something for the first time, how is, how is your role as, like, bringing this technology to the world evolved? In light of all the different ways that people are discovering and starting their implementation process?

1:15:18
Pete Johnson

so all the things you just mentioned are certainly things that not just us, but every software company is involved in one way or another. The two that I would shine spotlight on are the MCP tools to make it easier for agents to talk to your data in your MongoDB instances. We had an MCP server for a while, and we were now kind of self-hosting some of those as part of Atlas, as part part of the UM ecosystem.

1:15:43

And then the other one is the agent skills. So think of that as kind of curated system prompts for doing things like data modeling, doing things like optimizing operations, thing things that we have well organized playbooks for. That previously we would have as documentation, but now we have them as a series of doc of markdown files that you can feed to an agent of your choice. To give it sort of the lowdown on different ways that it should, uh, approach different tasks.

1:16:13

And there's maybe the f- I think it's agent skills we just dropped a couple of months ago has, like the top eight, it's like it's six to eight different agent skills that we have for things like operations and data modeling to help you do those sorts of things. So, yeah, that's become pretty commonplace these days, and we're certainly part of that ecosystem.

1:16:32
Nathan Labenz

You mentioned this acquisition that MongoDB did of Voyage a couple of times, and I had a kind of just a couple, like, theoretical questions about that. One is it's striking that Mongo built its own vector DB, right? And there's like a bunch of vector DB startups out there. So, like, one could have imagined an alternative scenario where there was an acquisition of a vector DB startup, but there wasn't. There was a acquisition of the model startup.

1:17:07

And then also just look at the relative value. And you said, these guys are geniuses, and I, I don't doubt that. But the price, at even at 220 million, which is, I'm old enough to remember when that was serious money, you know, it's. It's less than a tenth of a percent of MongoDB's overall market cap. So I'm like, or less than one, I should say. So I'm just kind of wondering, like, what should we infer from these observations about value and defensibility in the software business?

1:17:42

Over whatever passes for the long term in your mind, you know, you could tell a story about, like, infrastructure is the big winner. Models get commoditized, incumbents can defend themselves against startups, like, what do you think are the right macro lessons to draw from this experience?

1:18:01
Pete Johnson

I mean, fundamentally, what we've always been about has been how can we make the day in the life of a developer easier? So we can make it easier for them to build their business logic and spend less time worrying about the plumbing lower in the stack. I went through a description earlier in this conversation about how we implemented vector search, and for us, because we already had the JSON-based, it was it was relatively straightforward for us to just okay.

1:18:27

You add an additional attribute, that attribute is your array of floats, you generate an index based on that array of floats. So that was pretty straightforward for us to add to the existing product and take advantage of the things like the charting, the security and the data replication that we already had in the base product. That some of the net new vector database companies out there have to catch up and struggle with a little bit. So that's why we chose to sort of do vector search the way that we did is because of the flexibility based into built into the document model.

1:18:59

From the very beginning, it was it was pretty straightforward for us to do that, but where it was not as straightforward. And why we made the voyage acquisition was today. You can still use whatever embedding model you want, as long as it generates that array of floats, you put that array of floats into a document, you go create your index, and you're off and running. But we saw an opportunity to to a that the market was seeing embeddings and re-ranker as a commodity, whereas we s we saw voyage really standing out.

1:19:27

And like I said before, Anthropic agrees with us. Um, and we could create these better together stories, like the auto embeddings that I mentioned before. Another one I didn't mention is being able in Atlas to manage all your API keys in one place. So that you don't have to go to one console for your core data, another console for your vector data, a third console for your embedding models, and a fourth console for your re-ranker. If you can get all that in one place, the management of it is easier over time.

1:19:55

So if you look at the history of MongoDB features, and really what our focus has been, we're all developers at heart, and it's it's about making it easier for the developer ecosystem to learn and operate. This, these new techniques that we see, e- application architectures around agents, whether it's a RAG pipeline or whether it's the agentic memory. So how, how do you make? How do you make vector search more approachable? How do you reduce that lower, lower that learning curve so that more people can learn it more quickly and start to participate in this ecosystem?

1:20:30
Nathan Labenz

Another story that I've heard that I want to just get your reaction to and see if you think it's true in your experience is. I was speaking to a founder of a vector DB startup one time, and I kind of made the case, or put it to him, that, geez, it seems to me like the incumbents are going to be able to add a vector aspect to what they're doing. Before you're gonna be able to kind of replace everything that they're doing, and so it seems like they're gonna have a hard, you're gonna have a hard time, like, really displacing them.

1:21:02

And his answer was, Well, that may be true. But most of the data that is coming into our vector database has never been in a database before at all, right? It's just been sitting out in some data lake or data warehouse, or just kind of unstructured piles of documents. And now it's coming into a higher level of infrastructure and it's being made more valuable in a way that just wasn't happening at all before. Are you seeing something like that?

1:21:30

And and what does that look like? I also noticed that there's the multimodal embedding model that supports video, so video would be potentially a great candidate for the kind of thing that has never been in a database before. Are you seeing this like phase shift of just like a much greater universe of data coming into Mongo than in previous eras?

1:21:51
Pete Johnson

we are see we are seeing this broader ecosystem of data that w- that wasn't indexed before because it didn't lend itself to a traditional lexical search. The the cool thing about the vector search is, I mean, vector search at its core is taking some piece of data and mapping it into n space, into some geographical, G geometric space. And then really, all vector search is similarity, like, where? What are the closest vectors to this new thing that I'm searching on?

1:22:22

And video is a great example, audio is a great example. Unstructured data, you just take a bunch of PDFs that you have sitting around in a SharePoint. I mean, those are good examples as well. So, yeah, I think that there's, there's some truth to that, that we're it. It's not just how do I take the data and put it into a database, but now how do I find it, and how do I find it in a way that is fast, is scalable, that's a good quality?

1:22:46

And that's why the way that we implemented vector search and being able to within the same platform, have the combination of the pre-filtering, the vector search and the lexical search. We feel like that gives us a advantage and gives our developer community more levers to pull from than what some of the alternatives are. And like I said before, be because it's it stands on the shoulders of the core product with the with the Atlas version. You can already deploy that I any hyperscaler data center you want, with good data resiliency, with good security, and if you need to to shard that data so that it doesn't meet particular geographies.

1:23:23

We got all that for for e- essentially for free because of how we implemented vector search on top of the core product. And yeah, we're we're seeing all kinds of different kinds of data get put into those documents in a way that we didn't before.

1:23:37
Nathan Labenz

You mentioned travels, I think so far to seven countries this year. Where I I'm so kind of myopically focused on what's going on in San Francisco and Silicon Valley that I'm mindful that I may be missing important stories or differences in perspective that are going on around the world. I try to fill that gap, at least with it when it comes to China, but it's a big world out there. What has stood out to you in your travels this year in terms of differences of perspective on AI usage patterns, values, you name it, could be anything, but just kind of what do you think the US.

1:24:15

audience, in our inward looking way, is missing that the rest of the world is doing?

1:24:21
Pete Johnson

I think biggest thing if I turn question on its head just a little bit. There's a presumption in other countries that the US. is ahead in doing things that other people are not, and I found the opposite to be true. So, I mean, I live and work in out of Cincinnati, so US. is one of those countries. I've spent some time in both Amsterdam and London earlier in the year, but I just did a tour, uh, that included stops in Toronto, Bengaluru, Mexico City and Sao Paulo.

1:24:54

And the two most sophisticated customers I talked to this year were in Mexico City and Sao Paulo. And they assumed when we started their conversation that they had US. competitors that were doing things that they weren't, and, like I said, the opposite was true. I think we've reached a point with some of these technologies that, like, geographic barriers don't matter nearly as much as they did during, like, the web app era, or or even during the cloud era.

1:25:23

Because for the cloud era, like, if one of the hyperscalers didn't have a data center in your country yet, you were kind of out of luck. That's not true anymore. Like, pretty much every country has at least one hyperscaler data center in it. And by extension, access to models and vector databases and embeddings and re-ranker, like, access for these things is far better than what I've seen with previous technology revolutions that we've seen. So I think understand why there would be an assumption that US.

1:25:55

companies would be ahead, since so many of the bigger AI companies are US.-based. But like I said, the two coolest things I've seen this year were in Mexico City and in Sao Paulo. So I think that those geographic barriers to being ahead in the market are starting to disappear.

1:26:15
Nathan Labenz

What do you think are the barriers? W- Why is that, I guess? I is it that the American companies are culturally too conservative to run as fast as some of these international companies are? Is it that? Is it like a leapfrog story where they sort of had the international companies, I mean, had kind of less recent technology investment that they would have to get comfortable replacing? Or what's what's driving that surprising observation?

1:26:45
Pete Johnson

Well, I think it has more to do with the lack of barriers outside the US. than it does with any of the behaviors of the companies within the US. It's just access is democratized now in a way that it wasn't that way, that it wasn't for the cloud and for the mobile waves, right? Like, if you didn't have the radio towers yet, an iPhone's not gonna do you much good. But now we have all this infrastructure that's laid worldwide in a way that we didn't fifteen years ago.

1:27:11

That that makes access to these things far easier than they were before. So there's just there's just a wider set of people in a wider set of countries that have access now that they didn't before. So I don't think it's any. It's not an indictment of the way that I think US. companies are thinking about it. I just think the there that greater access erodes those geographic barriers that we've seen with previous technology waves.

1:27:35
Nathan Labenz

Any closing thoughts? Any anything you'd want to leave people with, or anything I didn't get to that you would want to make sure we touch on?

1:27:42
Pete Johnson

Well, there one technology thing that we have I didn't get a chance to talk about, and that's shared embedding spaces, and then there's there's also this notion of just like, kind of where we are on this journey together. The shared embedding spaces, real quick, is one of the other ease-of-use things that the voyage models provide that nobody else does. Is in January, we released four versions of the of the version four of the text model. Everybody typically releases small, medium and large, and at those different price, they each one has a different price point and a different retrieval quality that comes along with that.

1:28:18

But we also introduced something called the nano, which is open weight and free for anybody to download in off of Hugging Space. And what shared embedding spaces does is each one of those four models shares an embedding space, meaning that embeddings that are generated with one of those models, they're compatible with the other three. And what that lets you set up is you could take your corpus of data and you could embed it s using, say, the large and developments.

1:28:48

Every other embedding model is gonna force you to pay tokens during your development cycle to hit against their embedding model. So as you're querying, as you're taking your queries and you're you're passing them through the embedding model to do your searches. But with us, you can use the nano there, you can run that on your laptop if you wanted to, so you could, if you wanted to, have zero token cost aside from the embedding of the corpus of data.

1:29:13

But for your queries, you could eliminate your your token costs during development in a way that wasn't possible before January. So that's not for everybody. You do take a little bit of a retrieval hit when you use a different retrieval quality hit when you use a different model, but it for some customers that don't want to have to, that want to lower their token cost during development. This is one way that they can potentially do that.

1:29:35

So that's that's shared embedding spaces, which we introduced in January. Um, and more broadly, I want to come back to the idea that we've been building databases for a really long time, we have not been building agents for a very long time. We're we're gonna s continue to see iterative improvement and it's gonna happen fast. Like MC published MCP on like Monday before Thanksgiving two years ago, and

1:30:00
Nathan Labenz

by March, all of their competitors had embraced it as a protocol. Token maxing first got mentioned in like, early March, and by April it was over. As like a conversation piece, like the quickness, the speed at which we have these conversations and we go through these cycles of these different features, it just it's faster than it ever has been before. So the fun part is there's still a lot we all have collectively to learn. We're gonna all collectively figure out how to make this easier for everybody.

1:30:32

And y- you'll see more and more agents in everyday life as a result. Well as field CTO of AI at MongoDB. I know you're gonna be racing as hard as you can to keep up with all these cycles, and we'll continue to look for new updates and more great progress from you. Pete Johnson, thank you for being part of the cognitive revolution. Nobody keeps just one thing anymore. We used to have to choose one picture for a whole December, one letter we couldn't lose.

1:31:22

Now there's a record of every hour, boxes stacked to the beams, a house so full of yesterday, it's swollen at the seams. Can't forget it is the hardest part. So I held on to it all every summer, every borrowed song, and I can't find you at all. I kept everything, everything but you, I kept everything, everything but you. I went looking for you Sunday down the rows of all. I own. Everything lies with its own kind, and everything but you has a home.

1:32:08

Your love is in a box somewhere under years. I never sorted through. I swear I never lost a thing. I just can't get to you. Can't forget it is the hardest part. So I held on to it all every summer, every borrowed song, and I can't find you at all. I kept everything, everything but you, I kept everything, everything but you. Last night, looking for my keys, I found that Ferris wheel, a ticket folded in a roadmap next to songs you used to steal.

1:33:11

Nothing in this house is gone. It all stays close to what it knows. I quit digging, started following, and the pile became a road. Now when I come looking, I don't tear the whole house through. I start with one bright summer and let it walk me back to you, one thing beside another. Each one hands me one more down the rows, right to your laughter, right where it was before. Cause forgetting is the hardest part, and I never needed it at all.

1:34:24

Every summer, every borrowed song is a light on down the hall. I kept everything, everything leads to you. I kept everything, everything leads to you, everything leads to you. Down the road and back again, everything leads to you. Down the road and back again, everything leads me home to you. If you're finding value in the show, we'd appreciate it if you'd take a moment to share it with friends, post online, write a review on Apple Podcasts or Spotify, or just leave us a comment on YouTube.

1:34:28

Of course, we always welcome your feedback, guest and topic suggestions, and sponsorship inquiries, either via our website, cognitiverevolution dot ai, or by dming me on your favorite social network. The Cognitive Revolution is part of the Turpentine Network, a network of podcasts, which is now part of a sixteen z, where experts talk technology, business, economics, geopolitics, culture, and more. We're produced by AI podcasting. If you're looking for podcast production help, for everything from the moment you stop recording to the moment your audience starts listening, check them out and see my endorsement at ai podcast dot ing.

1:35:18

And thank you to everyone who listens for being part of the cognitive revolution.