Back to Podcasts
Latent Space

Long Live Context Engineering - with Jeff Huber of Chroma

Latent Space • swyx + Alessio

Tuesday, August 19, 2025
Long Live Context Engineering - with Jeff Huber of Chroma

Long Live Context Engineering - with Jeff Huber of Chroma

Latent Space

0:000:00

What You'll Learn

  • Chroma is building a retrieval engine and modern search infrastructure for AI applications, with a focus on developer experience
  • The founders wanted to create a production-ready AI system that felt more like engineering than alchemy
  • Chroma prioritized ease of use, allowing users to get started with just a pip install
  • The company took a patient, vision-driven approach to product development rather than rushing to market
  • Hiring the right team aligned with the company's vision is crucial for Chroma's success

AI Summary

The episode discusses Chroma, a company building a retrieval engine for AI applications. The founders wanted to create a production-ready AI system that felt more like engineering than alchemy. They focused on search as a key workload for AI apps and built a modern, distributed search infrastructure using Rust and object storage. Chroma prioritized developer experience, making it easy to get started with just a pip install. The episode also covers Chroma's patient approach to product development, building the right thing rather than rushing to market, and the importance of hiring the right team aligned with the company's vision.

Key Points

  • 1Chroma is building a retrieval engine and modern search infrastructure for AI applications, with a focus on developer experience
  • 2The founders wanted to create a production-ready AI system that felt more like engineering than alchemy
  • 3Chroma prioritized ease of use, allowing users to get started with just a pip install
  • 4The company took a patient, vision-driven approach to product development rather than rushing to market
  • 5Hiring the right team aligned with the company's vision is crucial for Chroma's success

Topics Discussed

#Retrieval engines#Search infrastructure#AI applications#Developer experience#Startup strategy

Frequently Asked Questions

What is "Long Live Context Engineering - with Jeff Huber of Chroma" about?

The episode discusses Chroma, a company building a retrieval engine for AI applications. The founders wanted to create a production-ready AI system that felt more like engineering than alchemy. They focused on search as a key workload for AI apps and built a modern, distributed search infrastructure using Rust and object storage. Chroma prioritized developer experience, making it easy to get started with just a pip install. The episode also covers Chroma's patient approach to product development, building the right thing rather than rushing to market, and the importance of hiring the right team aligned with the company's vision.

What topics are discussed in this episode?

This episode covers the following topics: Retrieval engines, Search infrastructure, AI applications, Developer experience, Startup strategy.

What is key insight #1 from this episode?

Chroma is building a retrieval engine and modern search infrastructure for AI applications, with a focus on developer experience

What is key insight #2 from this episode?

The founders wanted to create a production-ready AI system that felt more like engineering than alchemy

What is key insight #3 from this episode?

Chroma prioritized ease of use, allowing users to get started with just a pip install

What is key insight #4 from this episode?

The company took a patient, vision-driven approach to product development rather than rushing to market

Who should listen to this episode?

This episode is recommended for anyone interested in Retrieval engines, Search infrastructure, AI applications, and those who want to stay updated on the latest developments in AI and technology.

Episode Description

Jeff Huber of Chroma joins us to talk about what actually matters in vector databases in 2025, why “modern search for AI” is different, and how to ship systems that don’t rot as context grows. Full show notes: https://www.latent.space/p/chroma 00:00 Introductions 00:48 Why Build Chroma 02:55 Information Retrieval vs. Search 04:29 Staying Focused in a Competitive AI Market 08:08 Building Chroma Cloud 12:15 Context Engineering and the Problems with RAG 16:11 Context Rot 21:49 Prioritizing Context Quality 27:02 Code Indexing and Retrieval Strategies 32:04 Chunk Rewriting and Query Optimization for Code 34:07 Transformer Architecture Evolution and Retrieval Systems 38:06 Memory as a Benefit of Context Engineering 40:13 Structuring AI Memory and Offline Compaction 45:46 Lessons from Previous Startups and Building with Purpose 47:32 Religion and Values in Silicon Valley 50:18 Company Culture, Design, and Brand Consistency 52:36 Hiring at Chroma: Designers, Researchers, and Engineers

Full Transcript

