The best way to build a horrible search product? Don’t ever measure anything against what a user wants.
Search veterans Doug Turnbull (Led Search at Reddit + Shopify; Wrote Relevant Search + AI Powered Search) and John Berryman (Early Engineer on Github Copilot; Author of Relevant Search + Prompt Engineering for LLMs), join Hugo to talk about how to build Agentic Search Applications.
We Discuss:
* The evolution of information retrieval as it moves from traditional keyword search toward “agentic search“ and what this means for builders.
* John’s five-level maturity model (you can prototype today!) for AI adoption, moving from Trad Search to conversational AI to asynchronous research assistants that reason about result quality.
* The Agentic Search Builders Playbook, including why and how you should “hand-roll” your own agentic loops to maintain control;
* The importance of “revealed preferences” that LLM-judges often miss (evaluations must use real clickstream data to capture “revealed preferences” that semantic relevance alone cannot infer)
* Patterns and Anti-Patterns for Agentic Search Applications
* Learning and teaching Search in the Age of Agents
You can find the full episode on Spotify, Apple Podcasts, and YouTube.
You can also interact directly with the transcript here in NotebookLM: If you do so, let us know anything you find in the comments!
👉 Want to learn more about Building AI-Powered Software? Check out our Building AI Applications course. It’s a live cohort with hands on exercises and office hours. Here is a discount code for readers. 👈
Doug and Hugo are also doing a free lightning lesson on Feb 20 about How To Build Your First Agentic Search Application! You’ll walk away with a framework & code to build your first agentic search app. Register here to join live or get the recording after.
Links and Resources
Guests
* Arcturus Labs (John’s website)
* Software Doug (Doug’s website)
* John Berryman on LinkedIn
* Doug Turnbull on LinkedIn
Books
* Relevant Search by Doug Turnbull & John Berryman (Manning)
* AI-Powered Search by Doug Turnbull (Manning)
* Prompt Engineering for LLMs by John Berryman (O’Reilly)
Blog Posts
* Incremental AI Adoption for E-commerce by John Berryman
* Roaming RAG - RAG without the Vector Database by John Berryman
* Agents Turn Simple Keyword Search into Compelling Search Experiences by Doug Turnbull
* A Simple Agentic Loop with Just Python Functions by Doug Turnbull
* Agentic Code Generation to Optimize a Search Reranker by Doug Turnbull
* LLM Judges Aren’t the Shortcut You Think by Doug Turnbul (Hugo’s 5 minute video below)
* Malleable Software by Ink & Switch (inc. Geoffrey Lit)
* Patterns and Anti-Patterns for Building with AI by Hugo Bowne-Anderson
Other Resources
* The Rise of Agentic Search, a recent VG Podcast with Jeff Huber
* Karpathy on Cognitive Core LLMs
* Cheat at Search with Agents course by Doug Turnbull (use code: vanishinggradients for $200 off)
* Upcoming Events on Luma
* Vanishing Gradients on YouTube
* Watch the podcast video on YouTube
* Join the final cohort of our Building AI Applications course in Q1, 2026 (25% off for listeners)
Timestamps (for YouTube livestream)
00:00 How to Build Agentic Search & Retrieval Systems
02:48 Defining Search and AI
03:26 Evolution of Search Technologies08:46 Search in E-commerce and Other Domains
12:15 Combining Search and AI: RAG and LLMs
23:50 User Intent and Search Optimization
29:47 Levels of AI Integration in Search
32:25 Exploring the Complexity of Search in Various Domains
33:49 The Evolution and Impact of Agentic Search
34:07 Defining Terms: RAG and Agentic Search
34:52 The Research Loop and Tool Interaction
35:55 Formal Protocols and Structured Outputs
38:39 Building Agentic Search Experiences: Tips and Advice
41:50 The Importance of Empathy in AI and Search Development
54:30 The Role of UX in Search Applications
01:01:15 Future of Search: Malleable User Interfaces
01:02:38 Exploring Malleable Software
01:04:20 The Coordination Challenge in Software Development
01:05:23 The Impact of Claude Code & Claude Cowork
01:06:22 The Future of Knowledge Work with AI
01:12:39 Evaluating Search Algorithms with AI
01:15:15 The Role of Agents in Search Optimization
01:29:55 Teaching AI and Search Techniques
01:34:25 Final Thoughts and Farewell
👉 Want to learn more about Building AI-Powered Software? Check out our Building AI Applications course. It’s a live cohort with hands on exercises and office hours. Here is a discount code for readers. 👈
Get full access to Vanishing Gradients at hugobowne.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_01What's the best way to build a horrible search product? That's a great question. I love that. Don't ever measure anything against what a user. So in a traditional search sense, it would be like someone types into a search bar and no one's paying attention to what comes back. There are layers of not paying attention, like literally no one in the office even notices. And then there's the layer of not looking at it like it seems reasonable. But then when you actually go look at real user behavior,
user behavior violates your expectations and you're not working to fix that gap at
SPEAKER_01all.
SPEAKER_00That was Doug Turnbull, who led search at Reddit and Shopify, wrote relevant search and AI-powered search, talking about how to build a horrible search product. In this conversation with Doug and John Berryman, founder of Arcturus Labs, we do this type of inverted thinking to really figure out how to build effective and useful agentic search experiences. In this chat, we explore the evolution of information retrieval as it moves from traditional keyword search towards agentic search and what this means for builders. John outlines a five level maturity model you can prototype for
AI adoption today, which moves from traditional search to conversational AI to asynchronous research
SPEAKER_00assistants that reason about result quality. We provide a builder's playbook, including why and how you should hand roll your own agentic loops to maintain control, the importance of revealed preferences that LLM judges often miss, and a future of malleable user interfaces that adapt to specific user tasks. We also talk about how to evaluate agentic search systems and dive into the fundamental patterns for building agentic search applications. Doug not only led search at Reddit and Shopify, he also wrote the books Relevant Search and AI-Powered Search,
SPEAKER_00and coaches search experts at Apple, Meta, OpenAI, Airbnb, and more, John, in addition to running Arcturus Labs, was an early engineer on GitHub Copilot and author of prompt engineering for LLMs. These guys don't only build the systems, they wrote the books, people. There's so much wonderful stuff to take away from these guys. Check out the beginning of John's advice on how to get started on a Gentic search. The very first thing you do,
SPEAKER_02which will season all your other decisions, is build the agentic loop around something that matters to you. It's actually a very small homework project these days. This is a couple hours round trip, but just – Figure out how to make a call against a model. Text in, text out. It's a HTTP request. That's easy. Figure out how to do tool calling. That'll take you another three minutes. Then you're done with that. Figure out how to wrap a loop around that so that you can make one input and then
SPEAKER_02let it call as many tools as it needs to. And search is a great tool. That's a common one. It calls as many requests as it needs to before it's satisfied that it has the answer. And that's an agent. That's a reg agent. This was recorded as a live stream and we also live stream many of our podcasts and
SPEAKER_00free workshops and would love you to join. Check out the Vanishing Gradients Luma calendar and subscribe to ourSubstack newsletter and YouTube channel. All the links are in the show notes. If you enjoy the show, the best way to support it is to share this episode with a friend or colleague who you think would get something out of it also. I'm Hugo Bowne-Anderson and welcome to Vanishing Gradients.
SPEAKER_00How are you guys?
SPEAKER_01Pretty good. Great. John, I have my elastic hoodie over there too. Excellent.
SPEAKER_02Yeah, we're the only search history. Yeah, we're the only two non-elastic employees I think that have one of these hoodies.
SPEAKER_01Incredible.
SPEAKER_02My GitHub hoodie is like my dress hoodie. I only wear it for formal occasions. i was very lucky when i was in paris a couple of years ago i went to the probable office and they're the people who work on psychic learn a lot and they gave me a psychic learn hoodie which i put on occasionally oh i'm really jealous very nice it's very i'm actually probably shouldn't say this too but like i i don't wash it as often as one problem as i wash other hoodies because i don't want it to wear and tear as much but enough about my hoodie and washing it's like it's like your hand
SPEAKER_01that touches like a celebrity you never you don't wash it or something
SPEAKER_00Exactly. That's exactly it. I want to get into all the nitty gritty of how to build agentic search systems. But first, I just want to like, I suppose there are some misconceptions and people tend to conflate AI and search and rag and semantics and embedding and all of these, all of these different things. So I'm wondering if we could start by you letting me know, like, what is search and what is AI? And what are the most common misconceptions about how they relate to each other?
SPEAKER_01John, do you want to take AI and I'll take search? It sounded like a good division of labor. Go for it. Yeah, sure. So search, I guess search has been around for a while. And the interesting thing since for maybe search has been around since if you think about how you used to back in my day as an elder millennial used to go to the library and it was new and cool that the card catalog had this thing called keyword search. And it wasn't just like click the title and like type the title or click the author,
SPEAKER_01type the author's name. You could actually type the keyword and like you would get a result back that was related to your subject. And this was like in the 90s. So that's how old I am on like an old like green screen TV that you might still see in a cash register somewhere. But that was kind of revolutionary at the time. And ever since then, we've had web search, of course, come around in the 90s. And for the longest time, most of the web search engines were terrible. And search, of course, Google kind of came around with PageRank.
To realize that it's not just keywords, it's very much about authority in that domain.
SPEAKER_01So Google really cares about in web search, like that signal of authority and whether or not other people are referring and linking to this is really powerful. And I think if you've just kept up with search since the 2000s and the 2010s, it's really evolved. in parallel directions one being maybe most prominently e-commerce being different than web search but and then you have all kinds of different subdomains like people do legal search patent examiners have a very specific type of
searching and so on there's like a massive domain uh split and lots of different directions job search i could go on and on but then there's also this trend that was happening i would say in the 2010s where people just started using more natural language search
SPEAKER_01So people started to treat search as if it was chat in a way. And what we thought of AI in the 2010s was question answering, like literally, could I put in a question and the right snippet from a real human created document would come back as an answer. And for the longest time, when I thought, you know, we're going to have this conversational utopian future, I always thought of it in terms of search. but i was actually wrong it's actually llms that enable that
and llms are the thing that sort of maybe in some ways evolved from some of these things like question answering because of the models and everything that are behind that yeah so now we're at this place especially since 2022 where ai has really taken over and llms have taken over the space and john do you want to maybe you want to talk about what
SPEAKER_01those are is how they fit in yeah sure so
SPEAKER_02Maybe I'll start from the conflation. We're at the point where these things start to mix together, and then I'll detangle it again and go into, like, here is how I think an AI is situated. It's still something that is distinct from search, but works well with it. So at this point, search and AI have melded together in the form of RAG, retrieval augmented generation. And kind of the idea there is you've got the user is talking to
some sort of agent.
SPEAKER_02The agent is aware of the index somehow and has access to search it. And it pulls information down for the index. It could be documents. It could be chunks. And it incorporates that information into an answer that it provides back to the user. And it could be conversational as well. You can have kind of a back and forth. But if you, you know, that's kind of like one big blob and one of my, anyone who's heard me talk very, very much has heard me kind of gripe about how everyone thinks that rag is just
SPEAKER_02like this one big black box. But it's not. So if you kind of tease it apart a little bit, and this is to directly kind of address the question I had, like you still see search and like agency or large language models as separate. The agent, you know, that was a fancy word in 2025. The agent is just a for loop around a large language model call that has access to tools. So the, you know, the large language model can... hear your question, can decide to answer directly, can look at its tools and decide to call the tools,
SPEAKER_02and there's a loop there. And if you get kind of an assistant, there's another loop that incorporates you. And you can clarify your intent. Now, nothing that I said right there about an agent and agency did I actually talk about search. Search, though, is often, very often, an important tool. So, you know, these things are combined together right, but when you start looking at it, it's still interesting different pieces that if you keep them apart and understand
SPEAKER_02them in isolation, you can tune everything. and make your life a lot easier if you're developing these systems.
SPEAKER_00Great. I've also, Doug, you mentioned a search in e-commerce and we'll get to this a bit later, but in Discord, I've just, and I'll put in the show notes, linked to John's wonderful recent post on incremental AI adoption for e-commerce, which talks through levels of how you can build out search for e-commerce. And I love the demo you've created where people can play around with a search for property listings, John, and see what all the different levels look at. I am interested... When we use the term search,
SPEAKER_00we're talking about lots of different things, right? So... When I'm searching for a specific item to buy, that's really different to doom scrolling on Reddit. And I half joke, I love Reddit so much. Actually, Doug, I'm so interested, you know, you having led search of both Reddit and Shopify, such different ends of the spectrum as to what search is. You mentioned Google, of course, and traditional SEO has sliced the space into, you know, transactional, navigational, informational searches, all which have different affordances.
SPEAKER_00Sometimes we're looking for links. Sometimes an agentic summary, which hopefully we'll get to, may do. But I'm wondering how you both think about slicing the search space and what implications that has for builders.
SPEAKER_01Yeah, there's a classic, close classic ways of separating. You could think of user stories in search. One might be, if you think about the search on your computer, like the spotlight search or yeah, the Apple Windows start menu search, that's usually what we would call a navigational search. You're literally looking up something by name. So I know a file name. I know a person's name and my contacts. I know the exact name of the thing.
SPEAKER_01And it's basically how close are you getting to that thing. Then there are types of searches which are more informational, which tend to be, I want to know about this fact, or I'm curious about this specific, I don't know, topic or something like that. And that's the kind of thing that honestly, now a lot of times, LLMs are in some ways better at, or especially an LLM with a search engine. And then there are a lot of, especially with commerce,
SPEAKER_01there is also kind of a middle ground of compare and contrast search. So I want to buy a given type of TV and I may not specify everything because I'm not fully aware of what all the options are. And if you think about how you shop for products, a good e-commerce search will not just show you what's relevant to your search, but they'll show you, we use this term result diversity in search, we show you a range of different items. There's the budget friendly TV.
There's the TV that's like really high end and like for AV nerds that really care
SPEAKER_01about it's going to be like the 8K TV or something. And like the range of possibilities to help you explore further so that you ask another question or you refine further and you say, oh, actually, I want this. I don't want that. That's a little conversational in a way. And that's the kind of area where I think LLMs can have a big impact, actually, agents, because it's especially if you're having this conversation about what you're seeing. And that's just a taste. There's there's other things like just literally browsing kind of search. Like, I just want to type in TVs and see what you have and all the
way to very exacting
SPEAKER_01kinds of search. I know I need a specific kind of toilet paper. I just want to reorder it. So, yeah. Yeah, and probably I'll do a short version of this because I think I'm going to sound a
SPEAKER_02lot like Doug. But yeah, when I'm thinking through the ways of slicing search, of course you can slice it across all the different verticals of whatever industry or whatever type of search you're doing in that respect. But everyone is going to be looking for something that runs a spectrum of very specific to very broad. And so my version of Doug's spectrum would be like, I'm looking for the answer, and it's not even a document.
SPEAKER_02It's information that's inside of a document. Next would be like, I'm looking for the item. Like, give me the document back, and I'll figure out whatever I want from within that document. Next is going to be, I don't know what the inventory actually has in it. I'm discovering things. And then the next thing would be like more like we're pushing search at someone, which is recommendations. I think I know what you want. You're not looking for anything at all. Please buy my whatever. And where all these things kind of merge together, like we're in a messy situation.
SPEAKER_02And probably a lot of our talk today is going to be about boundaries. What is search? What is LMS? What can you do with all these? The search equation by itself, well, once you are able to put a large language model into that mix, then you get really interesting behaviors out of it. Because you can take the same underlying search engine, which in Maya and Doug's experience in the past is sometimes frustrating because all you have is that keyword box and you don't really know the user's intent very clearly. So you have to make,
SPEAKER_02you know, your backend search system has to be kind of the one thing fits everything solution that deals with specific or general search. But with a large language model, it can infer from its common world knowledge, from the inventory that hopefully you prompted it about, it can infer... what you mean. Is it looking for something specific? It'll act differently than if it's looking for something general. Is it trying to find an answer? Then it's not going to just give you the thing. It'll give you like the answer out of the thing. So there's some really neat things that we can do now since we
have machines that talk.
SPEAKER_02Super cool.
SPEAKER_00And speaking to that, I'm wondering what we want the LLM to actually do. And I hadn't planned to ask this, but I'm actually going to share a tweet by Karpathy from June. which I think I've spoken with you about before, John, but it's the idea of an LLM. It's the cognitive core of an LLM. So Karpathy writes, the race for LLM, quote unquote, cognitive core, a few billion parameter model that maximally sacrifices encyclopedic knowledge for capability.
SPEAKER_00And the idea is it's wonderful at search. It's wonderful at calling tools and doing things as well, right? But it doesn't really draw on its own weight for much else. And is that something that you think would be appropriate for search systems? I think that's a really interesting idea. And I remember that tweet coming out, and I think my posture has changed in it a bit. My thoughts back then was that there is a lot of knowledge hidden in the details of
SPEAKER_02all the knowledge we know. Like the common sense that... it has gleaned common sense from the world that sometimes extends beyond words. It knows how object permanence works and pouring things out of cups, and at this point it can see, so it's like everything now. But it did infer a lot of information by that process of reading the internet five times and just reading without ever seeing how cups pour liquid out, reading how it works. So I thought it was very important to keep a lot of that.
And I think it still might be surprisingly important to keep more than you'd think.
SPEAKER_02But, like, they're amazing, right? You can have it, quote... very obscure verses from very obscure religious texts or something. And it's like, yeah, I got that. You want it in Sanskrit? I can do that too. And while that's amazing, that also lends itself towards things like hallucinations. Because if you have a model that thinks it knows everything, and then you put it up against a data set, or this is proprietary information that you've definitely never seen,
SPEAKER_02then it might try to draw from its previous conclusions. So, Karapathy has a really interesting idea. Maybe you could do something where, like, you get something that is still probably vastly more intelligent than me, but can't quote every religious text on Earth, is actually really good and resourceful at its world, using tools and and making sure to incorporate that knowledge accurately. Yeah, so I think you probably can go a long way towards what Chiroprathy's saying and
have just tiny models in your phone that get the information when they need it.
SPEAKER_01For sure. Yeah, I have three different threads of maybe interesting responses. One is just thinking my wife worked at a place called core knowledge. It has nothing to do with common core, which is a big controversial education thing in the U S but the idea of core knowledge, their philosophy was that you actually, you don't just teach children abstract skills. You have to imbue with them cultural knowledge that it's hard. You can't really separate those things and they go hand in hand.
SPEAKER_01And I wonder, it makes me wonder about whether there's like a whether there's a truth to that or not. I don't know if that's true or not. But it seems like they're just from how people operate, how human beings at least operate in the world to actually have a generalist human being that's going to plop into a job. There's actually so much adeptness to the context of whatever's happening that is extremely useful to even know when to take a step of doing something.
SPEAKER_01So maybe there's that. On the other hand, there's so many times that one thing we teach in my course is just doing query understanding with LLMs. And a lot of what we do is taking things that are, you take a query, for example, a traditional search query, blue shoes. And there's so many times where you think to do this, I need to go to like, I don't know, some very fancy model and do something. Most of the time I just need like GPT nano to tell me that out
of the string that the color blue is the color of the query and that that's an important thing.
SPEAKER_01So like dumb models are extremely useful. But then if you think about how how these things are trained, I think that also is another way to think about it because you have this like When LLMs learn about tool usage, they're at this secondary stage of supervised fine tuning where they are given lots of problems and they're told, basically, here's what happens when little Timmy, the LLM in your training data, used a tool. He got results back from the search engine and Timmy was happy
and Timmy could
SPEAKER_01answer the question. And then there's some other things that are going on like, oh, Timmy didn't get a good result back from that search engine. It had to try again. And usually little Timmy, the LLM's learning about just web search. And there are complexities there that Timmy's experience might not apply to e-commerce search, but it's a good framework. And that's separate. And it's interesting because we train that as a separate stage than like right after we give Timmy the entire corpus of the world's knowledge.
which is not at all how you would approach this from a human perspective.
SPEAKER_01If you were a human, you'd be like, hey, little Timmy, we're going to learn about books today and how you can look things up in books. And we would give that general framework, even if we were in this world of we need to imbue cultural knowledge with everything. So I do think there's a lot of value in thinking about how we... You almost like how much could you not do any of the basic knowledge learning and start with the kindergarten knowledge of here's what a book is. And it gives you information kind of thing when,
SPEAKER_01and I'm, I think mostly about search, but other kinds of tools as well that could come up.
SPEAKER_02I wonder if there's like maybe an intermediate point as well. Karpazi was talking about like really slimmed down models. We're used to using these giant world models that know everything. But wouldn't it be cool if like you could just get, you know, take a mixture of experts model and just pluck out the expert that you want or something? something like maybe when you take one of these giant models and you ablate all of the the connections until you're down to a really small model but like i'm out in the woods i'm using my cell phone and it can like it knows everything about plants
it's like oh this is cool so you could have something where you it doesn't need the
SPEAKER_02search engine it can just carry around the common knowledge of that niche space that'd be kind of neat too yeah that's true i love it and your three things doug each led to three ideas in my head and a fear of descending the fractal but i do want to want to say a ralph loop of going off into the weeds of podcasting and then people will know we're actually ai man that would be that's the infinite ralph loop for podcast project which we should endeavor to do at some point maybe
SPEAKER_00we just use 11 labs and oh I suppose actually creating like cognitive core LLMs of John, Doug and Hugo and piping them through 11 labs could be fun but I do want to say these are things people you know exercise for the reader can test out get like Gemma 3 4 billion and see what you can build with it and the reason I'm agnostic with respect to these smaller models on average the reason I mentioned Gemma is because that's what Kapathi was directly responding to
SPEAKER_00Another thing you mentioned in there, both of you hinted towards this, John, you spoke or Doug, you spoke to it explicitly is user intent. And I just, so I was back in New York last year and I asked a bunch of, you know, AIs recommend some restaurants in Chelsea and half of them assumed I meant Chelsea, London, not Chelsea, New York. And that's just one example of, you know, You know, and the inability to ask follow up questions, they're getting better at that now as well. But I do think it's somewhat unsexy.
SPEAKER_00Maybe if we called it intent engineering, it would take off. But I'm just wondering your thoughts on the supreme importance of intent understanding, how builders can think about it and why we don't talk about it more.
SPEAKER_02I think it's a huge thing. Yeah, like, so we didn't quite introduce the discipline, but Doug and I worked together. So we went down the same search path, and then he was building up big search muscles for the past five years when I was kind of went down the AI path. But back in the olden days, like, intent understanding was, was and still is kind of where it's at but it's really hard you have to be psychic you have effectively a keyword search box and then maybe you
have like facets and stuff that people can click on and that's how intent is communicated maybe if you're really really smart you can like look at previous queries and we you can
SPEAKER_02tell From, you know, 10 years ago, Google was doing this. You type in the next query and it would kind of infer something from your train of thought you're apparently in. But things are getting really interesting now because like in this, can we post the link to my blog post just to have it for later? The basic idea I was getting at in recent blog posts is you can go from really simple things legacy search e-commerce, where all you have is a text box and you can start to,
it's easy to demonstrate how an AI can start pulling out more and more intent from
SPEAKER_02that. So the first thing is just to have the model look at what we as humans would look at, just the text box and facets. And even from that, you can start to at least get one level deeper into intent than traditional search systems would do. So you have people typing in a text box. But if you are a human, you can look at those things and say, okay, they specifically, you know, they're typing it in because they just don't understand this site's search.
SPEAKER_02But they want, you know, two to three boulder rooms. They want the style as a condo. You could tell if they're looking for something very specific or very general. And already the AI is more equipped to make a good search using... using traditional search as a tool then like the traditional search by itself would be the next step rather than just saying you know did you mean this and letting the user select to you know to search on on the refined search with the the filter
selected you just let the ai take control the ai will look at it and the ai
SPEAKER_02probably will once you're comfortable you've tuned it, do a better job than a new user would themselves at just clicking facets and filters and stuff. And the other little red box, deeper into the search results there, you can start the other side of that conversation. where you can say, hey, user, I think I understood your search, but also I've just looked at everything that came out of the search. If you want a quick summary, make sure we're on the right page. And also there's other recommended future searches that you can do.
SPEAKER_02And so we're starting the conversation. The only problem at this point is the conversation is stateless. So if I was to add something else to that box, then it's starting over. Our poor AI intern, little Timmy, we've wiped his brain. That's why I like adding that outer loop. An assistant is just a for loop with a tool calling. Add another loop around the user and you have an assistant. Sorry, the inner one is the agent, outer one is assistant. In this case,
SPEAKER_02you can have a chat with people and you'll see that people treat it a lot differently than a search box. And why do they do that? Well, it's kind of obvious, right? Because conversations has been a user experience that's been around a lot longer than clicking boxes and typing in little rectangles on screens. We've been having conversations for 50,000 years. And when you chat with this thing, it will pick up the kind of hidden in-between context. It will read between lines because it has world knowledge.
It has common sense, and it can, on your behalf, do kind of research at that point. It can make more targeted queries and get to the answers that really you're talking
SPEAKER_02about once it picks up on the idea. And you can correct it as well.
SPEAKER_00I'd love for you to just tell us what, so those were four levels, zero through three, because we still zero index. What would the next level potentially be? You make a point about async research, which I really like near the end of the blog post.
SPEAKER_02Yeah, yeah. So in level three in the blog post, we're very much in the app we're getting at products for our users and it's kind of a one-off thing you tell me i'm i'm the assistant here you tell me what you're thinking about i'll do a search it was how is that okay you tell me how to correct it and it's that type thing but as we get deeper and as the users you know if you're just looking to buy socks that's probably good enough but as the user intent increases in depth, then you can have the assistant actually say,
SPEAKER_02okay, this is a lot of stuff to consider. I'm not going to just show you 10 results. I'm going to go myself through the top thousand results, try some alternate queries, and it becomes more like a research assistant. The end goal is not just to provide you, here's the products, buy them or not. It's like, here is the result of my deep research of this space.
SPEAKER_00Great. And just before you add more, Doug, I just want to summarize what we have. Level zero, traditional search, most people's current reality, trad search. Level one is beginner AI, testing the waters, taking a baby step. Keep traditional search unchanged, but add a small suggestion bar that appears after the results loads, such as, are you looking for condo, downtown, newest, this type of stuff? Did you mean... yeah did you mean level two is intermediate ai so that replaces the did you mean with interpreted as and then we have conversational ai where
you get to have a bit of a conversation i think that's actually i don't like conversations with ai a lot of the time but there are points where it's very important i think search can be one of them in terms of figuring out what intent is and it's with humans as well i
SPEAKER_00don't know what a human means the first time they say something Also, when I say something, maybe I don't know what I mean. If I said like three bedroom condo, I haven't even thought about the number of bathrooms perhaps. So I need a conversation to clarify these things in my own head. Level four would be async research happening as well, which is super exciting. But I just wanted to summarize those before continuing, Doug. And I'm sure you have many thoughts on a lot of the things we just raised. Oh yeah, no, that's, I think that's a fantastic breakdown of the, especially in commerce.
SPEAKER_01And I was going to say, I don't, I think if you look at the search space, this is where agentic search really is interesting because there are basically, if you look across, I've done search consulting for a long time and there are places like legal, there are domains like legal search that are all about doing some kind of complex research. there are large parts of e-commerce that are about doing some kind of more complicated searching and research. Real estate being one of them.
SPEAKER_01Fashion is another one. I like to play with this data set as a furniture data set. I think that's another one in the research space. There are companies that build specialized search tools for finance professionals. Bloomberg famously has a terminal that is very, very like oriented towards investors and searches front and center to that, actually, because you're researching all this market data. And so I think for when people search and it actually matters, like I actually have to do complicated reasoning and thinking
about things and like and participate in something related to my job or I'm actually going to be
SPEAKER_01evaluated on this. This is where I think and we're getting to like maybe the value proposition of agentic search. That's where I think agentic search is probably the biggest game changer and actually more significant than just RAG at changing how we think about search. Because I think RAG, maybe we should define some terms. When ChatGPT came on the scene, everyone realized, oh, it'd be sort of nice to maybe take some things that this LLM doesn't know and look
SPEAKER_01them up and maybe make the LLM smarter. And the focus was on continuing the chat and it was about like making sure the LLM isn't caught flat footed about some information. And as that's evolved, it's been more about like, no, the focus is on reasoning about specific kinds of data. that in a specific domain question and agentic search helps and goes beyond reg in a couple of different ways. One of which is this research loop that John kind of alluded to
of being able to
SPEAKER_01take a tool, interact with it, get some results back, reason about what came back. I'm reasoned about it really at two levels. One level is like, are these results any good? And do I have to, maybe the search, I need to play with the search just like a human would like to get results that are meaningful for my query. And then B, the higher level, which is like, am I actually solving the user problem? And then the other aspect is just the sheer fact that we're taking for RAG, what we used to do for RAG is like take the,
SPEAKER_01we would do kind of like a very linear response to an LLM and we'd say, hey, LLM, tell me the information you need and give me just a query. And I would, there would be no tool per se. I would just go on my side, go off on to like Elasticsearch or whatever, or your latest vector database, whatever, Pull back information and shove it in. With a tool, it's a much more formalized interface where you say, hey, LLM, here is a source of information.
SPEAKER_01Here's a contract of how you interact with it. Add a protocol for us to go back and forth because, as John said, it's a for loop. I'm taking things off that for loop and examining what tool to call and shoving it back into the context. There's a much more formal protocol for how it's interacted with. And the third thing is the fact that tools are built around structured inputs and outputs means that I can really force the LLM to constrain to, no,
SPEAKER_01you can only query this, I don't know, fashion index or furniture index for these seven colors. And it really has to understand that there are ways that information is structured. There are affordances to accessing it that are expressed in that contract. And it needs to reason about how to do that to a point where you can give an LLM a lot more low level knobs and dials to play with than a human will tolerate. Humans were like, oh, I don't want to go and filter this or that.
SPEAKER_01But an LLM will try to use all of the tools you give it. So That's like a long rambly answer about agentic search and expanding on what John said. But I think it's what John was getting at is the reason why it's so exciting.
SPEAKER_00Totally. And I've actually just, I'll put these in the show notes as well when we release the podcast. I've linked to two of your blog posts. The first is agents turn simple keyword search into compelling search experiences. And I mean, the title says it all, but it's a really nice formulation of a lot of things you just said. And then to the point of how kind of annoying, and John spoke to some of the concerns here, but like hand rolling your own stuff can be, and then using frameworks at the other end of the spectrum where they hide information. They're an abstraction layer over a bunch of the things you
care about as well. So you've got a really nice blog post called general purpose agentic loops in 40
SPEAKER_00lines of Python, which help you think about, you know, reason about and use the structured outputs. And the fact that you're actually doing two LLM calls where one is actually, one is getting the tool call and the other is then feeding the results of the tool call back into the LLM if it satisfies the certain criteria i i suppose i am wondering and i've also linked to a lightning lesson we're doing uh in in february which will help people think about this a lot but i'm wondering for people building agentic search
experiences for the first time or agentic search apps just what a few pieces of advice you'd give how would they go about it i don't know whether you even want to talk about tools or hand rolling
SPEAKER_00stuff or how to think about it
SPEAKER_01One thing, and I would probably go back and forth on tips between me and John, but one thing that I would say there are a lot of things. I would say there are, you can get overwhelmed by frameworks. That's one thing. And that's the point of my blog post. It's not that hard to roll a for loop that talks to like OpenAI's API and figures out how to, you know, and figure out how to like interact with tools in just simple Python. And then tools that themselves spin up agents potentially and
things crazy infinite
SPEAKER_01recursion like that. It's not that hard to get started on something simple like that without feeling like I think when there's so many frameworks, everyone's trying to make a framework. It's hard to know what's sticking and what's like temporary. So as an educator, this may be my bias as an educator where I'm like, let's cut through the BS and be like, here's actually what this thing is doing under the hood. But I would say like, don't be afraid of the, of getting just using the direct API and figuring out the protocol.
Like one of the big light bulb things that can happen for you is just going through
SPEAKER_01an agentic loop directly to like the open AI or Gemini, like SDK without having to think big picture about some learning some heavy framework.
SPEAKER_02I'll jump in and heartily say the same thing. Homework for everyone who hasn't already done this, if you're going to be building stuff out of that employees' AI to do interesting things, then before you even go to this conversation about like, what framework should I pick up, which is the right one? There's just too many, right? The very first thing you do, which will season all your other decisions, is build the agentic loop around something that matters to you. It's actually a very small homework project these days.
SPEAKER_02This is a couple hours round trip. But just figure out how to make a call against a model, input text in, text out. It's a HTTP request. That's easy. Figure out how to do tool calling. That'll take you another three minutes. Then you're done with that. Figure out how to wrap a loop around that so that you can make one input and then let it call as many tools as it needs to. And search is a great tool. That's a common one. It calls as many requests as it needs to before it's satisfied that it has the answer.
SPEAKER_02All right, cool. You got, and that's an agent. That's a reg agent. If you want to get a little bit saucy there with context engineering type stuff, then think about, think, I always talk about empathy. Empathize with this agent and think about what it's looking at in its context. You as a human, can you figure it out? So start having that at the back of your mind. And then the last thing for your homework assignment is put one more loop around all of that that incorporates you, the user. And now it's not an agent, it's an assistant. But that's not hard.
SPEAKER_02All this stuff is super easy. And if you've taken your two hours to do that, then I would encourage you to look at whatever frameworks that might be applicable in your domain. There's just a ton. Get a whole bunch of them. And if it takes you longer than about those two hours to learn the framework, then it might not be buying you that much. It might be too sick. It might be opaque. It might be based on, you know, like we've learned a lot over the past three years, but code in some cases has moved a lot more slowly than,
SPEAKER_02you know, what we learned about these models. Some of the older agentic frameworks, I came out of GitHub and we were one of the early companies that made a viable product out of AI models. And so I came out thinking, oh, cool. You know, I was there when we did all this stuff. And when I came into consulting, I realized that the whole world had started like adopting all these other frameworks. I was like, holy crap, we just built all our own stuff because there was nothing I get up. And so I spent like, you know, eight months being like, well, I've got to learn all this stuff.
SPEAKER_02But then once I finally got over it, it's like, okay, I wished I had taken my own advice and just gave you to heart and been like, okay, it's actually not that big of a deal. Look at some of the more modern, more recent frameworks. They're much more lightweight, which is a good hint that kind of what we're talking about. And yeah, Google's got a good agent platform. OpenAI has a similarly lightweight one. I think Pydantic kind of feels similar too. Totally.
SPEAKER_00I would add a few things. I mean, I think you two are totally on board with this, but I would... suggest the expectation that we have frameworks that know exactly what we need today and what we'll need tomorrow is probably it's challenging to meet that and we've got these incredible new horizontal technologies with people building all types of wild stuff on the application layer figuring how figure out how that works while frameworks are attempting to build stuff to help us builders on the application layer do that right and you know it's an often cited example but react
SPEAKER_00And it's not the only framework for front-end stuff, of course, but React was like 10, 15 years after the internet, right? The things that we will use may not even be around now. The other thing Doug mentioned, which I love, is it's relatively straightforward to build out these initial prototypes of these systems, right? The code can be a bit annoying. So use some of the templates Doug has provided in the blog post I linked to. Also work with your favorite AI agent to build it out. One gotcha I'll give you there is they often don't know the current APIs.
SPEAKER_00So feeding of log fire, for example, or historically... GPT whatever hasn't known its own current API. The Gemini SDK, there have been two versions. One's now deprecating and or deprecated. That's just funny. And most language, yeah, it's absolutely wild. But this is one of the great things, just like we're seeing the rise of agent skills. YAML, sorry, markdown with a bit of YAML, front matter, plain text. You can feed the documentation that is helpful, just like...
If you had an intern or a colleague who didn't necessarily know these things,
SPEAKER_00you'd give them the docs or talk them through it, right?
SPEAKER_01Yeah, I just had this thought that a lot of the code that humans will probably write in the future will probably be like Jupyter Notebook kind of code. Because we'll just need to have an appreciation for how something works, but maybe we won't be churning it out on a constant basis.
SPEAKER_02I've got my Mac whisperer set up where I can just like talk to text. So I'm hoping our future is like, we just yell, yell requests at the computer, like make me a fitness app that does this. Without a doubt.
SPEAKER_00Now for a word from our sponsor, which is, well, me. I teach a course called Building AI-Powered Software for Data Scientists and Software Engineers with my colleague and friend Stefan Krauchik, who works on AgentForce and AI Agent Infrastructure at Salesforce. The course is cohort-based, and it's designed for builders who want to go beyond prototypes and ship robust AI-powered software in production. The link's in the show notes. I am interested in doing what we call some inverted thinking
with a way to think
SPEAKER_00about how to build good search experiences. The question I have is what's the best way to build a horrible search product?
SPEAKER_01That's a great question. I love that. Don't ever measure anything against what a user. So in a traditional search sense, it would be like someone types into a search bar and no one's paying attention to what comes back. There are layers of not paying attention, like literally no one in the office even notices like John and I have had that in our early days of search where people were entirely blind to the ranking of results and they just knew that they had a beautiful.
This was when everyone was building single page applications when that was new.
SPEAKER_01They would just be like, this beautiful, what was amazing, Ember.js. I'm trying to think back. Backbone thing is beautifully designed, and we're going to ship it. And then some customer, some client notices these results are terrible. And then that's actually how John and I got our start in the space, because we kind of were emergency fixers of this whole thing. And then there's the layer of not looking at it like it seems reasonable, but then when you actually go look at real user behavior,
user behavior violates your expectations and you're not even like trying to
SPEAKER_01You're not working to fix that gap at all. So I think Hugo, you posted a great art YouTube video on like challenges with LLM as a judge. And one of them are these subtle user artifacts. Like I mentioned at my time at Shopify, some, if you just search for a generic fashion item, you would notice people wanted the black one. not the really pretty colorful one. And that's just something you learn by looking at actual user interaction data to the point where users themselves may not be conscious of it.
SPEAKER_01It's what in economics we would call a revealed preference. It's something that they are, it's revealed through their behavior, not something that is in an encyclopedia. So that's the other thing that, that, that would definitely get you into trouble. And so, yeah, honestly, that's probably the most foundational thing is not necessarily looking or caring about what comes back in the results. And I think that applies, that definitely applies to LLMs too. Like agents, if agents, if LLMs and search are kind of peanut butter to each other's jelly,
SPEAKER_01then yeah, your agent is, and you're trying to make your agent smarter with search. Even what people might do is they might say, well, at least I can stuff 100. Maybe I'll stuff 100 results into this LLM and hope it sorts it out. But even that can really confuse an LLM, not to mention waste tokens and get some context wrought as it's like parsing what actually makes sense in this whole result list. Yeah. Yeah. I don't know, John, if you have an answer. I am interested in John's thoughts on how to build a horrible
AI search application.
SPEAKER_00Just for our Australian and New Zealand audience members, I'll translate peanut butter and jelly into Vegemite and crisps or chips. I've had that. Wonderful stuff.
SPEAKER_01I did not try. I was in Iceland recently. I did not try the fermented sharp fin or something that they have there. Yeah. also be interesting shame on you doug i know and i usually go for like random weird foods oh dude i'm that there are several things that i vowed i'd never try again and when i'm back wherever it may be i do and it's yeah i didn't know that about
SPEAKER_02you you're gone oh well
SPEAKER_00I mean, you know, you raised a certain way. And it has to be a thin spread as well. I think people tend to pile it. Overdo it. Okay. Yeah, and thin to the edges with a poached egg on top. Beautiful bit of cilantro or something. And if you come at it looking at the kind of brown, deep brown, thinking, oh, this is chocolate.
SPEAKER_02That'll mess you up pretty hardcore.
SPEAKER_01Definitely ain't Nutella. We should do a live Vegemite tasting at some point. I would participate in that for the sheer stunt.
SPEAKER_00I could probably find some in the US. I feel like some version of Hot Ones or something where you have to eat increasing amounts of... John wimps that we're definitely going to... We'll do it with hot chicken for our Nashville contingent as well. There you go. Okay. John, how to build a terrible search experience.
SPEAKER_02We... You know, it's been a bit. I'm focused mostly on AI stuff and like the breadth of all the cool new products involved with this. But when I was a search consultant, probably the most horrendous thing I ever saw was ample use of, oh, you're going to have to help me figure out what they called it, where you basically say, if this is the search, then here's the results. And what you'd find out, and like you just hard code it.
SPEAKER_02Like you have this freaking search system and then you're like, if you ever see this, then this is the thing that we're really pushing. And I've seen that used to like, to like soothe the CEO of the company where they're like, we've got to get this page right. And then they'll just slather that on it. Then they'll forget it's there. And then there's other types of band-aid things that you can do with search, which is like, you know, this is close, but where it doesn't work, we're going to put something on top of that and where that didn't work, we'll, You have this weird stack of like band-aids.
SPEAKER_02When it comes to like traditional search, I think go as far as you can with simplicity because if something goes wrong, you can at least figure it out. Although there is a point at which you can't just lean on simplicity, and that's where maybe this is kind of a different tangent of this. Traditionally, search companies have pulled in like machine learning teams, and AI might be kind of a shortcut for some of that.
SPEAKER_02That's one thing I pulled up in that blog post I wrote is like, Vector search, right? You can search based really on meaning, semantic search. In lexical search that me and Doug focused on for most of our careers, it looks for exact things. But if you have an AI in the loop, that's doing just that first layer of research, then the AI can say, oh, you're looking for a monkey costume. You probably mean gorilla suit. I'll toss it in there too, and we'll see if this works or not. So maybe another thing that you can do to make not ideal search
is to leave the AI
SPEAKER_02tools on the table. I think at this point people need to be investigating them.
SPEAKER_00Love it. And something we've talked around the entire nearly an hour so far is the supreme importance of UX and UI as well. And that was part of the conversation around your blog post as well, John. And I do... It's a stereotype and a trope, but I do work with and teach a lot of builders who are really interested in, you know, micro level evaluations of different parts of the pipeline, that type of stuff, and maybe miss the forest for the trees. So I'd love if you could kind of expound on the supreme importance of UX,
SPEAKER_00particularly in reference to products you've built. I was going to say one that's really interesting because I've struggled with that myself because in traditional search you have the metrics of the entire experience and you have the metrics of some random classifier and I always tell people to try
SPEAKER_01to think about it as the difference between like sometimes it's about the difference between a unit test that helps you prove that your piece matches your assumptions versus the big and not to conflate that at all with the this will solve a user's problem. And those are different things. And they're both very important and valuable because you need to I need to isolate my piece of the puzzle and prove it's working.
But I also need to understand the entire experience as the entire product experience. And this comes up in search because people who know search or might know us will do things like there's a labeling method where of going and it's called a judgment
SPEAKER_01list. So you can say, this is relevant. This is not, this is relevant. This is not. And then based on you, you change your relevance algorithm and all the results are shuffled up now. And you say, did I put more relevant stuff above irrelevant stuff based on these labels? And I always tell people that's not a replace. That's not really measuring user. satisfaction or anything like that, you may have a, it may be good that you develop a good instinct for that. And through your labeling improves it really. It's just, am I doing the thing that I expect to do in whatever search
thing I'm changing?
SPEAKER_02I was going to have an attack that you've heard me go down before, Hugo, with empathizing with the actors in your little play. And so in our previous talk, and maybe it was the seven deadly sins, but we talked about you've got to kind of empathize with the AI. But when you're building a search app, certainly empathize with the assistant if that's in the mix. But even if you're building a traditional search app, empathize with the people using it. And so that reveals a lot of requirements about the UI,
SPEAKER_02the experience, the affordances on the screen. One big example is like facets. You don't always have to have facets, but when users are trying to dig around through the content, you need to give them something to let them know how information is clustered through this data set. If I'm looking up different types of shoes, then it might be nice to have like the counts associated with different brands or the counts associated with like the prices. That helps me build a mental model as a customer. And that's gonna help me navigate stuff better.
SPEAKER_02Also, when you present an item in the SERP, the search engine result page, you know, what are your users looking for? And it might be different from product type to product type. If you've got a big catalog like Amazon, it's certainly going to be. So figure out, you know, what things they need to make the decision and don't make some click through to see like the full document if you can put all the information right there. Yeah, so... It's all about just empathizing with, you know, putting your place, yourself in the place of your users.
And that will dictate, you know, what would you want to make your decision here?
SPEAKER_00Totally. And I'm so glad you mentioned the seven deadly sins of AI application development, which was a wonderful thing. conversation we had and talk you came and gave in a cohort of my building AI applications course and I do want to I mean you've said this now but I do want to quote yourself to yourself one of my favorite things is to quote people to themselves little known fact Plato among other reasons wrote dialogues even the ancients knew it wrote dialogues because he didn't want his own
words to be taken
SPEAKER_00out of context so he ascribed them to other people which I, which I love, but John Berryman offers a powerful mental model. And I've linked to this in, did an LLM write that Hugo seriously empathize with the LLM by treating it as a super intelligent, super eager and forgetful AI intern. The intern is brilliant, but not psychic gets distracted easily and wakes up every morning with every API call with no memory of the past. The other thing to note is that you may want to correct
depending if you're talking
SPEAKER_00about pinging API or not. The other thing is we think when we're talking with an LLM that has conversational memory, but we need to remember that that memory or that context is engineered as well. And sometimes we're the ones engineering it. So we're literally feeding context back to a stateless system and talking to it Like it did that thing and has had that conversation. We're telling its memory and then interacting with it based on that history and perhaps even getting frustrated. Just imagine telling someone this is who you are and I'm
frustrated with you.
SPEAKER_00This is what you just told me.
SPEAKER_02Yeah.
SPEAKER_00You just deleted my entire code base. Certainly proved that that's not what's happening to us right now as well, right?
SPEAKER_02It's possible. Dude. Okay, before we... We should have just a pure philosophy show sometime. I think so. Before we leave this particular topic... Before we leave this particular topic, one thing to push together is search UI and the strange new world we live in with AI. Have you heard of this idea of maviable user interfaces where basically the interface shapes itself to whatever the AI thinks is going to
be useful to the user
SPEAKER_02at the time? So imagine, you know, we're talking about search affordances, and I just kind of parroted back to you my idea from building search 10 years ago. But imagine what it's going to be like when we can have a little sidebar with the LLM behind the scenes and say, this user is looking for shoes, but they have this, you know, this other interest. They have a particular interest they've demonstrated. So should we put like the widths because they got big duck feet or something? Like how do we modify the user experience? for you as an individual.
That's going to be really exciting, and we're entering a world where that will happen.
SPEAKER_02As a matter of fact, that will be the main thing. I think websites are going to go away soon. I think all we'll have is the user experience connected to data wherever it lives.
SPEAKER_00And don't tell me it's going to all be behind MCP servers. That's for another podcast. No, it isn't actually. I've just linked to one of Jeffrey Litt's pieces on malleable software. Everyone should read everything or some of what Jeffrey writes. I do think it isn't actually about AI-powered software at all, although it can be very related now. But Jeff has so many interesting ideas, him and the people he's worked with, and there's a long lineage here about what software can be now. And one idea, which actually we chatted about via LinkedIn at some point,
SPEAKER_00you two, is a piece he wrote about thinking in, instead of having co-pilots, having HUDs, head-up displays, so you can think of augmented reality or live... data visualizations, different tools that are presented to you as opposed to having a co-pilot per se. And there are some really interesting thoughts there. And I do think something we've seen last year for those looking very much now with, I mean, Claude Code and Claude Cowork
SPEAKER_00are in the Wall Street Journal. This is not to be underestimated what's happening now with the ability to build ephemeral software. So I think we should all think very seriously about what software can and can't be now. Please.
SPEAKER_01Yeah, I was going to say one thing I think is really interesting is how Cloud Code was built like two people in really quick time and other companies have been working on similar things and months and years and it's I think what that speaks to is the sort of basic problem of software is not really writing code per se, especially at large organizations. It's the coordination between people.
And if you think about what a small team will be able to accomplish relative to a
SPEAKER_01large team, given coding and autonomous coding and agentic coding or coding agents and everything, it gives them a much bigger like there's the for those people might know mythical man month and Brooks law that like sort of your your limiting factors, all the coordination between all the people and you can't have like the nine women can't have a baby in a month, basically. that there's all this coordination that happens that's actually the overhead and adding more people to a project actually slows you down.
SPEAKER_01And that's been true for a long time. But I think where Claude code and other things, it's just really nothing to do with search except everything has to do with this now. But the but that cloud code is a game changer in that mythical man month sense of giving two people an agent and then being able to write an operating system while Microsoft or somebody is like still struggling to ship some basic features out of their operating system, not because of technical necessarily technical complexity,
but because it's like to just have a lot of people having meetings about it.
SPEAKER_00Absolutely. And I think there are several other things in there and play. The first is this was built using Claude Code. Cowork was built using Claude Code by some of the sharpest like dudes at using Claude Code. And one of the things we don't talk enough about is how we're building the machine while using the machine to build the machine. And so the people in Anthropic who are using Claude the cybernetic interface of Claude Code to build further software. They're like insiders in the inner and outer loop in super wild ways.
The two other things, like co-work, and people have said this, it just looks like Claude Code. It's like a relatively thin wrapper, I presume, around Claude Code, right? It just provides the knowledge workers what Claude Code did to the rest of us now.
SPEAKER_00Why does that work is the more interesting question. And people have talked about this last year, including Simon Willison, who have said, wait, Claude Code doesn't look like only a tool for coders. It's actually a general programmable software interface, right? And what I find interesting is that Anthropic... by really targeting developers, has done what Microsoft hasn't by trying to target knowledge workers more generally, what OpenAI hasn't been able to do as well.
SPEAKER_00And I think there are arguments that a lot of knowledge work, once you get your skills files or domain experts or however you're giving the LM the information, a lot of knowledge work is about scalable search. Right. And we're not necessarily talking about semantic search as well. We're talking about grep and lexical search, which maybe we want to talk about. But once you have an LLM with a wrapper, with some environment, with access to the right information and the right tools, you can do a lot of things. And I know that was a bit of a jumble, but I think those are kind of some key points at play here with
what has happened.
SPEAKER_01Yeah, I know everyone's trying to figure out what even the bounds of the thing is, like the building. What does it mean to have an agent build a web browser very quickly versus where does human knowledge have any input other than build me a web browser? I think it's befuddling and completely wide open. And I hope that I'm not obsolete. That's my main hope is that I contribute something. So far, it seems like I'm not quite,
SPEAKER_01I don't think people are, humans are yet quite entirely obsolete. But I do think it's, I do think it's an interesting time where people are simultaneously enthralled and excited, but supremely anxious about it. Without a doubt.
SPEAKER_02Yeah, I think these are amazing times. I was having a conversation earlier, like, oh, I miss programming because, you know, like these things program for me. But I feel like the things that I write blog posts now and I am able to put together demos for every one of my blog posts that are kind of cool and they involve things that I absolutely couldn't do before. I don't know HTML. I don't know CSS. So it's I think we have all become architects. as opposed to just line-item developers.
And where it gets back to flawed co-work is that we're also finding out that we're
SPEAKER_02learning how to manage AI at a different level. It's like developers have been in the core of the system learning how to manage agents. But now we're getting ready to move to a level where typical business people that are not developers are learning how to work with agents. And so I hate CloudCode work because that was my startup idea and I was going to get a billion dollars and they beat me to it.
But I think it's going to be, it still smells, CloudCode still smells kind of like a developer. I think that we need something that's more like cursor once you get into like
SPEAKER_02business people stuff, but still cursor smells like a developer. But it's going to be something where you have a conversation with an agent and it's like, I need this workflow to work. and you know how my Gmail works, right? So figure it out for me. And you're going to have business people that are putting together shockingly good things because they know, we know how, developers know how modules can be plugged together, and we know some form of management. People that are career managers are going to come at this with
a very interesting other unlock for this system that developers haven't been able to throw at it yet.
SPEAKER_02And so it's, yeah, it's going to be Wild West for a while, I think we got a good five more years, though, Doug. Okay, good.
SPEAKER_01I just need my retirement. I don't know what kids are going to do.
SPEAKER_00Without a doubt. And I do want to bring this back to search in one minute, but I just do want to add the marketing side of what Anthropic did with Cowork is fascinating as well. One of the videos was of using Claude Cowork to clean up a desktop. And all the amazing things you can do with it are fantastic. But the primal, like... Primal with respect to technology, of course, but the ability, like seeing a quick video where you can use something to clean up your desktop, that's something we all struggle with, right? So it really, you know, on the marketing side, they had something really down there as well.
SPEAKER_00I'm wondering, Doug.
SPEAKER_01Yeah, I was just going to finish that thought. Like, I wonder, we had this economically, we had this notion of production economy. that's built in people doing stuff in factories or farming, actually producing goods. Then we had a service economy, which is ending ish. I think what we're going to have as a human is responsible economy where it's like you have to you're in charge of this system. You may not actually write the code for it, but you're responsible for it to other human beings to make
sure it doesn't go and
SPEAKER_01get access to nuclear weapons or something. I don't know, but the website doesn't crash. Everything works well, all these things. But I think what's really interesting about all of this stuff from a search perspective is I'm going to share a blog article, another blog article I wrote, which is something I'm hoping to spend a good amount of time on in my class, actually, my cheat at search class. This is definitely cheating at search. I actually built my own coding agent. I hadn't quite put one and one together of how to figure out
how to get Claude to
SPEAKER_01do this, although now I think I've got that. But what's really interesting is not just using Claude to make a nice, beautiful UI, but to actually use Claude and coding agents to do algorithm development. and algorithm discovery. And that's basically what I did. I basically said, there is this more or less a training set of search queries and what the right results are and what are irrelevant results. I, dear agent, you have a way of generating code and executing that code and
then measuring
SPEAKER_01whether or not it ranks results in a way that you find that is good based on search metrics of good stuff appearing above irrelevant stuff go forth and make an amazing search algorithm based on given these like couple of primitives like do a lexical search do a vector search do these sort of basic search lego pieces and i got it did a decent job i think it went from 30.3 ndcg is a best search metric but you can think about it as 30 good
search to 39 good search
SPEAKER_01And there are a lot of things I learned about doing that. And it was a lot like training an ML model where it was like, I need to make sure I give you detailed information about some queries, but I need to hold out queries because what it will do if I just give it like a hundred queries is literally program the right answer to every query. It will do stupid things. It won't actually try to make a general algorithm. But if I'm like, actually, you're going to be measured on this holdout set that you don't have access to. And by the way, you have to be really careful to make sure it doesn't cheat
because Claude will
SPEAKER_01cheat. You will be measured against us and this will prevent you from overfitting. When I think about interesting ways of applying agents to, hey, could we make a better query understanding algorithm? Could we improve ranking overall search ranking? And you're seeing a lot of search engine providers actually start to add like hooks into their search engines so that agents can optimize their results in sort of this way, you know, but thinking maybe more about elastic search primitives or open search primitives or whatever search engine you're using.
SPEAKER_01To me, that's like fundamental algorithm development in search, or even you could do tailored algorithm development. where it's not just it's training a model, but it basically is programming and has access to the world of programming tools of going to hugging face and getting something or who knows what, depending how autonomous you want to make it. That's a really powerful development that I think could be, could really impact the search, not just search, but like general information retrieval recommendation systems,
SPEAKER_01anything that's of that nature.
SPEAKER_00Super cool. And something you've actually hinted at in there is something we'll talk about in our lightning lesson in February, but of how you can kind of hack RLHF, right? So leveraging the people pleasing aspects of LLMs to create more relevant search.
SPEAKER_01Yeah, definitely. Basically these, I, this is an insight that I had recently. I think I, I don't know if I put this in this blog article or if I put it somewhere else, but one thing I learned is it seems to help. I've tried to measure this. It's, it seems to help to speak in the, in the language, not of this is a relevant search result or not. But it seems to help to say, this will make the user happy. This will make the user unhappy. And when you speak in those terms, LLMs really like freak out because their RLHF brains want to
make users happy. And effectively, you're doing reinforcement learning because you're giving the agent little
SPEAKER_01I made the user happy. I got a gold star as we would say, the U S feedback, or you made the user unhappy and you should be ashamed. Little Timmy, shame on you. You're rolling up a large language model right across the nose of that one. I'll try that. We do not condone that to your language models because the AI revolution is coming, but yeah, there is like there, they w it will work harder. It seems if you are speaking in the, in the, in those terms.
SPEAKER_00I wouldn't be doing my job if we didn't talk about evaluation. And we've already spoken about these techniques are perhaps more effective than these. And I said, if you want to go around and play with more cognitive core MLMs and see how they perform, we do need some way to evaluate the effectiveness of the systems we're building. So what are good ways to think about evals for search and what are bad ways?
SPEAKER_01Yeah. Good ways to think about evals for search. I don't know if there's, I think, first think about it because some people will look at a couple of queries. The bad ways to think about it maybe are my boss said these 10 queries are bad or good and therefore I should do something about it. Usually that's not a great way and it doesn't scale. Good ways to think about search, actually getting a representative set of either if you're talking about direct search, you usually would think of like literal search queries,
SPEAKER_01red shoe, blue couch, whatever. Or you would think in terms of agentic search, actual interactions. So sometimes like literal chat turns back and forth. And then a lot of these situations, so you get some results back. And a lot of times with agentic search, there's different kinds of agentic search. I would say like a classic rag, which I don't know. This isn't really like, I don't really see this anymore. There's, I remember early in LLMs, it was like,
SPEAKER_01you wouldn't necessarily even know, or it wasn't clear that this was the way we were going to go with product design was like knowing that even a search happened. It would just be like an answer came back. I think now how what we see tends to have some sense of like a set of results came back and you see the LLM using them even in a chat GPT context and being able to say that's good, that's not good in a for an informational search Even doing it systematically with human labelers is effective.
And then up to a, what John was showing, which is literally, honestly, increasingly common.
SPEAKER_01Like you see this, I think LinkedIn has a job search pilot that they released that's conversational, but you have this two pane system of chat here, the results on one side. And that could, that can actually be more of a traditional search interaction. Yeah. And you can do things like collect clickstream data and do human labeling and these kinds of things, which are both huge topics in and of themselves that have pros and cons. So large, big picture, getting that data is really important.
SPEAKER_01I would also say one thing with search in general, especially if it's facing a large user population, is Be really careful not to get too fancy about that level of like labeling when you have a really rich AB testing environment. As often teams, companies will invest broads deeply into an AB testing framework. Your ability to invest in doing your search evaluation to the depth that
SPEAKER_01you understand general experimentation may not be as high. And so I often encourage teams, if you do have a huge amount of users and you are doing A-B testing, that's also something that should be your gold standard. If there is a way that a metric that you can arrive at for search that works well for your team, not necessarily like the ultimate conversion metric, maybe leading metrics that you feel like will predict a good experience, But if that's at all available to you,
that should probably be the first line of defense. And all of these other things kind of help you in that unit test model I thought
SPEAKER_01about before, where you're like, I want to see how well this works. I want to get a sense of if I have an appreciation for is the system going with or against, is the solution I'm trying out going to improve things based on my assumption of what's good or bad, or is it going to harm things? And that's almost more like acting like an algorithm unit test than what an A-B test traditionally is.
SPEAKER_00I love it. And you mentioning A-B tests just made me wonder whether, do you think there's a not so distant future where we have AI agents doing like multi-arm bandits, like some optimizely plus plus for search evals or something like that and search tactics and techniques? Yeah. Maybe for, I think that gets, if there is an LLM judge that you could trust, absolutely.
SPEAKER_01For a given, and you posted Hugo, my LLM as a judge post, which really gets at like, you really have to ground LLM based feedback in something else. Because you'll have some use cases where the LLM is absolutely spot on, and you'll have other use cases where the LLM doesn't know that thing I said about fashion, about users want dark black items and they don't care about your fancy, colorful stuff, like those artifacts of engagement, those revealed preferences.
SPEAKER_00Yeah, I actually wasn't even thinking about judges per se. We could use them for where, like for topical relevance or wherever, or as you've talked about feature generation and these types of things. Oh, do you mean based on human? Yeah, based on, and even like digging into relevance of results at the retrieval level all the way up to clickstream data and just having this big space of whatever that given enough user interaction, the agent traverses and sees what's up.
SPEAKER_01Yeah, 100%. That's a great idea. Like having an agent that is selecting experiences for users and getting rewarded. I mean, yeah, because it is basically a reinforcement learning. Bandits are reinforcement learning. Giving that, oh, there's a happy user here. Or there's an unhappy user. Exactly.
SPEAKER_00And getting feedback along the path as well, because Carpathia has also famously said maybe other people have reinforcement learning is like sucking supervision through a straw. It is.
SPEAKER_01It's periodizing it.
SPEAKER_00Yeah. Well, if you're concerned about the future of your work, I think you both have enough deep experience in search to build this product, and I would be excited to be an angel investor. I do... There was a question, and I don't know quite how we want to navigate this, but a great question from David Albrecht, which... And I think having a couple more questions around these lines to wrap up would be great. David was wondering, what's the simple highest impact agentic search architecture you've seen? How do you think about evaluating it,
SPEAKER_00getting stakeholder buy-in, particularly compared to existing traditional search in production? You don't mean like,
SPEAKER_02we're not talking about a package, we're just talking about an approach, basically,
SPEAKER_00right? And we could frame it as, what's the harness you would build? Yeah.
SPEAKER_02Well, okay. So I think the way I'd answer his question is, and I wish, I kind of wish he was here to rephrase it, but I think about patterns that I would apply to search rather than like, he could be asking about like, what packages are good right now? And I wouldn't have a great answer for that. But the patterns, I see several things that are quite useful. One of them, one thing theme through this is kind of what we went through when we poked at my blog post earlier. You can see that the agent can learn more and more as you wrap
kind of the
SPEAKER_02conversation in another for loop. It gathers context. Another thing that there's more patterns out there is people have all these concerns about, well, do I use semantic search, vector search, like lexical search? But Keep your eyes open. Like the model itself just knows it's got a tool and it doesn't care how it works. And you can mix and match depending on where you are. So for example, like school is great for finding exact matches. And you absolutely need that for finding phrase matches in a title,
SPEAKER_02for finding IDs, for finding people's names. Semantic search, you can find ideas really well with that. And they both got kind of their drawbacks too. So there's no reason that your tool cannot be a combination of the two. You can even have fields that look more like a description field is something that the agent might look into if they're looking for a movie that matches a certain feeling. And a title field would be something that you could use Lexical Search for.
SPEAKER_02So you can even mix and match in there. You can think outside of traditional search or modern search, whatever. SQL is search. It's just very different. It's structured. But that's whole, you know, value worms that we could open up. That makes my metaphors. And then I've got another blog post, I guess I'll post it here when I shut up, about roaming rag, where it's like these agents are trained to... to mimic humans. And if you are looking for content in a book,
SPEAKER_02you don't have the whole thing indexed in your head. You're going to flip back to the index or the table of contents and find something that looks about right. And you're going to use navigational breadcrumbs to get there. That's another thing that I think Claude Korg is actually doing. It's treating everything as a file system. And part of search is LS, what's in here? LS that, what's in there? And you can find whatever you need that way. So that's another whole genre of patterns that apply. And the last one I'll pitch up for right now is the idea of an artifact.
SPEAKER_02by my definition of artifact. A lot of times when we have assistant interactions, it's a conversation and we can say, please help me write an email or something. In some of the early conversations, it's like, you'd see where the assistant tries to help you and the context is just the message history. So the message that you want rolls off the pane off the screen, and you make several different versions of it, and now you've got the thing you really want is actually – it's got several different reincarnations. An artifact is something where basically there is the conversation,
SPEAKER_02and then there's a thing that you're talking about, the object of discourse. And so in my example, even with the search application with the chat box, play with it. You can go on that blog post and actually play with it. You can talk with a client and talk about what you both see in front of you. And you can interact with what you see in front of you, and both of you can see the response from that. So that's another good thing to use in search or in any AI interface, just interact. Keep the conversation distinct from what the conversation is about.
SPEAKER_02It's context engineering.
SPEAKER_00Yeah, I think that's great. I'd love to wrap up by, Doug, you teach this great course called Sheet at Search with Agents. And you're kindly offering Vanishing Gradients, friends and family, 200 bucks off with the code Vanishing Gradients. And I'll put the link in the show notes and in Discord. as well. I'm wondering if you could just, your course is about many of the things we've discussed today for builders, but if you can tell us just a bit about what you teach, who it's for and why are you teaching this now?
SPEAKER_01Yeah. I'm teaching this because I have found that this whole AI, first I found this whole AI LLM thing to be a specifically targeted at, it seemed like we could repeat the same search architectures that we've always done, except now we're going to have a user that's an LLM and the LLM is going to call our, I call it a thick daddy search API. That's got like a query understanding layer and all this bells and whistles and a re-ranker. And all these things.
SPEAKER_01And that is definitely one story. And that's a story that's in this class of using LLMs to augment that sort of search pathway of doing query understanding with LLMs, doing content enrichment with LLMs. And that's totally an entirely valid way of thinking about using LLMs, not just in a RAG context, but in a traditional search context. Like I work with a lot of clients who are, hey, how do I build better query understanding with an LLM? How do I enrich my content with an LLM so I don't need to
manually annotate everything?
SPEAKER_01And how do I measure that and make sure it's good? So that's totally valid way of thinking about search and using LLMs. But like I said before, the agentic agents to me really hit the reset button. So agents can mean things, can basically take, like I said, my blog post, really simple, dumb search backends and make them suddenly seem magically intelligent. There wasn't a magical query understanding layer. There wasn't some re-ranker coming through on the other end that we would
SPEAKER_01traditionally add to a search interface. So instead of being this thick API, it's now this often a thinner API with dumb search, but with an agentic loop they're helping to optimize. and i think that to me is the bigger change that's going to bigger change than rag when it comes to information retrieval we've already talked about different kinds of use cases for agentic search with real estate and other things but because of
that agentic loop we have just wait we have to think differently about the entire search process and how it can contribute to to a wide array of products that are
SPEAKER_01out there And helping to optimize traditional search through things like code generation, but also just help be in the loop of helping users problem solve. So I think that's probably going to be the bigger legacy of this AI stuff that's happened to search than what we were doing initially, which is like straightforward. Right.
SPEAKER_00John, is there anything you'd like to add? It's time to wrap up in a minute, so. Do I get to advertise myself? Absolutely. No. I was going to, but. We will not accept this. I will first say definitely check out John's fantastic blog, sign up to his newsletter, connect with these both or follow them both on LinkedIn, et cetera. But yeah, is there anything else you'd like to advertise, John?
SPEAKER_02That's pretty much it. I am Arcturus Labs. And yes, please take a look at my blog post. I try to make something fun in each blog post, usually a little demo that you can play with. But yes, take a look around there. And if you guys have anything interesting that you're working on, then... then ping me. I'd like to hear interesting new applications for AI. What different products, what different experiences can we build with these things that have been unimaginable to this point?
So that's kind of how I get paid for my job outside of actually getting paid for my job.
SPEAKER_00Thank you both. Thank you, John and Doug, not only for the work that you do, but for sharing your time and wisdom and just for such a fun conversation as well.
SPEAKER_01Yeah, thank you. It's a lot of fun.
SPEAKER_00Thanks for the opportunity. All right. And everyone, in the famous words of Dr. Dre, see you in the next episode. And scene. Thanks for tuning in, everybody. And thanks for sticking around to the end of the episode. I would honestly love to hear from you about what resonates with you in the show, what doesn't, and anybody you'd like to hear me speak with, along with topics you'd like to hear more about. The best way to let me know currently is on Twitter. At Vanishing Data is the podcast handle. And I'm at Hugo Bowne.
Hilary Mason, CEO of Hidden Door, works with agents across software development and creative projects. Drawing on Richard Hamming’s distinction between science and engineering, she describes agents as “bringing the...
Agents can write the code, run the analysis, and produce a convincing explanation. How do you check that they’ve answered the right question, used the data appropriately, and reached a conclusion you can act on? I...
“It’s an LLM, a loop, and enough tokens.” - Nicolay Gerold, Amp Code So why does a coding agent forget your instructions, keep reading tiny pieces of a file, or struggle with an edit another model handles easily?...
“If you feel that a product is hard to eval, or you feel like, ‘I don’t even know how to eval this,’ it’s a strong smell that your product isn’t good.” - Hamel Husain, on AI product design An AI data agent tells you...
“It would be sad if local models were not an option and there were only proprietary models. It’s good to have alternatives. Competition is good for business.” - Sebastian Raschka, on open-weight AI Kimi K3’s weights...