Latest / Agentic Conversations (formally mlops.community) / Context Engineering, Context Rot, & Agentic Search with the CEO of Chroma, Jeff Huber
Transcript
- 0:00And I think also people like don't want to believe that
- 0:01intelligence, AI, intelligence, artificial intelligence is like
- 0:06the most insidious distracting information is the information
- 0:08that looks relevant, but it's not for some subtle reason.
- 0:11This is why sub agents, I think are like a powerful idea is like
- 0:14literally it's because context rocked, I think implies the
- 0:17existence of like context window encapsulation.
- 0:20And that is, by the way, maximizing recall, maximizing
- 0:22precision. Maybe like the largest, you
- 0:23know, installed base of in Chroma of Chroma in 10 years is
- 0:26going to be, you know, inside of like 5 billion robots.
- 0:37What's context rot? Are we talking now?
- 0:40Yeah. OK.
- 0:41I know we're going to be like, hey, everybody, like, you know.
- 0:44I I don't get that quiet on it. You guys put out that blog and
- 0:48it caught fire. Yeah, yeah.
- 0:51I think we're really passionate about helping developers build
- 0:55useful stuff with AI and there's a lot of misinformation flying
- 1:00around. I think that AI is really hypey.
- 1:03That's both because it has a lot of promise, but also that ends
- 1:06up meaning there's a lot of also like snake oil and in particular
- 1:09like understanding like what's actually working for people and
- 1:13what's not actually working for people at times.
- 1:15There's asymmetry in that information.
- 1:19So we were hearing from a lot of developers that like, you know,
- 1:22these sort of million plus token context windows, whilst, you
- 1:27know, kind of advertised as being perfect because look, they
- 1:30they're very, they're very good on the you go on the haystack
- 1:31benchmark. They're clearly very good.
- 1:34It seemed like most developers actually, their intuition was
- 1:37like, yeah, I don't trust Claude past 40,000 tokens or open AI or
- 1:41Gemini or any of these models, right.
- 1:43And he doesn't, you don't need to pick on anybody here.
- 1:45And like that's interesting. That seems really important.
- 1:49We should help builders understand that.
- 1:52And so we sort of launched this technical report, the multi
- 1:55month investigation. We tested I think 17 plus models
- 1:59across a suite of a suite of benchmarks and tasks and tests
- 2:02to see like when do models. Stop.
- 2:06Working the way that you expect and you know, model behaviour is
- 2:10in is not invariant to the length of the context window.
- 2:12When you use more context, both its ability to pay attention
- 2:16goes down and its ability to reason it goes down.
- 2:19And you know, obviously needle on a haystack is like the
- 2:22easiest task. You have to pay attention to a
- 2:24needle and you have to, if you ever look at like the needle on
- 2:27haystack benchmarks, like it's basically all lexical matching.
- 2:30There's 18 words in common between the search query and the
- 2:33needle. And so it's like a very easy
- 2:35task. 0 reasoning power required.
- 2:38But of course, most like real world stuff like, oh, you have
- 2:40to like connect these 18 things together and then you need to
- 2:43like also reason about all that. And so that's what we wanted to
- 2:46figure out. And so, yeah, I, I think that
- 2:48that the technical report, I think it's like now 140,000
- 2:52views on YouTube or something like that.
- 2:53And you know, you go to any event and people have heard
- 2:56about it. And I think it also was popular
- 2:58because it's just sort of like it.
- 2:59It ratified things that people were already feeling.
- 3:02That's what I was gonna say. It was like, we all knew that
- 3:05was happening, but we didn't have any data to point to it.
- 3:08Yeah. And so then when you came out
- 3:10with that, it's like, yeah, exactly.
- 3:13It's also funny that needle in the haystack is the only thing
- 3:17we had. It feels like we shouldn't only
- 3:19have that. And props to Greg for creating
- 3:21that because I love the needle in the haystack.
- 3:24But at the end of the day, there should be 20 of these to really
- 3:28stress test the context window and figure out, yeah, what is
- 3:32going on and how we can take advantage of it to the Max.
- 3:36Yes, unclear to me. Like maybe the labs are.
- 3:38I think the labs probably already knew this, really had an
- 3:40intuition about it. Do they have their own internal
- 3:42benchmarks? They're training again so that
- 3:45they know about? You know, I think the reality is
- 3:49that like when you're marketing something, you invariably have
- 3:51to pick the things where you do the best and you kind of ignore
- 3:53the things where you don't do the best.
- 3:54And of course, if there's something that you don't do well
- 3:56on that nobody else measures themself on either publicly,
- 4:00then you're definitely not going to talk about that.
- 4:02Why would you? And so like, I think also just
- 4:05like the how viciously competitive, like the sort of
- 4:08state-of-the-art large language model world is today, like that
- 4:12creates a negative incentive to being as transparent as possible
- 4:18about the models strengths and weaknesses.
- 4:20And I think also people like don't want to believe that
- 4:22intelligence, AI, intelligence, artificial intelligence is
- 4:26spiky. You know, we want to believe
- 4:27that it's AGI. We want to believe that
- 4:29artificial superintelligence is coming, that these things would
- 4:31be better than humans in all ways.
- 4:33And like, while that may happen someday, I'm not sure there's
- 4:35really strong evidence today to prove that that's the case or
- 4:38not the case. Again, it may happen, but like
- 4:39today, we don't know. But I think the best way to
- 4:42think about these models is that they are very spiky and what
- 4:45they are good at and what they're not good at.
- 4:46And of course, this is like classic computers as well.
- 4:49You know, classic computers are incredibly good at arithmetic,
- 4:52much better than humans that arithmetic.
- 4:54And of course they're, you know, way worse out of the things.
- 4:56And so that that that to me is like the most intellectually
- 4:59honest way to approach models and their strengths and we're
- 5:03sort of and the capabilities is to be sort of honestly trying to
- 5:06pursue, you know, the map of their strengths and.
- 5:10Weaknesses. I also want to talk about search
- 5:12and just breakdown search because it has been something
- 5:17that I, I know you think about a bunch and we can kind of
- 5:20contextualize how we had keyword search or we have, we have all
- 5:25of these, but keyword search. Then we go semantic search and
- 5:28then we start doing hybrid search.
- 5:29And then we now are like thinking about search within
- 5:33agents. And all of that feels like
- 5:39problems that you need to have a strong grasp on if you're
- 5:43building with AI. Yeah, maybe like a quick sort of
- 5:48addendum to that. Like there's this trend that's
- 5:50been thrown around now for a few years, like vector database.
- 5:53And we've always thought that that's like a dumb term.
- 5:55These are just like VCs trying to like meme a category of
- 5:58enterprise software as they do, right?
- 6:01But like, that's not actually a the problem to be solved.
- 6:04And that's actually also not what developers like really
- 6:06actually like want to buy as a result, right.
- 6:08These sort of things are very I was correlated problem to be
- 6:11solved. People want to buy like they
- 6:13want to solve the problem of information retrieval broadly.
- 6:16And and of course, dense vector search happens to be 1 useful
- 6:19tool in the toolbox. We'll unpack in a second why,
- 6:22but certainly not a not a, not a panacea to all of your search
- 6:27problems. And we've never claimed that it
- 6:29is either. You know, the way that I kind of
- 6:31describe what Chroma is then is that it's not a vector database.
- 6:34What we're building is modern search infrastructure for AI or
- 6:37maybe modern retrieval infrastructure for AI.
- 6:39There you go. And like the modern pieces in
- 6:41contrast, like legacy search systems where Chroma scales much
- 6:45better, is much, much, much, much easier to run.
- 6:48It's much more cost effective. And we really been able to put,
- 6:51you know, the last 10 years of distributed systems research,
- 6:55both on the theoretical side, on the applied side, like into this
- 6:58architecture to make it that much better.
- 7:00And then the four AI part I think is really interesting to
- 7:02unpack because it means many things like it means the AI
- 7:04developer. So it's no longer just a search
- 7:07engineer who is implementing these systems.
- 7:09It's everybody, every single engineer on earth.
- 7:11And frankly, we're even seeing like semi technical slash
- 7:14non-technical users also starting to like sort of, you
- 7:16know, wade into these waters for AI also means AI search and AI
- 7:22workloads. AI workloads are different than
- 7:24classic search workloads. Classic search workloads you
- 7:26have like 1 giant index that everybody's querying and AI
- 7:30workloads, you have mini indexes.
- 7:32Every team, every workspace, every user will have one or many
- 7:35search indexes that they want to query over.
- 7:38And so that's like a share of much different shape workload at
- 7:41kind of a technical level. And then I think the other
- 7:43observation here is that in the past, humans were the ones doing
- 7:47the querying and humans were the ones doing the last mile of
- 7:50search, which is digesting the search results.
- 7:52And so much of search for so long has been about 10 blue
- 7:55links because that's all that a human brain really can
- 7:58assimilate an absorbent process at a time.
- 8:01But now with LLMS, like they are doing a, the majority of the
- 8:04querying and they're not just doing one query.
- 8:06They could be doing 100 queries. And for every query, they're not
- 8:09just processing 10 blue links. They could be processing like
- 8:1110s or, you know, hundreds of thousands of pages of documents.
- 8:15And so like, that's a much different thing at the end of
- 8:17the day, it's. Funny also just to interject
- 8:20about how you have the shape of search so different with these
- 8:26many teams that are doing different queries on different
- 8:29corpuses of data and sometimes it overlaps, sometimes it
- 8:33doesn't. I hadn't thought about that.
- 8:35And then the next thing of like search now has transformed from
- 8:4010 blue links where we as a human interact with it in a way
- 8:44that we're looking for that headline.
- 8:46Is this relevant to me? We click into it, we kind of
- 8:49look, maybe, maybe not. No, just try to process as much
- 8:54information as you can and then give it back out and see if we
- 8:58can get that like squeeze the juice out of this grapefruit as
- 9:02much as possible. Yeah, exactly.
- 9:04And I think like the way to reason about this, like pipeline
- 9:07then of like, how do you bring information to the model or how
- 9:09do you give the model a tool that it can use to go get
- 9:11information? I think like a two stage process
- 9:13is a good way to think about it. And the first stage is you want
- 9:16to maximize recall. You want to get all possible
- 9:19relevant information because if you miss one piece of relevant
- 9:21information, you could get it wrong, right?
- 9:23And so of course, if you're maximizing recall, you're not
- 9:26going to be maximizing precision sort of by by definition, right?
- 9:29So first, like first stage is maximize recall.
- 9:31We'll unpack that in a second. And the second stage is
- 9:33maximizing precision because also context rot, you know,
- 9:36context windows are not perfect. They're very sensitive to
- 9:39distractors as well. And so you want to like then
- 9:42basically a massive pool of relevant information maximizing
- 9:45recall and then call that pool down to only the most relevant
- 9:48bits before you had the model do a kind of a final like reasoning
- 9:51pass over it. And so this goes to stage
- 9:53pipeline, I think is a helpful way to like think about the
- 9:55goals. Because do you see still that as
- 9:58you mentioned, it's very prone to distraction?
- 10:03Like I've noticed that sometimes you give it more information and
- 10:07then that just fucks everything up.
- 10:09Yeah, yeah. And we've seen for sure, like
- 10:11within, we've done some experiments and kind of agent
- 10:13learning and they're sort of intuitively makes sense.
- 10:15Like if you give agents access to prior similar situations
- 10:19where it did a thing and it was successful, kind of give it a
- 10:22few examples of that to dynamically if you shot
- 10:24prompting when it comes to a similar situation again, Oh,
- 10:27this would be really, this would be helpful.
- 10:29I, I, the human would find that helpful probably.
- 10:32And what we find is the models just tend to sort of like slide
- 10:36straight into that local minima and they're like, Oh my gosh,
- 10:38thank you, you already gave me the answer.
- 10:40I don't think about this anymore.
- 10:42And like, the most insidious, distracting information is the
- 10:45information that looks relevant, but it's not for some subtle
- 10:47reason. And so yeah, this is definitely
- 10:50a hard. Problem wow OK and that just a
- 10:53bit of a tangent goes into this whole thing on memory of task
- 10:58completion and how you can help the agent complete task that
- 11:03it's already done before or that it has kind of done before.
- 11:06And so you're like, hey, you've, you've done this before,
- 11:08remember how you did it? But if it is a slightly
- 11:11different and it looks the same, then you send the agent off and
- 11:16it doesn't do it. And you're like, why?
- 11:18You were so close? You had everything you needed.
- 11:21Yeah. Yeah, it's definitely not a
- 11:22solved problem. I think that, you know, kind of
- 11:25the the, the data pipelines of retrieval are a part of the
- 11:28solution of what people want to call memory, which I think is
- 11:30like context engineering in some sense, right?
- 11:32There's sort of a right path. How do you glean insights from
- 11:36prior context and how do you store those?
- 11:38And then there's like a read path, query path.
- 11:40How do you use those prior insights in the next generation
- 11:43by the continual, the same trace or for historical traces?
- 11:47But it's yeah, it's still then solve a problem.
- 11:49I think the data piece is certainly an important part of
- 11:51it, but not also again, the panacea.
- 11:52Like there probably needs to be some like learned representation
- 11:55to really be the level of expressive that we want these
- 11:58things to be able to be. And I think the goal really is
- 12:01like to be able to communicate tacit knowledge to models and
- 12:03models like themselves and lean tacit tacit knowledge as they're
- 12:06doing things and kind of like build up a library of skills.
- 12:09And I think the library of skills again can both exist in
- 12:11documents loaded into a search index, but also probably need to
- 12:15be some way encoded into like the weights of something so.
- 12:18All right, so I got you off track with precision and recall.
- 12:21Yeah. And you're talking about how
- 12:23basically you want to maximize both of these.
- 12:25First it's recall, then it's precision, and then.
- 12:28Yeah. So maximizing recall, I think
- 12:30it's worth unpacking that because you asked a question
- 12:32about, you know, dense vector search, text search, lexical
- 12:35search, hybrid. What is all this?
- 12:37So many terms that's true. Text search this is.
- 12:40So much misinformation on the Internet about this.
- 12:42And you know, I'll, I'll make the point, you know, unless you
- 12:48have data, it's just your just an opinion, you know, and
- 12:51there's just so many opinions flying around and there's like,
- 12:53it's just so memetic too, you know, like, Oh well, like so and
- 12:55so does this, therefore I should do that.
- 12:57And you're like, have you even thought for a single moment
- 13:00about either why they do that? Or their right, their scale.
- 13:04I don't know if you remember back in the day, we used to
- 13:06always say in the community, just like when people would come
- 13:10in and be like, I'm going to build this gigantic ML OPS
- 13:14platform. I need these tools and this
- 13:17because, and then we're going to throw it all on Kubernetes And
- 13:19it goes to the meme of like, I have 12 concurrent users.
- 13:23I guess I'm ready for Kubernetes.
- 13:26And then we would be sharing the same article, which is you are
- 13:32not Google. It's like that classic blog of
- 13:35like, don't trick yourself into thinking that you need something
- 13:39that Google needs because Google scale is a whole different
- 13:42level. Their company, their business is
- 13:44a whole different level. And so back to this point of
- 13:46like, you need to really like kind of be discerning on what
- 13:50you see and why they're doing it that way just because they do
- 13:53it. Take inspiration, but don't
- 13:55think that it's the Bible. Exactly.
- 13:57And so unpacking this like goal is first stage or first step of
- 14:01maximizing recall. Like how did how to think about
- 14:03that? Well, you should think about it.
- 14:05First of all, you know, you shouldn't just copy and paste
- 14:07what somebody else has done. You shouldn't spend the 5
- 14:09minutes to think about it. And you know, for some
- 14:11applications going to be, you know, which information, which
- 14:13files are currently open. For other applications, it's
- 14:17going to be which files or information were recently
- 14:18touched or recently created, right?
- 14:20Recently can be important for other, other situations.
- 14:24You know, it could be semantic similarity, it could be texts
- 14:27sort of matching, lexical matching.
- 14:30And I think a good way to reason about kind of the strengths and
- 14:32weaknesses of like dense and dense and sparse, dense and
- 14:35lexical search is dense is useful when you don't know the
- 14:42language of the corpus. So maybe I'll say that the other
- 14:47way, full text search is very good if you know the words to
- 14:49search for. And actually, in most enterprise
- 14:51search workloads, you'll see lexical full text search as
- 14:55being the primarily useful tool, because I'm looking for a
- 14:58document that I made in the past I kind of already know.
- 15:01I remember where it is, I can't. Remember where it is, but I kind
- 15:03of know what I named it, you know, I know what words are in
- 15:06it. And like it's essentially like
- 15:07not that hard to find document using lexical search.
- 15:12Semantic search becomes really helpful when you need that
- 15:13semantic expansion. You need that term semantic
- 15:17matching. I don't remember even what the
- 15:19words were, but I need to go and find it.
- 15:21Yeah, it's around this idea. Exactly, Exactly.
- 15:24And so these tools are again, not, I think most applications,
- 15:29it's not an either or. They're complementary.
- 15:31Now it might be 9010 or 1090, depending on the use case,
- 15:34right? Like which of those are the most
- 15:35helpful? But I think it's like almost
- 15:36like never an either or. And of course that's what people
- 15:38call like hybrid search, which I think it's like a dumb phrase
- 15:40because like nobody knows what it means and it means 10
- 15:43different things. And so we should just like not
- 15:45call it that, you know, it should just be, Oh yeah, I'm
- 15:48using dense vector search and lexical search.
- 15:49Just say that. Don't call it hyper.
- 15:51So it's a mouthful though. It is a mouthful, but at least
- 15:54it's at least people don't be talking about.
- 15:55Yeah, yeah. So I think that going back to
- 15:58like the the dense and sparse and electrical search.
- 16:00I think also there's this recent, I will this recent paper
- 16:04from Google on like the limits of single dense embeddings.
- 16:08Great, mathematically provable. I think every kind of already
- 16:11knew it. But again, it's this like good
- 16:15it put, you know, math around which we already kind of like
- 16:18knew and proved it, which is great.
- 16:20You know, dense embeddings have their limit.
- 16:21And of course, the entire Internet, there's like this
- 16:23graph that shows like BM25 search has this like perfect
- 16:27flat line and then like all these dense vectors approaches
- 16:31like failing and like much, much lower kind of quality.
- 16:36And again, that's fine, that's not wrong.
- 16:39But if you go and look at if you go and look at the actual like
- 16:41data for that they used for that experiment and you look at the
- 16:45queries, they are all lexical searches.
- 16:49And so of course BM 25 is going to freaking crush it at that
- 16:53because like BM25 is, you know, full text search terms term
- 16:57frequency based. And so like, of course, you're
- 16:59going to do very good at that task.
- 17:01And of course, again, the the nuances is important and
- 17:04helpful, but like what the mean that went to the Internet was
- 17:06that like, Oh my gosh, all the 10 Spectre stuff is BS.
- 17:10It's useless. You just can be in 25.
- 17:12And like maybe that's true for your use case, but like maybe
- 17:14it's not. And again, I'm just really now
- 17:17ranting about what people aren't thinking enough, so I'll stop
- 17:20there. Yeah, I I want to bring in one
- 17:23other piece which I think is important with search, which got
- 17:26brought up a few weeks ago on the podcast with my buddy Nishi.
- 17:29And he was saying how for him, a lot of his search woes and
- 17:34problems come in when someone searches for romantic dinner.
- 17:40And it's like semantic search kind of can do that.
- 17:46The idea is there, but it's not quite there.
- 17:49And he was having the hardest time because what was happening
- 17:53is you would come in and and be like, all right, well, romantic
- 17:57for you means what you need a bit of personalization.
- 18:01So if you're talking to the LLM and you're saying I want to plan
- 18:04me a romantic dinner with my wife, all right, but romantic is
- 18:08for you is one thing. For me it's another thing.
- 18:11And and then he was saying you can just really have problems on
- 18:18how we have UX, the new type of experience when you're trying to
- 18:24bring like old stuff into the new UX that we have where people
- 18:28can ask anything and say anything.
- 18:31And I wonder if you've seen that where like, OK, these, these two
- 18:35types of searches are, are not breaking down completely, but
- 18:40you don't have them there. And another example that he
- 18:43gave, which I'll think about too, is how where semantic
- 18:47search didn't really work is if you are a vegetarian and you say
- 18:52I want vegetarian pizza, it's not normally going to give you
- 18:57cheese pizza as an option because that's not tagged as
- 19:00vegetarian, you know, so and even in like in vector space,
- 19:05like vegetarian pizza. Yeah, yeah, yeah.
- 19:08Cheese pizza is way over here. Totally totally totally.
- 19:11Or even more complicated, if they say, plan me a romantic
- 19:13dinner tonight, get to know like which.
- 19:15This is a vegetarian. Open which ones are close to you
- 19:18and you're yeah and you're vegetarian and like, you know it
- 19:20becomes a pretty complicated query.
- 19:21I think it is something that like an LLM can internally
- 19:25process like fairly well like it doesn't have to be all rigid
- 19:29explicit system. But I think you know the rating
- 19:33dinner piece like I think it's possible to get that out of
- 19:35vector space because kind of how I would approach that like a
- 19:39little Sam Yelp right and I want to support like romantic dinner.
- 19:42I'm going to take all the reviews and then I'm going to
- 19:46have an L have an LLM generate maybe like 20 to 30 like tags
- 19:51like for every review. And then those 23 tags can
- 19:55become like clusters. So I understand now like which
- 19:59clusters of ideas are like commonly associated with this
- 20:01establishment. And then I can associate like
- 20:05either the centroid of those clusters or maybe all the
- 20:07information, those clusters with that business.
- 20:09And then now when I search romantic dinner and if somebody
- 20:12else said like whatever a synonym to romantic is cozy and.
- 20:16Intimate evening meal, you know, like actually you might be able
- 20:21to get that from the reviews. So I don't know that like that
- 20:24is impossible to get out of like vector space.
- 20:25But obviously that level of forethought that you want to
- 20:28support that kind of a query and then the level of then work
- 20:31required to kind of make that query possible again requires
- 20:36you to think it's not just all for free.
- 20:38So yeah, you can't just slap semantic search on it and be
- 20:41like, we're good now, Yeah, type whatever you want.
- 20:43I mean you. Can, but like, your competitor
- 20:45is doing more work and therefore your competitor's product is
- 20:47better. Yeah, and that means they're
- 20:49gonna win. Yeah, the experience is gonna be
- 20:50much better. Exactly.
- 20:51Exactly. Yeah, I tend to these days when
- 20:54I look for coffee establishments because I like V60 and I like
- 20:58the, you know, the specialty coffee.
- 20:59Yeah. I don't type in Cafe because
- 21:03that can give me anything from Starbucks to Dunkin' Donuts, you
- 21:07know? Yep.
- 21:08And what I'll do is I try to search like V60 as a term and
- 21:13you have the cafes that come up and they'll they'll show.
- 21:17But this is like super easy because it's like a review has
- 21:21V60 in it, right? But sometimes I'll notice that
- 21:24the review doesn't have V60. It's just like, oh, this is a
- 21:26specialty coffee place or this is a coffee roasters.
- 21:30And so there I'm like, hey, this is interesting search issue.
- 21:34Totally. Totally.
- 21:35And that shows how you've adapted to the strengths and
- 21:38weaknesses of the system. Like, you know, I think one of
- 21:40the interesting UX challenges and opportunities now with LMS,
- 21:44because we all became very good at Googling and like, how do I
- 21:49compose this question I have into a set of terms and minus
- 21:53signs. And it was.
- 21:54Friction then. Like we all learned how to
- 21:57search, kind of, but within the limits of Google's ontology.
- 22:02And there was professional search googlers right I?
- 22:05Mean, you know, people that are way better people that are way
- 22:06worse type PDF, you know, like the whole shebang.
- 22:10And like now LLMS, it's just a sort of it's viewed as more like
- 22:14a magical box. And that's a good thing because
- 22:16users don't have to like do the mental, you know, gymnastics of
- 22:19how do I change the question that I have into this particular
- 22:24kind of domain syntax that Google was going to accept Like
- 22:27that's actually a better user experience.
- 22:30But of course, that means that users are going to ask a lot
- 22:32more questions and a lot wider variance.
- 22:35And, you know, in some ways I think that's the cool part about
- 22:39that from like a user research perspective is like, now
- 22:42applications do have a larger surface area of like, how they
- 22:45can help their users. Yeah.
- 22:46And of course, that's a blessing and a curse, right?
- 22:47The blessing is like, you can do a lot more.
- 22:49It's pretty, it's pretty cool. The curse is that like, you have
- 22:52to do a lot more. And like you know, again, it's
- 22:53not all for free. Yeah.
- 22:54And you're, you're now supporting all these different
- 22:57use cases and all these different ways that users are
- 22:59doing it. And if one of them is kind of a
- 23:03shitty experience, you're struggling.
- 23:06I as a user, am not going to look at this new AI feature that
- 23:10you created as something that is worth my time.
- 23:13And actually, it kind of brings me back to context rot in a way,
- 23:19because if now we're talking to these AI features so much and
- 23:23we're continuously going back and forth with them, you put
- 23:27yourself in the position to have that context rot, right?
- 23:30But you have to almost be like a janitor of the context and
- 23:35really get good at cleaning it. And one thing that I saw last
- 23:40night from a guy at the event, he was like, I'm trying to
- 23:43create like a Jupiter notebook style thing for the context
- 23:47window. And I want to be able to like
- 23:49turn off different pieces of my context because it's not needed,
- 23:53because maybe there's sometimes that I'll just ask something and
- 23:56then it's there in the context and it's always referencing.
- 24:00And so now it, it made me think like, oh man, like context kind
- 24:06of etiquette or not etiquette, but context like cleanliness is
- 24:10a thing in a way. Yeah, 100%.
- 24:12You both see it in like multi turn kind of user model
- 24:16conversations, ChatGPT, etcetera.
- 24:18You also see it inside of like a gentic loops, where like there's
- 24:22an LM running in a loop and it's, you know, getting some
- 24:25context generates some output and then it needs to generate,
- 24:28then it needs to receive that output into itself and then
- 24:32generate, you know, more information.
- 24:34And I think your intuition is exactly right, which is like
- 24:38this eventually breaks down. You know, you've seen stuff like
- 24:40inside of Cloud Code, there's the slash compact command, which
- 24:43does like a summarization and tries to like kind of clean it
- 24:46up. I think I saw something from the
- 24:48Cloud Code team on Twitter recently where like they don't
- 24:51use compact, they actually just they just dump it.
- 24:54They just clear the entirely. They clear it.
- 24:56Yeah, yeah, yeah. And actually we've done some
- 24:58research that has like shown that that sort of verified that
- 25:01result that like actually naive summarization of the context
- 25:05history is like no better than just starting from scratch.
- 25:09Yeah. And of course we start from
- 25:10scratch is also sort of, you know, cheaper and faster because
- 25:12you're like flushing all that that baggage.
- 25:14So this sort of begs the question though, like how should
- 25:17we think about prior state being available to sort of the current
- 25:22iteration forgetting whether multi turn user conversation or
- 25:26in a gentic loop. And I think one way to think
- 25:29about this is like disturbing compaction context compaction or
- 25:33context under distillation or you know, some, some word there.
- 25:36And it is, it is not a solved problem.
- 25:40I don't think it would be a solved problem, but there's a
- 25:43few interesting ideas. You know, 1 is that you use a
- 25:45prompt of some kind to help the model isolate the relevant
- 25:49actually like relevant to high signal pieces and then pass
- 25:52those down to the next step. Because there's a lot of like
- 25:54craft, especially like coding agents, you just see these like,
- 25:56you know, huge dumps of logs and these huge dumps of test results
- 25:59and like they can't pay attention to all that.
- 26:01And so like giving you a model the ability to like kind of snip
- 26:04out the pieces that are actually important for the next turn of
- 26:07the model. A detailed prompt, I think is a,
- 26:09is a is more helpful than a, a generic prompt.
- 26:11And then the other thing that I'll say is that like another
- 26:14like interesting approach to this I've seen some people take
- 26:16is that they give the the next sort of turn of the loop,
- 26:20whether it be the next model or the agent, the ability to search
- 26:25in the history of that actual individual conversation or trace
- 26:28or whatever. And you know, these things are
- 26:31not also mutually exclusive. Can you can do both, obviously.
- 26:35But yeah, it's not not easy. How are you seeing the search
- 26:37done with that in within the context or within the model
- 26:41doing that? Because that does seem like the
- 26:45obvious step to take, right? Like, hey, if we just make the
- 26:49search the big piece here, yeah, it's kind of like the theme of
- 26:53what we've been talking about this whole time, like how
- 26:55important search is and how not solved yet it is, or still like
- 26:59there's still a lot to be done in the new paradigm.
- 27:02Yeah, I see it the way that most people are doing this right now,
- 27:06the predominant strategy we'll use you call it search, but it's
- 27:10it is kind of search, but it's also maybe not search is they'll
- 27:13just use like a file and the file will have like the list of
- 27:17to do's, right? Like I want to put this feature
- 27:20I need to do like 15 things in this order and then each like
- 27:25check box gets encapsulated by one kind of agent loop agent
- 27:31trace which minimizes or helps cut down on like the the baggage
- 27:36of all the context from all the different.
- 27:38Steps. It's like the sub agent idea.
- 27:40The sub. Agent idea.
- 27:40Exactly. This is why sub agents, I think
- 27:42are like a powerful idea is like literally it's because context
- 27:45rocked I think implies the existence of like context window
- 27:49encapsulation. That's why a sub agent is like a
- 27:51good idea in many, in many cases.
- 27:52Yeah, of course there are challenges with sub agents,
- 27:54which all of a sudden sub agent has to be able to report up to
- 27:57the orchestrator agent the right compaction information as well.
- 28:00It's like. I got your next paper man.
- 28:02Like how many sub agents until you get sub agent rot?
- 28:08We've looked at this a little bit.
- 28:10We've done some experiments with a deep research agents, which
- 28:14are this shape of thing a little bit different.
- 28:17You're not a checklist that you're running down, but it is
- 28:19the orchestrator says, OK, the user asked this question.
- 28:21I wanna look in these like 85 places.
- 28:23So I'm gonna have like 85 sub agents go out and do a bunch of
- 28:25research. But obviously there's some
- 28:28agents can't bring back all the research that they find.
- 28:31They have to compact before they boil it up to the orchestrator,
- 28:34right. And I, I think, and I mean, you
- 28:39know, state-of-the-art today maybe is like the deep research
- 28:41implementations inside of Claude, you know, Penny,
- 28:44etcetera. And I don't know if you've used
- 28:46those with like topics that you know about.
- 28:48But you're usually like, this is very good.
- 28:54Exactly. Yeah, you're like kind of I
- 28:57guess, but. Yeah, I saw, I saw a great tweet
- 28:59that was like, I used deep research the other day for
- 29:02something that I know a lot about and it wasn't very good,
- 29:04so I'll just use it for everything else instead.
- 29:07Yeah. Which is like hits the point,
- 29:09hits the nail on the head, right?
- 29:11It's supposed to go away to footage but.
- 29:13You know what I think is also something that never happens is
- 29:16when you have these sub agents and they go and do their
- 29:18research and then they come back, yeah, they're never going
- 29:21to tell you I didn't find shit, it wasn't relevant.
- 29:24Like don't use me as a sub agent.
- 29:26That is not one of the out of all the possible outcomes, I can
- 29:30guarantee you that's not one of them.
- 29:32Broadly speaking, you know, the ability for models to know what
- 29:35they don't know still seems like unsolved.
- 29:38And of course, you can put into the prompt, like, if you don't
- 29:40know, please reply, I don't know.
- 29:43And then that can work. And this makes some models are
- 29:45more cautious than others. Like Claude is like much more
- 29:47cautious about like claiming to know things versus like opening
- 29:50eyes, like willing to take more leaps, for example.
- 29:53And again, that's not always, it depends on the context whether
- 29:56that's a strength or a weakness. But I think, you know, probably
- 29:59the conservativeness of Claude is a reason that developers tend
- 30:06to really like clot so. Because it doesn't blow up your
- 30:09database, doesn't just go delete shit.
- 30:12I mean I I'm sure there's examples of it leading shit so.
- 30:15So then I feel like I, I got you off track again when we were
- 30:18talking about what were we just talking about with the So you're
- 30:20spawning these sub agents and they're coming back with their
- 30:24information. It's, I've heard it put as like
- 30:27an accordion where you can look at an accordion and it goes out
- 30:31and it gets all this air and it gets all of this stuff and then
- 30:35it comes back in and you like condense it down to these like 5
- 30:38slits. Yeah, yeah.
- 30:40And that is, by the way, maximizing recall maximizing.
- 30:42Precision. I like that.
- 30:43That's a great visual of all right, we're just going to get
- 30:47everything and then we're going to figure out what's important
- 30:49exactly. So you recently put out Android
- 30:53Chroma, or what is it exactly? Elastic released Chroma Swift.
- 30:57Into beta and then imminently will chroma Android.
- 31:01Is it somebody that uses chroma on their phone or is it that now
- 31:07you have a chroma instance on the edge like give me the break
- 31:10device? I think the intuition here is
- 31:12that intelligence will be everywhere, certainly in the
- 31:17cloud or everybody is increasingly on devices that you
- 31:21own, your laptop, your phone, and inside of every device as we
- 31:27know it. In the future, maybe we'll have,
- 31:29you know, devices that were previously inanimate to become
- 31:33animated. You know, we could talk to the
- 31:34plant behind me or something. I don't know.
- 31:36Or the, the cameras. I'm sure there's a world where
- 31:39we don't have to hit autofocus and we just say, all right,
- 31:43folks, that's up. Yeah.
- 31:43That would have been great this spring.
- 31:46And then within that, right, there are trade-offs.
- 31:52There are pros and cons to doing search and retrieval locally on
- 31:57whatever device that is versus the cloud.
- 32:00And they don't have to be mutual exclusive.
- 32:02You can also do both And actually in most use cases that
- 32:05we see people doing stuff on the phone and that also having sort
- 32:08of a cloud syncing story going on.
- 32:11But of course local, it's privacy preserving.
- 32:14So you can give the user those guarantees.
- 32:18Local is also going to be, if so, facto faster because you're
- 32:24not going over the network, and then local is also going to be.
- 32:31You don't have to worry about like.
- 32:33You can be in a place where there's no reception.
- 32:36Right. So, yeah, offline connectivity
- 32:38and then also, sorry, cheaper as well.
- 32:41If you're doing the compute on the device you already own,
- 32:43you've already paid the money for that compute and you can
- 32:45just now use that compute as much as you want.
- 32:48And so, you know, those are very good reasons to do things.
- 32:51I think probably the privacy preserving reason is the biggest
- 32:53use case that I, I feel like exists there.
- 32:56It's just like really great to be able to like have users do
- 32:59things on their own device and not have to worry about like the
- 33:02data being egressed unless they explicitly want it to be.
- 33:05So yeah, but I think there's a lot of really exciting stuff
- 33:08there. I mean, like we're a little
- 33:09early still in like the arc of this, but I think also like the
- 33:12reason that Chrome is written in Rust and like, because Chrome is
- 33:15written in Rust, it can run anywhere.
- 33:18Like we also there's some kind of early early work in like
- 33:23getting Chroma to run on like robots.
- 33:26Nice. Because like they're also gonna
- 33:28need their own like level of memory and like, so, you know,
- 33:31maybe like the largest, you know, install base of in Chroma
- 33:34of Chroma in 10 years is going to be, you know, inside of like
- 33:385 billion robots. You could think about it that
- 33:40way. So, and what was it, what was
- 33:42the engineering feat that had to happen?
- 33:43Did you to make it super lightweight so that people could
- 33:48just grab it and have it on their device without any worries
- 33:53that this is going to brick my phone?
- 33:57Yeah, I mean, Rust gives you a lot of safety and guarantees,
- 33:59which is useful. We have now a single node
- 34:06version of Chroma which you can run as a server.
- 34:10We also have a fully distributed version of Chroma, which you can
- 34:14run across many nodes in a cloud environment that's also
- 34:18serverless. And then that single node
- 34:22version can also be run as a library embedded into any given
- 34:27context. So today people very frequently
- 34:30use Chroma and Python with just like Python bindings to all of
- 34:34the underlying Rust. And they'll use that inside of
- 34:37Jupiter notebooks or inside of Python scripts or demos or all
- 34:40kinds of other, you know, context.
- 34:42And it's like really useful to not have to like have a server
- 34:45if you're just doing something lighter weight.
- 34:48But of course, when you're ready to go to a server, the API is
- 34:50the same and you just change how you connect to it.
- 34:52And then when you're ready to scale to like, you know,
- 34:54petabytes of data in the cloud, you get, you just change how you
- 34:57connect to it. And so like, I think that has
- 34:59always been our goal. It's aspirational.
- 35:01It's not easy to do, but we wanted to make sure that like
- 35:06wherever you have a search or retrieval workload, like Chroma
- 35:09is there to serve you. I like that.
- 35:12And you don't have to like pick and choose, do I want this or
- 35:15that? The answer is you can have both
- 35:17and. It's the same API.
- 35:18What made you think this was necessary?
- 35:22Were you like hearing people ask you for it?
- 35:25And they were like, I'm building this app, but I need something
- 35:28super small. I need to have it on device.
- 35:31Yeah. I.
- 35:31Mean not, not everybody I guess, but the ideal version of running
- 35:34a company is you do have a vision of what you're building.
- 35:37Pulling the visionary card on me.
- 35:38I'm not going to actually, I'm going to walk you back like
- 35:40immediately, but hear me out. Shit.
- 35:43Do you have a vision of what you're building?
- 35:45It's 10 years in the future, but the reality is that in business
- 35:47you get 0 points for being right. 10 years from.
- 35:50Now, yeah, that's true. Does not matter, does not matter
- 35:52at all. What you have to do is be right
- 35:56six months from now and ultimately you really have to
- 36:01be. This is this is cliche to be
- 36:03clear, but like you have to be obsessed with like your
- 36:06customers and what they are ready for what they need and
- 36:08want. So there's no reason that we
- 36:10couldn't done Chroma on mobile a long time ago, but nobody cared
- 36:16until very recently, cause in the last few months we've
- 36:19started to see more people really want that.
- 36:23But why do you think is there apps that are being what apps
- 36:25are being built? It's, I mean, it's a lot of AI
- 36:28chat stuff. It's a lot of like media you
- 36:31have in your phone that you want to like, you know, search and
- 36:33retrieve over, you know, I can't, I can't claim predict,
- 36:38like why the exact timing of these things happen.
- 36:42You know, similarly, we're we're chatting off camera before we
- 36:44got rolling here is like, you know, accuracy we've always
- 36:48thought is incredibly important. You can only manage what you
- 36:50measure. Like, why would you not want to
- 36:52know how this thing is in the real world?
- 36:55And then nobody has really seemed to care that much.
- 36:59Initiative developers and engineers have always cared,
- 37:01obviously, but like the masses haven't.
- 37:04And so we've sort of like held off like doing much work in that
- 37:09domain, particularly kind of the most of it is like not research,
- 37:12most of it is sort of like product, right.
- 37:13We've kind of like held off for the reason that like not we
- 37:16didn't think it was important, but that like the, our, our
- 37:19customer base didn't yet believe it was important.
- 37:22There wasn't an asks from the community like hey we really
- 37:26need to get this accuracy thing solved.
- 37:28I mean, some, yeah, exactly. Sometimes people say they want a
- 37:31faster horse and they actually want as a car, you know, but
- 37:35they maybe that's true, true. But like when they say they want
- 37:38a faster horse, you know, you, you sort of can't jump all the
- 37:41way to selling them a supersonic aircraft, you know, And so like,
- 37:44I think just like being very sensitive to like the timing is,
- 37:48is kind of an underrated, underrated skill.
- 37:50And I mean, you can use the word like taste.
- 37:52I think taste or maybe another history, the Lindy version of
- 37:55the word taste is just wisdom. You know, like, and it's it's
- 37:59hard, right, because like on one hand again, you you have a
- 38:01vision of what you want to build and you can just stay very true
- 38:04to that vision and believe in it incredibly deeply.
- 38:07At the same time. You kind of need to be very I
- 38:12don't either reactive, but you need to hold that loosely,
- 38:15especially your near term plans. And it's like, you know, no, no
- 38:18plan has survived the first minute of battle.
- 38:20You know, like that's like that is absolutely the case.
- 38:23Yeah, that's such a great point because you get all these
- 38:28inputs, I imagine everyday of people that are asking for
- 38:32things and ideas that you're seeing out there.
- 38:35And then you think, wow, we're going to do it like this.
- 38:38And when you bring it to the masses, then it's like, actually
- 38:43we might need to change it how it's done like this.
- 38:45But it's through those iterations that things happen.
- 38:48This is why I tell myself that, you know, the time that I spent
- 38:52online, you know, is like a good use of my time.
- 38:55Your Twitter time taps. Taps me into like the the the
- 38:58public consciousness, if you will.
- 39:00So this is very visionary on the basically chroma running
- 39:04anywhere at any scale. What else are you thinking about
- 39:08as far as like the vision of how things are going to change?
- 39:12Is it on the precision side? Are you going to start building
- 39:16now for precision because it feels like people are interested
- 39:19in it? I think it's a very good
- 39:21intuition. We don't have kind of the
- 39:24specifics either planned out or kind of ready to share all the
- 39:27specifics ahead of what we're thinking about.
- 39:29But I'll share like a high level observation, which is the reason
- 39:32that Chroma started is I had worked in applied machine
- 39:37learning and developer tools for 10 years and building technology
- 39:43with machine learning. Now we call it AI.
- 39:45Thankfully, you've dropped calling it Gen.
- 39:46AI. I'm very happy about that.
- 39:48Oh, didn't you? I still see some shit.
- 39:50Somebody the other day was like Gen.
- 39:52AI OPS and I'm like, oh really? That's that's the term.
- 39:57Just listen. That's not a term.
- 39:59Yeah. We're just gonna say it right
- 40:01now. That's not no, sorry.
- 40:03I digress. No, no, yeah, yeah.
- 40:05The goal of Chroma, going back to that experience, and
- 40:09honestly, the pain that I felt building stuff with applied
- 40:13machine learning, a lot of it is in the computer vision domain,
- 40:16is this is really powerful. It could change the world, but
- 40:21it feels a lot more like alchemy than it does like engineering.
- 40:25And I'm sure you've seen the XKCD comic where the person's
- 40:28like, you know, oh, this is your machine learning pipeline.
- 40:31And he's the guy standing on a pile of garbage.
- 40:34And he's like, the follow up question is like, well, what if
- 40:36it doesn't work? And the guy in the garbage is
- 40:37like, oh, you just like, you know, you mix it.
- 40:40Yeah, mix it up and try it again, you know, And that's
- 40:43like, Santa's still the case, right?
- 40:45That's like, actually is still kind of the case today.
- 40:47Yeah, that's true. And change some Proms.
- 40:49We turn the temperature, we try and figure out the recall or
- 40:53whatever. Yeah, yeah, that's so true.
- 40:55And and like, I think, you know, a lot of the labs, maybe because
- 40:59of their sort of fundraising requirements, have to sort of
- 41:01market this idea that like we're, we're building God.
- 41:06Like we are literally building a Deus Ex machina.
- 41:09We're building a God will emerge from the machine and like, it
- 41:13will solve all of our problems. And like we don't have to pull
- 41:16that sort of party line because we don't care frankly about
- 41:21that. And I think it's wrong.
- 41:22And so our term has always been AI is useful and we have like
- 41:27stickers, I'll give you secure latest.
- 41:28It's like, you know, AI is useful.
- 41:30And of course it's only useful if you give it the right
- 41:33information and the right context.
- 41:35And it's only really useful if it can learn from that
- 41:40information too. And so I think that's the stuff
- 41:42that like we are really excited about and really seems to be
- 41:47where the people on the bleeding edge of agents are kind of
- 41:50running into the edge of what current capabilities is.
- 41:55We have these large state-of-the-art reasoners.
- 41:57They're powerful in many ways. They have their own weaknesses.
- 41:59Obviously we should kind of work around them.
- 42:01We have also, you know, these retrieval systems, search
- 42:04systems, they are very good what they do as well.
- 42:08But it kind of feels like the maps not complete yet because
- 42:12sort of again, by just definition, we're not getting
- 42:14the capabilities that we want. And then again, the capability
- 42:17that I want is like, you know, if if I pick up a cup one time
- 42:22and I put it back down, like I know how to do it again, I don't
- 42:25have to like, you know, think for 45 seconds for how to do
- 42:28that. And that ability to kind of like
- 42:30learn from experience is something that would be
- 42:33incredibly useful for making useful stuff because the real
- 42:35world is fractally complex and the real world has so much, so
- 42:42many edge cases. And I think for people that
- 42:43worked machine learning a long time, you know, the, the phrase
- 42:47getting mugged by reality, you know, will resonate quite
- 42:50deeply. And, and so we need a systems
- 42:53that can, can, can learn to adjust edge cases.
- 42:55Otherwise, you know, we're just kind of doing what we've done,
- 42:59what we did in computer vision and autonomy in the first era,
- 43:01or we're just like putting on like 100 band aids on top and
- 43:05around this thing to try to make it work.
- 43:07Well, that's why it became so hard to put any ML model into
- 43:12production because it's, it's exactly that like, and there's,
- 43:15if you're in the enterprise, there's just so much alignment
- 43:18that needs to happen in so many meetings that you need to have
- 43:22cleared because it is a lot more risky than software.
- 43:27It's not running the way that you think it's going to run
- 43:30every single time. And so you have to be OK with
- 43:33that for your use cases, right? You probably remember this
- 43:36phrase from I think it was maybe 2017, maybe it was 26/20/18.
- 43:41It was like inside. I think it was either the title
- 43:43of the Google Papers inside of Google Paper that was Machine
- 43:46learning is the high Interest Credit Card of Technical debt.
- 43:49I still quote that we had de Scully on here back in the day,
- 43:52and it was like legendary. It was one of the first people
- 43:56that I was interviewing. And I was like, oh, how am I on
- 43:59this call right now? Yeah.
- 44:00And it is that. And you know, what's funny is
- 44:04there's that new way of looking at it where you remember the
- 44:08diagram in that. Oh, yeah.
- 44:10Where the model was a small piece and then everything around
- 44:12it. Yes, it's the same thing.
- 44:15It's just that now the stuff, the boxes around it have
- 44:19changed. Yep.
- 44:20But it's that's where the hard part is.
- 44:23And it's a little bit easier the because now we can hit an API
- 44:26for the model, we don't have to create the model, but still it's
- 44:30the same idea. Yeah, yeah, yeah.
- 44:33What's old is new again, Yeah. Did you get a professional to
- 44:45design this? TJ is a professional.
- 44:47So no, I mean like the the office.
- 44:50Oh, the office, yes, we also had a professional do that, but not
- 44:53something on our team, obviously.