Hey everyone, welcome to the Lit in Space podcast in the new studio. This is Alessio, partner and CTO at Decibel, and I'm joined by Swix, founder of Small AI. Hey, hey, hey. It's weird to say welcome because obviously, actually, today's guest, Jeff, has welcomed us to Chroma for many months now. Welcome. Thanks for having me. Good to be here. Jeff, you're a founder, CEO of Chroma. I've sort of observed Chroma for a long, long time, especially back in the old office. and you were you originally sort of got your start in the open source vector database right like you sort of you're the open source vector database of choice of a lot of different projects particularly with even even projects like the voyager paper you guys were used in that i don't even know like the full list but um how do you introduce chroma today it's a good question i mean naturally you always want to kind of take your messaging and make it fit your audience yeah But I think the reason that Chroma got started is because we had worked for many years in applied machine learning. And we'd seen how demos were easy to build, but building a production reliable system was incredibly challenging. And that the gap between demo and production didn't really feel like engineering. It felt a lot more like alchemy. There's some good XKCD memes about this guy standing on top of a giant steaming pile of garbage. and the other character asks, this is your data system? And he's like, yes. He's like, how do you know if it's good? Or how do you make it better? You just like stir the pot and then like see if it gets any better. That just seemed intrinsically wrong. And this is back in like 2021, 2022 that like we were having these conversations. And so that coupled with like a thesis that like latent space was a very important tool. That is a plug. Yes, we agree. That is a plug. We need to ring the bell. Yeah, exactly. That latent space, both the podcast, but also the technology, was a very underrated tool and a very important tool for interpretability. It's fundamentally how models see their own data. We as humans can kind of have that shared space to understand what's going on. That's where we got started. And so I think that's also where we continue to want to go. Like, what do we want to do? We want to help developers build production applications with AI and what would make the process of going from demo to production feel more like engineering and less like alchemy. Doing a database is not a side quest. It is a part of the main quest. What we realized along the way was search was really a key workload to how like AI applications were going to get built. It's not the only workload, but it's definitely a really important workload. And that you don't earn the right to do more things until you've done one thing at a world class level. That requires maniacal and, you know, kind of maniacal focus. And so that's really what we've been doing for the last few years. That was a long kind of rambling introduction. But like maybe to sort of land the plane, you know, if you ask people, you know, what does Chroma do today? We build a retrieval engine. For AI applications, we're working on modern search infrastructure for AI, some version of that. I'll do a double click on this. Is information retrieval and search the same thing? Or are they slightly different in your mind? I just wanted to clarify our terminology. Yeah, I think that, you know, that modern search infrastructure for AI. Yeah. We're going to maybe unpack that for a couple seconds. So modern is in contrast to traditional. And mostly what that means is like modern distributed systems. So there's a bunch of primitives in building great distributed systems that have come on to the scene in the last five, 10 years that obviously are not in technology that is older than that by definition. Separation of read and write, separation of storage compute, Chrome is written in Rust, it's fully multi-tenant. We use object storage as a key assistance tier and data layer for Chroma distributed and Chroma Cloud as well. So that's the modern piece. And then the 4AI piece, actually, I think it matters in four kind of different ways. 4EI means four different things. It means, number one, the tools and technology that you use for search are different than in classic search systems. Number two, the workload is different than classic search systems. Number three, the developer is different than classic search systems. And number four, the person who's consuming those search results is also different than in classic search systems. Think about classic search systems. You, as the human, were doing the last mile of search. You were doing... Click, click, click. Exactly. You're like, oh, like, which of these are relevant? Open a new tab, summarize, blah, blah, blah, blah. You, the human, were doing that, and now it's a language model. Humans can only digest 10 blue links. Language models can digest orders of magnitude more. All of these things matter and influence how a system is designed and what it's sort of made for. Back in 2023, I think the vector DB category was kind of one of the hottest ones. And you had Pineconverse, 100 million. You had all these different WeVA. You had all these companies. Yep. But how did you stay focused on what mattered to you rather than just trying to raise a lot of money and make a big splash? And it took you a while to release Chroma Cloud 2, which rather than just getting something out that maybe broke once you got to production, you kind of took your time. Can you maybe give people advice in the AI space, how to be patient as a founder, and how to have your own vision that you follow versus kind of like following the noise around you? There are different ways to build a startup. And so there are different schools of thought here. So one school of thought certainly is like the find signal and kind of follow the gradient descent of what people want, sort of lean startup style. My critique of that would be that if you follow that methodology, you will probably end up building a dating app for middle schoolers because that just seems to be like the lowest base take of what humans want to some degree. the slot machine would be the ai equivalent of that versus you know the other way to start up is to have a very strong view presumably a contrarian view or at least a view that seems like a secret and then to just be maniacally focused on that thing you know they're different strokes for folks we've always taken the second approach and yeah there was the option of like okay chroma's single node is like doing really well getting a bunch of traffic clearly having a hosted service is the thing people want like we could just spend uh we could very quickly get a product in the market but we felt like no really what we want chroma to be known for is our developer experience like we want our brand to be we want chroma's brand and the craft expressed in our brand to be extremely well known and we felt like by offering a single node product as the surface like it was not gonna meet our bar of like what great developer experience could and should look like yeah we made the decision of like no we're gonna like build the thing that we think is right which was really challenging um it took a long time and obviously i'm incredibly proud that it exists today and that it's like serving hundreds of thousands of developers and they love it but it was hard to get there when you're building the team how do you message that if i go back maybe like a year and a half ago you know i could join chroma i could join all these different companies how do you keep the vision clear to people when on the outside you have oh i'll just use pg vector or like you know whatever else the thing of the day is do you feel like that helps you bring people that are more aligned with the vision versus more of the missionary type on just joining this company before it's hot and maybe yeah any learning that you have from recruiting early on the upstream version of conway's law like you ship your org chart is you ship your culture because i think your org chart is downstream of your company's culture. We've always placed an extremely high premium on that, on people that we actually have here on the team. I think that the slope of our future growth is entirely dependent on the people that are here in this office. And that could mean going back to zero, that could mean linear growth, that could mean all kinds of versions of hyperlinear growth, exponential growth, hockey stick growth. And so, yeah, we've just really decided to hire very slowly and be really picky. and I don't know. I mean, you know, the future will determine whether or not that was the right decision. But I think having worked on a few startups before, like that was something that I really cared about was like, I just want to work with people that I love working with and like want to be shoulder to shoulder with in the trenches. And I think can independently execute on the level of like craft and quality that like we owe developers. And so that was how we chose to do it. Talk about standard foundation and all the other fun stuff towards the end, but we'll focus on Chroma. I always want to put some headline numbers up front. So I'm just trying to do a better job of giving people the brain dump on what they should know about Chroma. 5 million monthly downloads is what I have on PyPy and 21,000 GitHub stars. Anything else people should know that's the typical sales call headline stuff? Yeah, 21,000 GitHub stars, 5 million plus monthly downloads. I've looked at the number recently. I think it's over 60 or 70 million all-time downloads now. For many years running, Chroma's been the number one used project broadly, but also within communities like Lange Chain and Lama Index. Okay, cool. Fair enough. I think when you say single node Chroma, I think you're describing the core difference between what Chroma Cloud has been. And I think we're releasing this in line with your GA in Chroma Cloud. Yes. So what should people know about Chroma Cloud and how you've developed this experience from the start? Like you mentioned separation of storage and compute. Like what does that detail? Yeah, 100%. Chroma is known for its developer experience. I don't know that we were the first to do this. I think we were with Chroma, you just pip install ChromaDB and then you can use it. It's just like in memory. Like I think you can persist. It could have been the first database to ever be pip installable. Any SQLite wrapper is pip installable technically, you know? No, SQLite was not like pip installable even to this day, I don't think. You probably have a deeper dive and knowledge of this. I'm just speculating myself. Yeah. So that led to a very seamless onboarding experience for new users, because you could just run a command, and then you could use it. We did all the work to make sure that regardless of the deployment target or architecture that you were running it on, it would just work. In the early days, we had people do really great stuff, like run it on Arduinos and PowerPC architectures and really esoteric stuff. We would go the extra mile to make sure that it worked everywhere. It just always worked. So that was Chroma single node. So going back to the developer experience we wanted to have in a cloud product, we felt that in the same way that you could run PIPA cell ChromeDB and be up and running in five seconds and not have to think about it, you don't have to learn a bunch of abstractions, you don't have to spend a bunch of time learning this really complicated API, that same story had to be true for the cloud. And so what that meant is like having a version of the product where you have to be forced to think about like how many nodes you want or how to size those nodes or how your sharding strategy should be or your backup strategy or your data tiering strategy or I could go on. like it just wasn't wasn't good enough it needed to be like zero config zero novstitune it should just be always fast always very cost effective and always fresh without you having to do or think about anything regardless of how your traffic goes up and down and how your data scale goes up and down that was sort of the motivating criteria it also like usage-based billing that was really important because that just is like so fair we only charge you for the minimal slice of compute that you use and like nothing more, which not all serverless databases can claim, but it is true inside of Chroma that we like truly only charge you for the narrow slice of what you use. And so like that was the criteria that we entered kind of the design criteria process. Which is, you know, de facto, you're also building a serverless compute platform. Yeah, you have to. No, exactly. That motivated the design of Chroma Distributed. Chroma Distributed is also a part of the same monorepo. That's open source Apache 2. And then the control and data plane are both fully open source Apache 2. and then chroma cloud uses chroma distributed to run a service and that service you can sign up create a database and load in data in under 30 seconds and this is sort of a time of filming people get like five bucks of free credits which is actually enough to load in like a hundred thousand documents and query it a hundred thousand times which obviously for a lot of use cases actually might mean they use it for free for years which is fine and to get there we had to do kind of all the hard work. Yeah. I think every blog should basically have semantic indexing. So like, you know, you host your personal blog on Chroma, you know, like we're not. Yeah. I mean, you know, the mission of organizing the world's information remains unsolved. Yeah. You have one of your usual cryptic tweets. I knew you tweeted context engineering a couple months ago. What was it? April. I think everybody now is talking about context engineering. Can you give the canonical definition for you and then how Chroma plays into it? And then we'll talk about all the different pieces of it. I think something that's incredibly important when a new market is emerging is abstractions and the primitives that you use to reason about that thing. And AI, I think, in part of its hype, has also had a lot of primitives and abstractions that have gotten thrown around and have led to a lot of developers not actually be able to think critically about what is this thing? How do I put it together? What problems can I solve? What matters? Where should I spend my time? For example, the term rag, we never use the term rag. Like I hate the term rag. Yeah, I killed the rag track partially because of your influence. Thank you. Thank you. A is just retrieval, first of all. Like retrieval of many generations are three concepts put together into one thing. Like it's just really confusing. And of course, rag got known now as he's branded as like, you know, oh, you're just using single dense vector search and that's what RAG is. It's also dumb. I think one of the reasons I was really excited about the term, I mean, obviously AI engineering, which you did a ton of work for, like context engineering is in some ways a subset of AI engineering. Like what is it? It's a high status job. Context engineering is the job of figuring out what should be in the context window, any given LLM generation step. And there's both an inner loop, which is setting up the information, you know, what should be in the context window this time. And there's the outer loop, which is how do you get better over time at filling the context window with only the relevant information? And we recently released a technical report about context rot, which goes sort of in detail and depth about how the performance of LLMs is not invariant to how many tokens you use. As you use more and more tokens the model can pay attention to less and then also can reason sort of less effectively I think this really motivates the problem You know context rot implies the need for context engineering And I guess like why I really excited about the meme and, you know, I got maybe both lucky to some degree that, you know, called it back in April, this is going to be a big meme, is that it elevates the job to, it clearly describes the job and it elevates the status of the job. This is what, frankly, most AI startups, any AI startup that you know of, that you think of today that's doing very well, like what are they fundamentally good at what's the one thing that they're good at it is context engineering particularly i would feel like the a the a lot of pieces i've read a lot of it focuses on agents versus non-agent stuff like the context engineering is more relevant for agents do you make that distinction at all or you're just looking at context engineering generally no i mean there's interesting agent implications of like you know agent learning you know can agents kind of learn from their interactions which maybe are less relevant and like static sort of knowledge-based corpuses, chat your documents, obviously. Then again, like, you know, I think you could make the argument that even like chat your document use cases, like should get better with more interactions. I don't draw a distinction between agent and non-agent. I don't actually know what agent means still, but again, affirmative, abstractions, words, they matter. I don't know. Like what does agent mean? I don't know. Well, there's many definitions out there. I've taken a stab. Most terms that can mean anything are just a vehicle for people's hopes and fears. Yeah. Um, I think, you know, agent is the same thing for sure. Well, maybe we'll try to be more concise or precise about context engineering so that it doesn't, uh, it actually means something and people can actually use it to do stuff. One thing I definitely will call out for context engineering or context rod in general is I think that there's been a lot of marketing around needle in a haystack where every frontier model now comes out with like completely green perfect charts of full utilization across you know one million tokens i'm wondering what you guys's uh takes are all on that kind of marketing and yeah yeah so maybe back up a little bit the way that we came to work on this research was we were looking actually at agent learning so we're very curious like could you give agents access to like prior successes or prior failures and if you did would that help boost agent performance we're specifically looking at a couple different data sets uh sweet bench inclusive and we started seeing interesting patterns where like on sort of multi-turn agent interactions where you're giving it the whole conversation window like the number of tokens explodes extremely quickly and instructions that were clearly in there like we're being ignored and we're not being enacted upon and we're like oh that that clearly is a problem we've now felt the pain it was sort of a meme amongst people in the know that like this was true and like i think also you know some of the research community's reaction to the context of our technical report is like yeah we know and you know that's fine nobody else knew. And like, you're kind of nice if like you can actually teach builders what is possible today versus what is not possible today. I don't blame the labs. I mean, building models is so insanely competitive. Everybody invariably is like picking the benchmarks that they want to do the best on. They're training around those. Those are also the ones that, you know, find their way into their marketing. You know, most people are not motivated to come out and say, here are all the ways that our thing is great. And here are the ways that our thing is not great. You know, I don't, I can have, I have some sympathy for, you know why this was not reported on but yeah i mean there was there was this bit of like this sort of implication where like oh look our model is perfect on this task needle in a haystack therefore the context window you can use for whatever you want there was an implication there and well i hope that that is true someday that is not the case today yeah well uh send people at least on the youtube video we'll put this chart which is kind of your figure one of the context rod report it seems like sonic 4 is the best in terms of area under curve is how i think about it then quen wow and then gpc 401 and gemini flash are uh degrade a lot quicker in terms of context length yeah i don't have much commentary that is what we found uh for this particular task again how that translates people's actual experience in real world you know tasks is entirely different i mean there is a certain amount of love that developers have for clod and like maybe those two things are correlated yeah i think it shows here if this is this is true. That's a big explanation for why. You follow my instructions. There's a clear baseline thing people want. I don't think it's super answered here, but I have a theory also that reasoning models have better context visualization because they can loop back. Normal auto-aggressive models, they just kind of go left to right. But reasoning models, in theory, they can loop back and look for things that they needed connections for that they may not have paid attention to in the initial pass. There's a paper today that showed, I think, maybe the opposite, but I'll send you later. Yeah. That'd be fascinating to figure out. Spapers every day. I thought the best thing was that you did not try to sell something. You're just like, Hey, this thing is broken. Kind of sucks. How do you think about problems that you want to solve versus research that you do to highlight some of the problems and then hoping that other people will participate? Like does everything that you talk about is on the Chroma roadmap basically or are you just advising people hey this is bad work around it but don't ask us to fix it going back what i said a moment ago like chroma's broad mandate is to make the process of building a applications more like engineering and less like alchemy um and so you know this is a pretty broad tent but we're a small team and we can only focus on so many things we've chosen to focus very much on one thing for now and so i don't think that i don't have the hubris to think that we can ourselves solve this stuff conclusively for a very dynamic and large emerging industry i think it does take a community it does take like a rising tide of people all working together we intentionally wanted to like make very clear that like we do not have any like commercial motivations in this research you know we do not posit any solutions we don't tell people to use chroma it's just here's the here's the problem it's implied um yeah listen we weren't sad that that was maybe, and maybe it may be a positive vacation, you know, but like it's still, there's still reasons around, you know, speed and costs regardless, I think, but there's just a lot of work to do. And I think that like, it's interesting where like the labs don't really care and they're not motivated to care. Increasingly as the market to be, to be a good LLM provider, the main market seems to be consumer. You're just not that motivated to like help developers. As a secondary concern. As a secondary concern. It's just like not that motivated really to do the legwork to like help developers learn how to build stuff. And then if you're a SaaS company or you're a consumer company, you're building with AI, you're an AI native company, this is your secret sauce. You're not going to market how to do stuff. And so there's a natural empty space, which is people that actually have the motivations to help show the way for how developers can build with AI. There's not a lot of obvious people who are obviously investing their time and energy in that. But I think that is obviously a good thing for us to do. And so that's kind of how I thought about it. Just a pushback on the consumer thing. Like you say labs and, you know, don't you think like opening eye building memory into chat GPT and making it available to literally everybody and probably too much in your face, I would argue. But like they would really care to make the memory utilization good. I think context utilization, context engineering is important for them, too, even if they're only building for consumer and don't care about developers. Yeah. How good is it today is obviously one important question. But we'll skip that one. Like, even if that's the case, are they actually going to publish those findings? No, never. Exactly. It's alpha, right? Why would you give away your secrets? Yeah. And so I think there's just like very few companies that actually are like in the position where like they had the incentive and they really care about like trying to teach developers how to build useful stuff with AI. And so I think that we have that incentive. But do you think you could get this to grow to the point of being the next needle in a haystack and then forcing the models providers to actually be good at it? There's no path to forcing anybody to do anything. And so we thought about that when we were kind of putting this together. We're like, oh, maybe we should sort of formulate this as a formal benchmark that you can make it very easy to like, we did open source all the code. So you could, if you're watching this and you're from a large model company, you can do this. You can take your new model that you haven't released yet and you can run these numbers on it. And, you know, I would rather have a model that has a 60,000 token context window that is able to perfectly pay attention to and perfectly reason over those 60,000 tokens than a model that's like 5 million tokens. Like, just as a developer, the former is, like, so much more valuable to me than the latter. I certainly hope that model providers do, like, pick this up as a thing that they care about and that they train around and that they, you know, evaluate their progress on and they communicate to developers as well. That would be great. Do you think this will get a bitter lesson as well? how do you decide which of the because you know you're basically saying yeah the models will not learn this it's going to be a trick on top of it that you won't get access to i'm not saying that well but when you're saying that they will not publish how to do it well it means that the model api will not be able to do it but they will have something in chat gpt that will be able to do it i see yeah it's very risky to bet what's going to be a better lesson versus what is not i don't think i'll hazard a guess hopefully not ai engineers yeah hopefully not all of humanity I don't know, you know, yeah. To me, also an interesting discipline developing just around context engineering. Lance Martin from Langchain did a really nice blog post of like all the different separations. And then you, in New York, you had, you hosted your first meetup. We're going to do one here in San Francisco as well. But I'm just kind of curious, like what are you seeing in the fields? Like who's doing interesting work? What are the top debates? That kind of stuff. I think this is still early. I mean, a lot of people are doing nothing. A lot of people are just still eating everything into the context window. That is very popular. And they're using context caching, and that certainly helps. But like, there are costs and speed, but like, isn't helping the context raw problem at all. And so yeah, I don't know that there's lots of best practices in place yet. I mean, I'll highlight a few. So the problem fundamentally is quite simple. It's, you know, you have N number of sort of candidate chunks, and you have Y spots available. And you have to do the process to curate and cull down from 10,000 or 100,000 or a million candidate chunks, which 20 matter right now for this exact step. That optimization problem is not a new problem to many applications and industries, sort of a classic problem. And of course, like what tools people use to solve that problem, again, I think it's still very early. It's hard to say. But a few patterns that I've seen. So one pattern is to use what a lot of people call first stage retrieval to do a big call down. So that should be using signals like vector search, like full text search, like metadata filtering, metadata search, and others to go from, let's say, 10,000 down to 300. Like we were saying a moment ago, like you don't have to give an LLM 10 blue links. You can brute force a lot more. And so using an LLM as a re-ranker and brute forcing from 300 down to 30, I've seen now emerge a lot. Like a lot of people are doing this. And it actually is like way more cost effective than I think a lot of people realize. I've heard of people that are running models themselves that are getting like a penny per million input tokens. And like the output token cost is basically zero because it's like a, you know, the simplest. These are dedicated re-ranker models, right? Not full LLMs. No, these are LLMs. Oh, okay. They're just using LLMs as re-rankers. Okay. And of course, there are also dedicated re-ranker models that by definition are going to be still like cheaper because they're much smaller and faster because they're much smaller. But like what I've seen emerge is like application developers who already know how to prompt are now applying that tool to re-ranking. And I think that like, this is going to be the dominant paradigm. I actually think that like, probably purpose-built re-rankers will go away in the same way that like purpose-built, they'll still exist, right? Like if you're at extreme scale, extreme cost, yes. You'll care to optimize that. And the same way that if you're running with hardware, right? Like you're just going to use a CPU or a GPU unless you absolutely have to have an ASIC or an FPGA. And I think the same thing is true about like re-rankers where like as LLMs become a hundred, a thousand times faster, a hundred, a thousand times cheaper, that like people are just going to use LLMs for re-rankers. And that actually like brute forcing information curation is going to become extremely, extremely popular. Now today, the prospect of running 300 parallel LLM calls, even if it's not very expensive, you know, the tail latency on any one of those like 300 LLM calls, API availability, like it's also really bad. And so like, there are good reasons to not do that today in a production application, but those will also go away over time. So those patterns I think I've seen emerge that are, that's a, that is a new thing that I think I've only seen start to really become popular in the last few months. and by popular I mean like popular and like the leading tip of the spear but I think we'll become a very, very dominant paradigm. Yeah, we've also covered a little bit on especially on the code indexing side of the house. So everything we've been talking about applies to all kinds of contexts. I think code is obviously a special kind of context and corpus that you want to index. We've had a couple of episodes, the cloud code guys and the client guys talk about they don't embed or they don't index your code base. They just give tools and use the tools of code search. And I've often thought about whether or not this should be the primary context retrieval paradigm where when you build an agent, you effectively call out to another agent with all these sort of recursive re-rankers and summarizers or another agent with tools. Or do you sort of glom them onto a single agent? I don't know if you have an opinion, obviously, because agent is very ill-defined, but I'll just put it out there. You can pull that apart. So, you know, indexing by definition is a trade-off. Like when you index data, you're trading write-time performance for query-time performance. You're making it slower to ingest data, but much faster to query data, which obviously scales as data sets get larger. And so if you're only grepping very small, 15 file code bases, you probably don't have to index it, and that's okay. If you want to search all of the open-source dependencies of that project, you all have done this before in VS Code or Cursor, right? You run a search over the Node Modules folder. It takes a really long time to run that search. That's a lot of data. Like to make that indexed and sort of again make that trade off of write performance or create performance That what indexing is Like just like demystify it What is this right Like that what it is You know embeddings are known for semantic similarity today Embeddings is just a generic concept of, like, information compression. There's actually, like, many tools you can use embeddings for. I think embeddings for code are still extremely early and underrated. But RegEx is obviously an incredibly valuable tool. and we've actually worked on now inside of Chroma, both single-load and distributed, we support regex search natively. So you can do regex search inside of Chroma because we've seen that as a very powerful tool for code search. It's great. And we built indexes to make regex search go fast at large data volumes. On the coding use case that you mentioned, another feature we added to Chroma is the ability to do forking. So you can take an existing index and you can create a copy of that index in under 100 milliseconds for pennies. And in so doing, you then can just apply the diff for what file has changed to the new index. So any like corpus of data that's logically changing. So very fast re-indexing is the result. But now you can like have an index for like different each commit. So if you want to search different commits, search different branches or different release tags, like any corpus of data that's like a logically versioned, you now can search all those versions very easily and very cheaply and cost-effectively. And so, yeah, I think that, you know, That's kind of how I would sort of think about like regex and indexing and embeddings. I mean, yeah, the needle continues to move here. I think that anybody who claims to have the answer, you just like shouldn't listen to them. When you say that code embeddings are underrated, what do you think that is? Most people just take generic embedding models that are trained on the internet and they try to use them for code. And like, it works okay for some use cases, but does it work great for all use cases? I don't know. Another way to think about these different primitives and what they're useful for, fundamentally, we're trying to find signal. Text search works really well. Lexical search, text search works really well. When the person who's writing the query knows the data. If I want to search my Google Drive, I just, for the spreadsheet that has all my investors, I'm just going to type in cap table. Because I know there's a spreadsheet in my Google Drive called cap table. Full text search, great, it's perfect. I'm a subject matter expert in my data. Now, if you wanted to find that file and you didn't know that I had a spreadsheet called CapTable, you're going to type in the spreadsheet that has the list of all the investors. And of course, in embedding space and semantic space, that's going to match. And so I think, again, these are just like different tools. And it depends on like who's writing the queries. It depends on what expertise they have in the data. Like what blend of those tools is going to be the right fit. My guess is that like for code today, it's something like 90% of queries or 85% of queries can be satisfactorily run with regex. Regex is obviously like the dominant pattern used by Google Code Search, GitHub Code Search, but you maybe can get like 15% or 10% or 5% improvement by also using embeddings. Very sophisticated teams also use embeddings for code as part of their code retrieval code search stack. And you shouldn't assume they just enjoy spending money on things unnecessarily. They're getting some, they're eking out some benefit there. And of course, like for companies that want to be like top of their game and want to corner their market and want to serve their users the best. This is kind of what it means to build great software with AI. 80% is quite easy, but getting from 80% to 100% is where all the work is. And each point of improvement is a point on the board and is a point that I think users care about and is a point that you can use to, yeah, fundamentally just serve your users better. Do you have any thoughts on the developer experience versus agent experience? This is another case where, well, we should maybe reformat and rewrite the code in a way that it's easier to embed and then train models there. Where are you on that spectrum? Yeah, I mean, one tool that I've seen work well for some use cases is instead of just embedding the code, you first have an LLM generate like a natural language description of like what this code is doing. And either you embed like just the natural language description or you embed that and the code or you embed them separately and you put them into like separate, you know, vector search indexes. Chunk rewriting is kind of like the broad category for like what that is. Again, this is like, the idea here is like, it's related to indexing, which is as much structured information as you can put into your write or your ingestion pipeline, you should. So all of the metadata you can extract, do it at ingestion. All of the chunk rewriting you can do, do it at ingestion. If you really invest in like trying to extract as much signal and kind of pre-bake a bunch of the signals at the ingestion side, I think it makes the downstream query task much easier. But also, just because we're here, it's worth saying people should be creating small golden datasets of what queries they want to work and what chunks should return. And then they can quantitatively evaluate what matters. Maybe you don't need to do a lot of fancy stuff for your application. It's entirely possible that, again, just using regex or just using vector search, depending on the use case. That's maybe all you need. I guess, again, anybody who's claiming to know the answer, the first thing you should ask is, let me see your data. And then if they don't have any data, then you have your answer already. I'll give a plug to a talk that you gave at the conference, how to look at your data. Yes, looking at your data is important, having going on data sets. These are all good practices that I feel like somebody should put into a little pamphlet, call it the 10 commandments of AI engineering or something. Okay, you might do that, yeah. Thou shalt look at your data. we're about to move on to memory but like i want us to sort of leave space for like you know any other threads that you feel like you always want to get on a soapbox about that yeah that's dangerous that's a dangerous thing to ask um i have one to to key off of because i think uh i didn't i didn't know i didn't know where to insert this in the conversation but we're kind of skirting near it that i'm trying to explore which is you know i think you had this rant about r a and g where the original transformer was sort of like an encoder decoder architecture. Then GBT turns most transformers into decoder only. But then we're also encoding with all the embedding models as encoder only models. So in some sense, we sort of decoupled the transformer into, first we encode everything with the encoder only model, put it into a vector database like Chroma. And Chroma also does other stuff, but you know. Then we decode with the LLMs. And I just think it's a very interesting meta learning about the overall architecture. It is stepping out of just a model to models and system. And I'm curious if you have any reflections on that or if you have any modifications to what I just said. I think there's some intuition there, which is the way we do things today is very crude and we'll feel very caveman in five or ten years. Why aren't we just, why are we going back to natural language? Why aren't we just passing the embeddings directly to the models who are just going to functionally re-put it into latent space, right? Yeah, they have a very thin embedding layer, yeah. Yeah, so I think there's a few things that I think might be true about retrieval systems in the future. So number one, they just stay in latent space. They don't go back to natural language. Number two, instead of doing like, this is actually starting out to change, which is really exciting, but for the longest time, we've done one retrieval per generation. If you retrieve, and then you stream out a number of tokens. Like, why are we not continually retrieving as we need to? Don't call it that. Stop. But there was a paper or a paper in a, you know, maybe like a GitHub that came out a few weeks ago. I think it was called, unfortunately, Ragar1, where they like teach DeepScar1, you know, kind of give it the tool of how to retrieve. And so like kind of in its internal chain of thought and its infinite times compute, it's actually like searching. There's also retrieval augmented language models. I think this is an older paper. Yeah, there's a bunch of Realm and Retro, and it's kind of a long history here. Somehow not that popular, I don't know why. Somehow not that popular. Well, a lot of those have the problem where either the retriever or the language model has to be frozen, and then the corpus can't change, which most developers don't want to deal with the developer experience around. I would say we would do it if the gains were that high, or the labs don't want you to do it. I don't know about that. Yeah. Yeah. Because the labs have a huge amount of influence. Lots of a huge amount of influence. I think it's also just like, you don't get points on the board by doing that well. You just like, no one cares. The status games don't reward you for solving their problem. So yeah, so broadly, continual retrieval, I think will be interesting to see come out of the scene, number one. Number two, staying in embedding space will be very interesting. And then, yeah, there's some interesting stuff also about kind of like GPUs and how you're kind of like paging information into memory on GPUs that I think can be done like much more efficiently. and this is more like five or ten years in the future that we're kind of thinking about. But yeah, I think when we look back and think this was like hilariously crude the way we do things today. Maybe, maybe not. You know, we're solving IMO challenges with just language, you know? Yeah, it's great. I'm still working on the implications of that. Like it's still a huge achievement, but also very different than how I thought we would do things. You said that memory is the benefit of context engineering. I think there's, you had a rant on Twitter about stop making memory for AI so complicated. How do you think about memory? And what are like maybe the other benefits of context engineering that maybe we were not connecting together? I think memory is a good term. It is very legible to a wide population. Again, this is sort of just continuing the anthropomorphization of LLMs. You know, we ourselves understand how we as humans use memory. we're very good at well some of us are very good at using memory to learn how to do tasks and then those learnings being like flexible to new environments and you know the idea of being able to like take an ai sit down next to an ai and then instruct it for 10 minutes or a few hours and kind of just like tell it what you want it to do and it does something and you say actually do this next time the same that you would with a human at the end of that 10 minutes at the end of those few hours the ai is able to do it now and the same level of reliability that a human could do it, like is an incredibly attractive and exciting vision. I think that that will happen. And I think that memory again is like the memory is the term that like everybody can understand. Like we all understand our moms all understand. And, and, and the benefits of memory are also very appealing and very attractive, but what is memory under the hood? It's still just context engineering, I think, which is the domain of how do you put the right information into the context window. And so, yeah, I think of memory as the benefit. Context engineering is the tool that gives you that benefit. And there may be stuff as well. I mean, maybe there's some version of memory where it's like, oh, you're actually like using RL to improve the model through data scene. And so I'm not suggesting that like only change in context is the only tool which, you know, gives you great performance on tasks. But I think it's a very important part. Do you see a big difference between synthesizing the memory, which is like based on this conversation, what is the implicit preference? Yeah, that's one side. And then there's the other side, which is based on this prompt, what are the memories that I should put in? I think they will be all fed by the same data. So the same feedback signals that tell you how to retrieve better will also tell you what to remember better. So I don't think they're actually different problems. I think they're the same problem. To me, the thing I'm wrestling with a little more is just um what are the structures of memory that makes sense so there's like obviously all these analogies with like long-term memory short-term memory let us trying to coin something around sleep i do think that there there definitely should be some sort of batch collection cycle maybe sort of garbage collection cycle where it's like where the lm is sleeping but i don't know what makes sense like we're making all these analogies based on what we think how we think humans work yeah but maybe ai doesn't work the same way yeah i'm curious about uh anything that you've seen that's working yeah i always again you know as a through line of this conversation i always get a little bit nervous when we start creating new concepts and new acronyms for things and all of a sudden there's you know info charts that are like here are the 10 types of memory and you're like why these are actually if you squint they're all the same thing like do they have to have to be different you know like you have to blow the people's minds no i don't think you do I don't know. You got to resist the slot machine, the slot and the sloth machine. Compaction has always been a useful concept in even in databases and databases on your computer. We all remember running defrag on our Windows machines in a 98. And, you know, so, yeah, again, some of us not old enough to do that. I am not at this table. And yeah, so obviously, obviously, offline processing is helpful. and I think that is also helpful in this case. And as we were talking about before, what is the goal of indexing? The goal of indexing is to trade write-time performance for query-time performance. Compaction is another tool in the toolbox of write-time performance. You're re-indexing data. It's not indexing, but actually it is indexing. It's sort of re-indexing, yeah. You're taking data, you're like, oh, maybe those two data points should be merged. Maybe they should be split. Maybe they should be rewritten. Maybe there's new metadata we can extract from those. Let's look at the signal of how our application's performing. Let's try to figure out, Like, are we remembering the right things or not? Like the idea that there is going to be like a lot of offline compute and inference under the hood that helps make AI systems continuously self-improve is a sure bet. Part of the sleep time computing that we talked about was pre-computing answers. So based on the data that you have, what are likely questions that the person is going to ask? And then can you pre-compute those things? How do you think about that in terms of Chroma? We released a technical report maybe three months ago. The title is Generative Benchmarking. And the idea there is like, well, having a golden data set is really powerful. What a golden data set is is you have a list of queries and you have a list of chunks of those queries should result in And now you can say okay this retrieval strategy gives me for these queries gives me 80 of those chunks Whereas if I change the embedding model, now I get 90% of those chunks. That is better. And then you also need to consider cost and speed and API reliability and other factors, obviously, when making good engineering decisions. But you can measure now changes to your system. And so what we noticed was developers had the data. They had the chunks, they had the answers, but they didn't have the queries. We did a whole technical report around how do you teach an LLM to write good queries from chunks? Because again, you want like chunk query pairs. And so if you have the chunks, you need the queries. Okay, we can have a human do some manual annotation, obviously, but humans are inconsistent and lazy and, you know, QA is hard. And so can we teach an LLM how to do that? and so we sort of did a whole technical report and proved a strategy for doing that well. So I think generating QA pairs is really important for benchmarking your retrieval system, golden dataset. Frankly, it's also the same dataset that you would use to fine-tune in many cases. And so, yeah, there's definitely something very underrated there. Yeah, I'll throw a plus one on that. I think as much attention as the context rock paper is getting, I feel like generative benchmarking was a bigger aha moment for me just because I actually never came across a concept before. And I think like actually more people will apply it to their own personal situations. Whereas context fraud is just generally like, yeah, don't trust the models that much, but there's not much you can do about it except do better context engineering. Yeah. Yes. Yes. Whereas generally benchmarking, you're like, yeah, generate your evals. And, you know, part of that is going, you're going to need the data sets and it'll sort of follow you into the place of all the better best practices that everyone advocates for. So yeah, it's a very nice piece of work. I think having worked in applied machine learning developer tools now for 10 years, like the returns to a very high quality, small labeled data set are so high. Everybody thinks you have to have like a million examples or whatever. No, actually, just like a couple hundred, even like high quality examples is extremely beneficial. And customers all the time, I say, hey, what you should do is say to your team Thursday night, we're all going to be in the conference room. We're ordering pizza and we're just gonna have a data labeling party for a few hours. And that's all it takes to bootstrap this. Google does this, OpenAI does this, Anthropic does this. You are not above doing this. Great. You know, right? Yeah, exactly. Yeah. Yeah. Look at your data. It's, again, it's what matters. Maybe you should classify that as label your data, not look at. Because look at seems a bit too... I agree with that. Yeah. There's some more... View only. Right. I agree with that. Yeah. Yeah. Read and write. Read and write. While you mentioned it, I should correct myself, it wasn't standard cognition, it was standard cyborg. My favorite fact about you is you're also a cyborg with your leg. True. If you see Jeff in person, you should ask him about it. Or maybe not. Maybe don't. I don't know. I don't care. Don't care. Standard Cyborg, Mighty Hive, and Know It. What were those lessons there that you're applying to Chroma? Yeah, more than I can count. I mean, it's a bit of a cliche. It's very hard to be self-reflective and honest with yourself about a lot of this stuff. But I think viewing your life as being very short and kind of a vapor in the wind, and therefore like only doing the work that you absolutely love doing and only doing work that you doing that work with people that you love spending time with and serving customers that you love serving is a very useful like north star um and you know it may not be the north star to like print a ton of money in some sense there may be faster ways to scam people into making five million dollars or whatever um so but if i reflect on and i'm happy to go over detail obviously, but if I reflect on like my prior experiences, like I was always making trade-offs. I was making trade-offs with like the people that I was working with, or I was making trade-offs with the customer that I was serving. I was making trade-offs with like the technology and like how proud I was of it. And maybe it's sort of like an age thing. I don't know. But like, you know, the older that I get, I just more and more want to do the best work that I can. And I want that work to not just be great work, but I also want it to be seen by the most number of people because ultimately that is what impact looks like. You know, impact is not inventing something great and then nobody using it. Like impact is inventing something great as many people using it as possible is any of that uh you know and we can skip this question if it's sensitive but like is any of that guided by religion by christianity uh i and i only ask this because i think you're one of a growing number of openly outwardly positively religious people in the valley and i think that it's kind of what i want to explore you know i'm not i'm not like that religious myself but i just kind of like how does that inform how you view your impact your, you know, your choices that there was a little bit of, of that in what you just said, but I wanted to sort of tease that out more. I think increasingly modern society is nihilist. Nothing matters. It's a absurdist, right? Everything's a farce. Everything is power. Everything's a comedy. Everything's a comedy. Yeah. Yeah, exactly. And so like, it's very rare and i'm not saying that i always am the living exemplar of this but like it's very rare to meet people that have genuine conviction about what flourishing for humanity looks like and that's very rare to meet people that are like actually willing to sacrifice a lot to like make that happen and to start things that like they may not actually see complete in their lifetimes like it used to be commonplace that people would start projects that would take centuries to complete. And now that's less and less the case. The image that comes to mind is the Sagrada Familia in Barcelona, which I think was started like 300 years ago and is completing next year. Yeah. I've seen it in construction, but I can't wait to see it completed as well. Yeah. I'm sure the places are booked out already. Yeah. And so, you know, it's common. There are actually, you know, a lot of like religions in Silicon Valley. I think AGI is also a religion. It has a problem of evil. we don't have enough intelligence it has a solution a deus ex machina it has the second coming of christ that agi the singularity is going to come it's going to save humanity because we will now have infinite and free intelligence therefore all of our problems will be solved and uh you know we will live in sort of like the palm of grace for all eternity it's going to solve death right and so like i think that like religion still exists in silicon valley i think that it's like you know there's a conservation of religion you kind of can't get rid of it yeah um but the god gene yeah i mean you know people have different terms for this but uh like i think that i'm always skeptical of religions that haven't been around for more than five years put it that way yeah there's a survivorship bias anyway i i do think like you're one of the more prominent ones that i that i know of and uh i think you you guys are a force for good and i like to encourage more of that i don't know that you know people should believe in something bigger than themselves and build for plant trees under which they will not sit. Am I mangling the quote? Is that actually a biblical quote? I don't think it's a biblical quote, but I like that quote. That's a good one. So yeah, plus one. I think societies really collapse when you just live for yourself. That really is true. Agreed. Who does your design? Because all of your swag is great. Your office looks great. The website looks great. The docs look great. How much of that is your input? how much of that do you have somebody who just gets it and how important is that to like making the brand part of the culture i think all value you know again going back to the conway's law thing like you ship your work chart you ship what you care about as a founder in some sense and like i do care deeply about this aspect of what we do and so i think it does it does it does come from me in some sense um i can't take at all credit for everything we've done we've had the opportunity to work with some like really talented designers and we're hiring as well for that so if people you know are listening to this and want to apply please do i think i mean it's cliche to uh decrib um patrick collison quotes but he does seem to be one of the like most sort of public embodiers of this idea that like how you do and i'm not sure this is a dark quote from him to be clear this is more of just a broad aphorism but like how you do one thing is how you do everything and just ensuring that there's a consistent experience of what we're doing, where, like you said, if you come to our office, like it feels intentional and thoughtful. If you go to our website, it feels intentional and thoughtful. If you use our API, it feels intentional and thoughtful. If you go through an interview process, it feels intentional and purposeful. I think that's so easy to lose. It's just so easy to like lose that. And in some ways, the only way that you keep that is by insisting on that that standard remain. And I think that that is one of the main things that I can do really for the company as a leader. It's sort of cringe to say that you do kind of have to be the curator of taste. It's not that I have to stamp everything that goes out the door before it does. but at a minimum companies, you know, maybe it's not even like downhill and quality. It's not sort of legible that any one thing is bad or worse, but it's more like people just have their own expressions of what good looks like. And like, you know, they turn that up to 11 and then like the brand becomes incoherent. Like, what does this thing mean? And like, what do they stand for? Again, there's no longer a single voice. Yeah. I don't, again, I'm not claiming that I'm good, perfect at this or good at this, but we certainly wake up every day and we try. You have a lot of, it's very powerful, the skill you have to convey straightforward principles and values and thoughtfulness, I think, in everything that you do. You know I've been impressed with your work for a while. Thank you. Anything we're missing? You're hiring designers. Any other roles that you have open that you want people to apply for? If you're a great product designer that wants to work on developer tools. I think we have one of the most kind of unique opportunities at Crema. If you are interested in extending the kind of research that we do, that's also an interesting opportunity. We're always also hiring like very talented engineers that want to work with other people that are very passionate about kind of low-level distributed systems and in some ways solving all the hard problems so that application developers don't have to. When you say that, can you double-click on low-level distributed systems? People always say this and then like, okay, Rust, like Linux kernel? What are we talking here? Yeah, I mean, maybe a useful encapsulation of this is if you care deeply about things like Rust or deterministic simulation testing or... Raft, Paxos. TLA Plus, Consensus. TLA Plus, really? Wow. I'm saying these are like proxies. You would like the work that we do here. I just really want to tease out the hiring message but also i um part of my goal is also to try identify who are what is the type of engineer that people that startups are really trying to hire and they cannot get because the better we can identify this thing i can you know maybe create like some kind of branding around it create an event and like get these like there's a there's a supply side and a demand side and they can't find each other yeah that's why i put ai engineer together was that that was part of it But then this distributed systems person, which like I have heard from you and like a hundred other startups, what is the skill set? What are they called? What do they do? And part of that is like, part of that is cloud engineering, because a lot of times you're just dealing with AWS. Sure. A lot of that, a lot of times you're just dealing with, I don't know, debugging network calls and consistency things if you're doing replication or whatever. Where do they go? What do they do? Yeah. Yeah. Like, but they don't use TLA plus at work, you know? Probably not. Yeah. I mean, last year I started the SF Systems group. Yes, the reading group. Yeah, there's presentations. And the point of that was like, let's create a meeting place. We care about this topic because there wasn't really a place in the Bay Area for people to do that. Yeah. So that continues to go now and continues to run, which is great. I mean, to be clear, we have a lot of people on the team who are extremely good at this. And so it's not that we have zero. It's that we have six or seven. And you won 20. But yeah, it's not that we want more, but we are in some ways, like, I feel like our product roadmap is very obvious and we know exactly what we need to build for the next even like 18 months. But quality is always a limiting function. Quality and focus are always limiting functions. And like, well, yes, I will always make my land acknowledgement to Mythical Man Month. Eventually, like. It's good, more people. You do, you kind of do need more people. Because you need more focus. like you need more people to care deeply about the work that they do and the ai is certainly an accelerant and it's helpful and it's a reason that our team is still very small today relative to many of our competitors because like i think we've really embraced like those tools your cursor shop cloud code windsurf people use whatever they want okay yeah so i think all those tools get some usage internally so far uh we've still not found that really any ai coding tools are particularly good at rust though um i think i'm not sure why that is other than the obvious there's just like up that many examples of great rust on the internet. And so, um, you know, yeah. You would think that, you know, rust errors would be, help you debug itself. Right. You would think. Apparently not. Okay. I have zero experience in that front. Yeah. Uh, I've, I've contributed three things to the rest SDK of Temporal and that was my total experience with rust, but I think it's definitely on the rise. It's, it's zig, it's Rust. And I don't know if there's a third. Cool languages. I think ghost accounts. Golang, yeah. Yeah, ghost accounts. If you're in that bucket, reach out to Jeff. But otherwise, I think we're good. Thanks for coming on. Thanks for having me, guys. Good to see you. Thank you.

Share on XShare on LinkedIn

Related Episodes

Comments
?

No comments yet

Be the first to comment

AI Curator

Your AI news assistant

Ask me anything about AI

I can help you understand AI news, trends, and technologies