how do you train a search agent with reinforcement learning, without a huge cluster of B300s?
I sat down again with Andrew Drozdov, senior research scientist at Databricks working on retrieval, to dig into exactly that.
we go through KARL, where andrew and the team post-trained a search agent to match frontier models at a fraction of the cost!
the trick is OAPL, an RL algorithm build from the ground up for off-policy reinforcement learning. I think OAPL is an under-appreciated algorithm, especially since most RL finetuning outside of the big labs runs in disaggregated environments with a lag between the samplers and the trainer.
then we get into Instructed Retriever, where the KARL recipe went into a real product, and AutoIndex, where an agent looks at where search fails and writes the code that indexes documents.
very solid lecture, I did my best to put the right slides and figures straight into the video, enjoy!
📌 part 1 on how to get into AI research is over here:
Also, check out over here a few useful links:
👉 andrew's website: https://mrdrozdov.github.io/
👉 check his twitter too: https://x.com/mrdrozdov
👉 KARL (paper): https://arxiv.org/abs/2603.05218
👉 OAPL (paper): https://arxiv.org/abs/2602.19362
👉 Instructed Retriever (blog): https://www.databricks.com/blog/instructed-retriever-unlocking-system-level-reasoning-search-agents
👉 AutoIndex (paper): https://arxiv.org/abs/2607.18603
👉 AutoIndex (GitHub): https://github.com/auto-index/autoindex
btw also check out more of Deep-Agnt, big thanks to my man moe:
📌 the problems: https://deep-agnt.com/problems
📌 build your own coding agent: https://deep-agnt.com/harness
Andrew Drozdov part 2: KARL — transcript
00:00:00 – Part Two: Search Agents, KARL and AutoIndex
Yacine Mahdid
Today I’m back with Andrew Drozdov, who’s a senior research scientist at Databricks working on retrieval. We did part 1 earlier this month, which was more focused on his academic and professional career that led him to Databricks and working on research. So check it out.

This is part 2 of our conversation, where we dig into search agents and how to train them with reinforcement learning using very deep off-policy methods. We will be going through KARL, the paper where Databricks trained a search agent with an off-policy reinforcement learning method called Optimal Advantage-based Policy Optimization with Lagged Inference policy, or OAPL, to match frontier models at a fraction of the cost.


We will then go into the recipe that went into a real product with Instructed Retriever.
And finally, we’re going to touch on the newest research from Andrew, called AutoIndex, which tackles the problem of how you cut up and represent your documents so that they can actually be found in a research task. This is pretty interesting because today most people just pick a fixed chunking rule and hope that it fits their data.
With AutoIndex, the agent looks at where search fails and writes the code that indexes your documents automatically. So it’s a coding loop where it writes scripts for doing that chunking and processing of documents.

Just to put some more emphasis here: I think the OAPL algorithm is a very principled way to do off-policy RL, and I think it’s underappreciated generally. Especially given that most RL fine-tuning runs outside the big labs happen in these disaggregated environments, where you have a bunch of GPU fleets that are disparate generating the rollouts. You get this lag in policy between the samplers and the trainer. So I think this kind of methodology is very interesting to explore and to study.
The two papers are, as always, linked in the description. I’ll try my best to put up the right figures in this interview as we go.
00:03:27 – Three Reasons to Train Search Agents
Andrew Drozdov
One thing I really like about where the field has converged is that we’ve identified a lot of interesting learning problems and core capabilities that are evolving as their own individual fields of study. RL, for instance, is a method, but it’s also a problem: how do you learn from experience? Within the LLM community there are also different phases of learning, like pre-training, mid-training, pre-mid-training, post-training and so on.
What I want to harp on is that search is actually one of those pieces as well. Models need to learn how to search. In my view, it’s an essential capability of an intelligent system. You’re not going to get any utility out of these powerful systems unless they can also search effectively. And search is really quite a complex problem at the end of the day, with many different layers. We can talk about a few of them.
So let’s talk about KARL, and a few other things. This slide deck is from a keynote I gave at a SIGIR workshop this past summer in Melbourne. The presentation was initially titled “Training Adaptive Search Agents”, but over time I’ve come to prefer this alternative framing: three reasons to train search agents. It seems like people, especially in the graduate school community, are sometimes shying away from training for various reasons.
I can talk about these three reasons, but maybe the other reasons worth talking about are why people are not all working on training right now. I think part of that is because these reasoning models have made other things a little more lucrative. And because people are being more ambitious with AI systems, they’re working more on building interesting datasets and evaluation sets.
But the biggest reason I think people aren’t training is cost and resource availability. There’s this perception that you need a huge cluster of B300s just to do any basic training. The first reason on this list is that you don’t. There are other things you can do, and let’s talk about those.
This is the outline of the talk. I first want to calibrate on what I see as agentic search, and make sure that lines up with how you see it and how the audience sees it. Then we’re going to talk about KARL, which I see as a really elegant and efficient way to train search agents.
I also want to talk a little about the behavior we’re seeing in these agents. I think this is something people need to look at more, because it’s unfamiliar. It is like how we search, but not exactly. People are working on training, but you also need to understand how to analyze the systems you’re developing.
Then I want to talk about how we translated the lessons from KARL into a real product called Instructed Retriever, powered by our model called Instructed-Retriever-1, as well as some pretty futuristic research projects I’ve been working on, like AutoIndex.
The way these map to the three reasons is like this. First, KARL and the agentic behavior are all about how off-policy RL is efficient and well suited for training search agents, despite there being very few papers or people training models this way.
The second reason is that small models remain untapped. You don’t need this huge cluster. Even with off-policy RL you can really reduce the resources you need, and you can reduce them even further by focusing on smaller models, which are still quite lucrative.
And third, we need to train because if you’re going to spend all your energy working on things like harnesses and advanced in-context learning techniques, you’re going to drift further and further away from the data the model was exposed to during training. So you’re eventually going to need to do your own training to really get the full benefit of the new techniques you’re developing.
So this is how I see very vanilla agentic search. We’ve converged to this flow, and that’s notable, because I think one or two years ago that convergence didn’t really exist. People were trying out lots of different ways to do deep research and agentic search. But now this is very, very popular and basically built into a lot of the API-based models.
As input you have your list of messages, your history, as well as the current message you’re going to send to some language model. The model then takes multiple steps of actions, and at each action it calls one or more tools. If one of those tools is associated with search, I would call this an agentic search loop. When it’s done, it outputs some summary of what it’s seen to answer your request.
So this is the agentic search loop as I see it. There are other ways to do it, but this is the one I think is most popular. And agentic search is everywhere now. You should be focusing on this problem because all the technology you’re using throughout the day uses this under the hood.
00:09:22 – Where Agentic Search Shows Up
Andrew Drozdov
But it appears in different technologies in different ways. I listed four of the main ways I think we see agentic search here.
AI overviews are the classic search bar experience, now enhanced with a summary when you submit your question. You still get a list of links, but at the top you get a very quickly generated response. What is unique about this category is that it’s super low latency. But even in that setting, I think many of these systems are using agentic search under the hood. They might be able to return a response in just one step in many cases, but for harder or complex, multifaceted questions, they’ll be doing agentic search.
Deep research, I think, is the one that brought a lot of attention to this category, something like a year and a half or two to three years ago. People were using reasoning models for search and asking them very ambitious questions, to the point where you need to output a report at the end. So this is a whole different latency category, right? It could be taking minutes or even hours.
Yacine Mahdid
I think it was the first good example of a long-running agent that is actually useful, doing something that makes sense, right? It gets some links, reads them, and then it synthesizes the stuff for you. That flow was good, and the fact that it was taking 30 minutes was not seen as a problem at all.
Andrew Drozdov
Yeah, I think it was a really good data point for the field: if the response you get at the end of waiting many minutes or hours is actually really good and valuable, it’s worth it. So it pushed the envelope of systems that were worth investing in. I think it’s one of the reasons people are still building these really large models.
The other thing that obviously became very popular shortly after that was coding agents. Coding agents can also be very valuable in the long-horizon setting of many minutes or many hours, and I still think of coding agents as search agents as well.
Maybe my hot take here is that coding agents have an easier job than deep research agents. Deep research agents are working in this very adversarial setting where they usually have to search across a web-scale amount of documents, totally unstructured and unorganized. With coding agents, the data is the opposite. A lot of people’s code bases are really small.
Yacine Mahdid
True, true. And with coding agents you can check if what you’re saying makes sense, because it’s not just synthetic: you can run tests, you can do a whole bunch of stuff. But with a search agent on an enterprise-level mess of data, how do you know if what you’re saying even makes sense, based on the information you collected?
Andrew Drozdov
Yeah, it’s super hard to write a unit test for an enterprise-style question, or even just a consumer-style question like “I’m trying to decide between two pieces of furniture.” So it’s quite hard. And plus, you don’t usually have a lot of agency to manipulate the data in the deep research setting to make future questions much easier. If you’re noticing that your agent keeps using the top message in the forum versus the middle message, you might be able to prompt it a little bit differently. But what you’re not going to do is create a PR and change how that forum is structured.
That’s what we mean about coding agents: you have such a nice feedback loop, where you’re constantly changing everything in your codebase to make it easier for the agent to then digest that information. Coding agents are a really valuable use case, but I think they’re working in basically the friendliest setting I could possibly imagine for these models.
And just to finish the slide, I think enterprise search is worth calling out as a separate category. In enterprise search, the agent needs to access an index that it doesn’t necessarily know that much about. It might have black-box access to one or more indexes: things like your email, company documents or other types of internal information. And you need a different set of techniques to do well on things like enterprise search.
But for sure, agentic search is something that’s being done all across the board. So this is agentic search, and I hope it’s clear that everyone is touching these technologies all the time. This is a very big area, and I think people are catching on. We’re seeing a lot more papers being submitted to AI conferences on these topics.
00:14:50 – Memory as a Search Problem
Yacine Mahdid
I think more and more of the problems agents are tackling are search, because if you have a long enough running session with some of these models, or you have a swarm of agents running around on a specific problem, they are literally creating these artifacts, and it can become a big pile of mess, right? The agent will have to re-ingest it.
So at some point it also becomes a way of retrieving the information, passing on the right stuff and decomposing it in a way that makes sense: this whole idea of compositional generalization, putting the stuff locally in distribution. But at the end of the day, you’re creating a pool of information that keeps growing, and it needs to be, not necessarily indexed, but structured in some way that you can search it back and reuse it throughout the session.
Andrew Drozdov
Yeah. This field of memory is really interesting, and I think it’s become basically table stakes. You need every single agent to have some notion of memory, so it can refer back to your previous sessions with that agent. And I’m fully bought into the multi-agent paradigm. One of my early papers at NYU was also exploring communication across agents. So again, everything just feels like a closed circle. Everyone’s working on the same topics all over again.
Yacine Mahdid
No way.
Andrew Drozdov
Yeah, that was a paper I had with Kyunghyun Cho and Douwe Kiela. That was a lot of fun.
But basically, we have a choice. We can treat the memory, these intermediate messages that we’re going to search over later, as unstructured search. Or we can try to make it a friendly environment again: we can actively keep organizing it and make it easier and easier to pull from that information later. And I think it’s actually really important that we do the latter, or at least that there’s the opportunity to do the latter. We’re the ones creating that data, as opposed to the Internet, where everyone else is creating all that data.
00:17:09 – The Harness Matters: MemEx and ReDMM
Andrew Drozdov
So before we start talking about KARL, there are a few things I still want to talk about. These are primarily blog posts that have come out of Databricks in the last six months or so.
First of all, the harness is massively important. Maybe if we were giving this presentation a year or two ago, it would be more like: the way you do reasoning is massively important, the test-time scaling that you do is massively important. But now we’re past that. Right now we’re in this new harness paradigm. And what we’ve seen is that you can put the same model into different harnesses and get really different results. And surprisingly, you can sometimes get the same quality of result, just much cheaper.
So there’s more and more motivation to iterate on the harness and make it better. But as we’ll talk about shortly, as we go through KARL, to get the full benefit of the harness you’re going to want to train the model for your harness. I don’t think the models quite have the degree of harness generalization that I’d like them to have just yet. And it’s going to be interesting to see how this changes with multi-agent systems too.
So one really cool harness that we developed at Databricks is MemEx. Instead of just taking the outputs of tool calls and putting them directly in the context, in MemEx we save every tool output as a variable in Python, and we let the model decide how it’s going to read from those Python variables. You can slice and get just the first few characters of a tool call output. You can scan it. You can get every other span, if that’s what you want to do. Basically it’s up to the model to decide how it reads these tool outputs.
And this is another change you can make to really bring down costs and, at the same time, manage your context much more efficiently, which should increase your quality ceiling.

Yacine Mahdid
Right, cool. Does MemEx have this concept of a sub-agent, as a tool call, or is it specifically about the tool calling?
Andrew Drozdov
You can use a sub-agent. Your tool could be wrapped as a sub-agent, if that’s what you want. But I think the key is that the main agent wouldn’t necessarily see the sub-agent’s trajectory.
Yacine Mahdid
So it’s very RLM-flavored in terms of construction here.
Andrew Drozdov
I would say it’s RLM-like, yeah. I think you could split hairs: I don’t think we enable MemEx to further rewrite the harness, but some of the nice things of RLM we’re also using here.
It does remind me of a paper in my thesis called ReDMM, Retrieval Driven Memory Management. The whole idea there was that we would use a separate model to decide what to put into the context of the main agent at every step. That way you could basically have infinite context, because it could progressively start paging things out. And it was pretty effective: we saw huge lifts on a lot of different RAG tasks at the time.
But we were not yet saving things in variables. We weren’t allowing it to rewrite the harness. We weren’t doing real compaction. But ReDMM is really fun, if folks want inspiration for other ways you can tackle this problem.
Yacine Mahdid
Cool.
Andrew Drozdov
The last blog post I want to talk about is this memory scaling blog post. Like I said, I think it’s become very table stakes to have agents that can use information from your previous sessions. We’ve been benchmarking this at Databricks, making sure that we are effectively using memory and also that memory is improving the accuracy of agents across different tasks. So there are more and more reasons that the harness is going to continue to change, and that search is going to remain an interesting problem.
00:21:59 – KARL Matches Frontier Models at a Fraction of the Cost
Andrew Drozdov
So let’s talk about KARL. KARL was a paper we published earlier this year, “Knowledge Agents via Reinforcement Learning.” It was a big team lift: a mix of RL experts and also people working on model infra, search and a bunch of other things.
And the headline result is this. KARL is a post-trained GLM, and just through post-training we were able to match the results of some really powerful API-based models at the time. KARL is sitting just below GPT-5 and slightly better than Sonnet 4.5, at much lower cost for inference and also much lower latency.
And through parallel thinking, which is a type of test-time scaling, we can further improve the quality quite a lot. As we keep scaling, we see quality keeps improving, and we can basically match Opus 4.6. At the time of publishing, I think that was basically the strongest API-based model you could use.
So that’s the headline result. And you can do this with off-policy RL, which means it’s viable. I think a lot of the questions about off-policy RL are basically “Can it work?”, and this is empirical evidence that it can.
00:22:59 – Building KARLBench
Andrew Drozdov
In order to measure the quality of our approach, we had to first define the hill that we wanted to climb. So I worked with some colleagues and we designed this benchmark suite. It wasn’t immediately obvious which tasks we wanted to cover. We just knew we didn’t want to cover the most popular benchmarks, because we felt the models were probably already tuned to do well on those tasks.
So we took BrowseComp-Plus, which was the de facto deep research, long-horizon search task at the time. It’s super challenging and requires really long trajectories to do well on.
We also took TREC-Biogen, which comes directly from the information retrieval community. Every year there’s this workshop called TREC, where basically every track is a new dataset; groups of people submit entries, and there’s a leaderboard and a lot of analysis. It’s a really nice part of the information retrieval community, and I think the AI community should actually use those datasets more and more. But not too much, because we still want to get signal from them.
FinanceBench became a very useful measuring stick for us, because it’s the type of search that we do in the enterprise, where each document is not just a 100-word block of text. Each document can actually be a multi-hundred-page PDF. So you have to first OCR the PDF, parse it to get the text, and then chunk that. And just going through that process reveals lots of interesting failure modes in agentic search systems.
The rest of these stress the system in other ways. QAMPARI is a Wikipedia-based dataset, which I don’t love to use, because I know all the models are trained on it. But it requires so many entities per answer to do well that it basically makes sure the models aren’t being lazy. If the model is giving up early, it’s not going to do well on this task.
FreshStack we actually developed in-house with one of our interns, Nandan Thakur. This is nice because it was based on high-quality, real questions from Stack Overflow. They’re very procedural and complex, and they usually require you to execute many different steps, so we use a judge to verify that the answers include all those required steps. PMBench is a purely internal dataset. For us, this is sometimes the best signal, because we know the models haven’t been trained on that data.
We use this nugget-based reward throughout. We decompose every answer into different nuggets. This question, for example, is meant to have five nuggets. When the model generates its answer, we use a judge to say: this nugget is covered, this nugget is covered. If one nugget isn’t covered, then we get four out of five instead of five out of five.
This nugget-based approach has been used for a very, very long time in the information retrieval community. In the AI community we use different language for it. Sometimes we call these rubrics or atomic facts, but it’s all the same thing. They’re just nuggets at the end of the day.
This is what the questions look like. They can be pretty long and complex. In BrowseComp-Plus, you need to make sure you satisfy all these little constraints, otherwise it’s ambiguous what the correct entity is at the end. This is an answer from KARL: you can see it’s providing all the evidence towards each of the constraints, as well as citations, and we use a judge to verify that the answer it’s giving is actually correct.
Biogen is a little bit different. It’s more of a report style, where you need to pull information in from lots of different documents. FinanceBench, like I said, has to reason over these long PDFs and do some quantitative reasoning as well. So that’s the data side of things.
00:27:10 – A Deliberately Simple Harness
Andrew Drozdov
Let’s talk about how we do agentic search in KARL, what harness we use. We talked about agentic search earlier, and we follow the same loop in KARL, but concretely the only tools we expose are vector search and compression. Compression actually gets triggered deterministically once you hit a certain character threshold. The reason we did this was because we just wanted proof that we could train this agent.
Yacine Mahdid
Because when I was reading the paper, I was like, this is five things at the same time. It could have been five papers, right? I think a harness on top of that would have muddled which part did what: you would have had to do another bunch of ablations, and this paper was already 77 pages long. I’m still curious how much further you can push this thing with an even better harness, because it’s very rudimentary in terms of the tooling it can use.
Andrew Drozdov
Yeah. We could have done KARL plus MemEx, we could have done KARL plus history, we could have compared different harnesses and so on. Internally we do run all of those experiments. But we needed to draw the boundary on this work somewhere, so we decided to keep the harness relatively simple. It’s amazing how far you can actually push even the simple harness.
Small clarification by Andrew: Referring to previously published experiments comparing agent harnesses.
We targeted those eval sets, but a big part of doing this training is that you still need to come up with the training data. So we constrained ourselves a little bit, and I’ll talk about it in later slides. We decided to use BrowseComp and TREC-Biogen as our in-domain training data, so we could prove to ourselves we can at least hill climb in-domain on those two datasets, and then we wanted to generalize across the other datasets.
00:29:24 – Agents That Write Their Own Training Questions
Andrew Drozdov
We used an agentic synthesis pipeline, loosely inspired by the type of synthesis people do for training embeddings and rerankers. It’s very common in papers on embeddings for people to do document-conditioned question generation. You sample a bunch of documents, or maybe just one document, and you generate a question that you think should retrieve that document. You have many different quality filters to make sure you’re not accidentally retrieving other documents because the question is too ambiguous.
Or maybe you have other parts of your pipeline where you generate questions for many documents at the same time. Often people do clustering or just random sampling to do that. We actually leapfrogged a bunch of that effort by just having agents do the whole thing. You just point an agent at your corpus and provide some conditioning, but the agent can actually call tools and search the corpus, and at the end it’ll put out eight questions.
Yacine Mahdid
That part was super interesting, because this looks simple, right? It’s a very, very clean flow. But on top of all that you have the RL going on, the training and so on. We see more and more this idea of synthetic data that is created as we go. We can score whether the model is able to do it right now. If it’s not able to do it, you remove it. If it’s able to do it too easily, you remove it too. It’s a sweet spot based on the capacity of the model at that moment in time.

I don’t think this will stop, because having more data with high signal is just a good thing, and then you can hill climb on it. But what are the core things in there? When you design such a system that plugs into your training, what are the few elements you need to make sure you’re not messing up?
00:31:39 – Why Off-Policy RL Makes It Easy
Andrew Drozdov
Especially when you’re in the research phase, you want to make sure you have some version of generalization splits. It’s important to make sure you can hill climb in-domain first, then generalize out-of-domain. Eventually, as you move towards the product phase, you’re going to care a lot more about coverage. But there is one really nice thing that makes all of this easy, or relatively easy, which is off-policy RL.
You need to do this stage no matter what. Here we’re just generating questions and answers, just prompts. But for training you need more than prompts, because we’re training agents. If we were just training embeddings and rerankers, you could stop here, because you could map embedded documents to their generated questions and use that as your training objective. In our case, we need the rollouts.
If we were doing on-policy RL, we would generate these rollouts throughout training. We don’t know ahead of time which of these questions the agent is going to totally fall over on, or which are already too easy, and there might be all sorts of other reasons why a rollout could be useful or not useful. So you need to do a lot of things live, and you can’t recycle those rollouts either. You’re going to send a lot of on-policy RL runs out for training in parallel, pick the best one, and discard a lot of the information from the others.
In off-policy RL, you can just generate those rollouts ahead of time, and you can spend a lot of effort tweaking your harness and things like that even during that stage. You might uncover bugs in your harness that aren’t obvious until you’re doing large-scale generation, and you can tweak your data and tweak your filters. That’s super nice. It just seems much more efficient to do things that way: you get more use out of the rollout generation process.
Again, thinking from the perspective of a graduate student, you’re not necessarily going to have a team of engineers building your training infra for you. By generating all the rollouts ahead of time, you don’t have to worry about having a separate inference server during training. You can really simplify your whole training setup. I talk about how we generate the rollouts and so on, but the main thing to me is actually just the convenience of doing things this way.
00:34:25 – Inside the OAPL Objective
Yacine Mahdid
I’ve read the OAPL paper, and in that paper you went up to a 400-gradient-step lag and it was still working properly. In this specific case, for KARL, how far off-policy did the training actually go?
Andrew Drozdov
Let’s dig into all of that. I’ve been talking about off-policy RL, so I can jump straight ahead. This is probably the OAPL plot you’re referring to: we’re still able to outperform on-policy RL even with the lagged off-policy approach. OAPL is also what we use in KARL, so it is lagged off-policy RL.
It does have one nice thing, which is that we do different iterations of it. We train for many steps, then we regenerate data and train for more, so that way we can correct for the lag a little bit. We have some analysis of how things change across all those lagged steps. But for the sake of the flow here, let’s dig into the OAPL equation for a little bit, if that’s OK with you.
Yacine Mahdid
Yeah, that’s perfect.
Andrew Drozdov
This is the objective we train with. We have two policies that we care about. We have the reference policy, which is where the model starts, and we have our live policy, which is the latest version of the weights. On the left side of the equation we have a regularization term that we want to minimize, to make sure these two don’t drift too far apart. At the same time, we want to get the highest reward we can.
One piece this equation has built into it is that we penalize the reward based on the difficulty of the question. If something is really easy, even if we’re getting a really high reward on it, it’s not going to influence learning that much. If something is really hard, the reward is more meaningful.
R is the reward here. V* is a term we need to approximate. The way we get V* is by sampling many rollouts ahead of time. If the model is getting everything correct, V* will be high, so that’s a big penalty: it’s basically too easy. If the model isn’t getting many things correct, V* will be low. That’s one of the reasons it’s nice to use a large batch: the approximation comes from having many rollouts in your batch, so you can make it more and more accurate.
But we can just look at this empirically. In the OAPL paper, we see this works really well. In KARL, we see this works really well. One interesting thing about OAPL is that it’s a bit of a different way than people typically tackle off-policy RL, at least as I understand it. I’m more of an information retrieval researcher than an RL researcher, although I’m very passionate about RL as well.
This is how you derive the OAPL equation. This is really the equation you want to optimize: you want to maximize reward while maintaining a closeness to your reference policy. But it’s basically impossible to compute, because the KL is over these two distributions, and you’d need infinite rollouts to measure them directly. Fortunately, there’s a closed-form solution to this equation, and knowing the closed form, we can then transform this into a regression problem where we can just do mean squared error on it directly. And the nice thing is that this is an objective suited for off-policy RL. What I think is otherwise quite common is that a lot of off-policy RL starts from the on-policy RL approach, and you have some lag. Then you make little tweaks, like centering or importance weights, to correct for having an inaccurate gradient. Here you can sidestep a lot of that by having an objective that’s designed for off-policy RL in the first place.
Again, I didn’t work on the paper that came up with this equation. I worked with the researchers who did. But I really like their approach, and it gives me confidence that this isn’t a hack. This is a principled way to do off-policy RL, and that should give the audience confidence to try it out.
So far I think we’re talking about the things that make this appealing. Search is interesting, hopefully, and it appears all over the place. We’re using agents to do search. Off-policy RL is convenient because you can do a lot of data generation up front and not worry about bespoke training setups that need a team of engineers to manage. And we’re starting from a very principled objective designed for this problem. So I think what’s missing is the empirical side, which we can talk more about in a sec. But I’ll take a pause in case you want to talk about any of this a little more.
Yacine Mahdid
No, this is good. The other thing I didn’t realize before is that when you have the off-policy element, you can save a lot of cash by offloading some of the rollout generation to CPUs and stuff like that. They don’t need to be as fast to generate whatever they need to generate. Even if they come in a bit later, or one was too long so it’s four steps stale, you can still use them. You gain that from the off-policiness. If you stay on-policy, either you’re okay with the thing taking forever, or you need to pay the price to keep it moving.
Andrew Drozdov
Yeah, that’s totally right. It’s because you can amortize the cost of generation. You can send off your jobs to generate your rollouts, take a nap, come back a week later, do a bunch of analysis, send another run, and eventually do the training stage. If you’re doing on-policy RL, you don’t really have that luxury. You just need everything to already be working.
Don’t get me wrong, I think on-policy RL is also very nice. Once you have everything in place, you maybe don’t have to invest quite as much in this multi-phase approach. You can just kick off your on-policy RL runs right away. But not everyone has the privilege of a lot of excess resources to spend on this, like GPU hours and time, and not everyone has a team of engineers maintaining their model serving infra and training infra. And the cool thing is, it works.
Yacine Mahdid
Yeah, that’s the other thing. It actually worked.
00:41:49 – More Than Sharpening: Exploration Keeps Going
Andrew Drozdov
So these are some Biogen results. After one iteration, we’re already outperforming a lot of our baselines on Biogen. An iteration is however many batches; I don’t actually know how much effort we put into each one, but I think they’re all pretty much the same size, and we might have listed the number of training steps in the paper. After one iteration we’re already doing well, and at that stage you can regenerate more rollouts with your latest policy and keep training. We saw continued improvement.
This reflects what we saw in the OAPL paper. These are results on a KARLBench-style task, which takes multiple steps of search, while the OAPL results were, I think, on math and coding. It was pretty cool that techniques designed for math and coding also translate to the enterprise setting.
I’ve converged to measuring Pass@k on basically all my runs, because I think of it as my quality ceiling if we train a model. And every iteration, Pass@k keeps improving. So we’re doing more than sharpening, which I guess is what the cool kids call it. We’re learning to output good trajectories more frequently, but we’re also raising the ceiling and discovering more and more good trajectories.
Yacine Mahdid
Yes. It’s still doing exploration during the training.
Andrew Drozdov
Yeah, which, you know, you have to see it.
Yacine Mahdid
And I guess this is also why the parallel boost still works so well: you still have this Pass@k, this exploration element inside the model. It’s not cooked to just do one thing.
Andrew Drozdov
Yeah, and this is kind of a big deal. One of the reasons people are very excited about on-policy RL is that you’re always exploring from the latest policy, so you feel like you’re going to get exposed to more failures and more successes. In off-policy RL, it’s very lagged. We’re often training on generations from a stale policy. But it’s still uncovering things; it’s still exploring. I think that’s important. I wish we could do even more analysis on this part, but I think this figure gets the message across clearly, again mirroring what we saw in OAPL.
And this is another way to view that plot. I really like these flow diagrams. On the left is the model before post-training, and on the right, I think, after one iteration of training. You can see that a lot of the questions where we got none of the rollouts right, where we generated 8 rollouts and none of them were correct, start to get at least partially solved. The other reason that’s important is that these weren’t seen during training. There’s no reason to train on them in the first iteration, but in the second iteration we can actually start training on them.
00:45:16 – Parallel Thinking Beats Pass@k
Andrew Drozdov
So empirically we’ve seen good results even from one iteration, and the results keep improving. Maybe that’s partly because exploration continues, like you very nicely put it.
I really love this technique of parallel thinking. I did an internship at DeepMind where I worked on the reasoning team for a bit, with some of the folks behind things like Chain of Thought. That same group published a paper called Self-Consistency, and we were always exploring ways to push self-consistency further. A lot of the techniques at that time focused on voting.
Voting is super hard for something like RAG, right? Unless your question needs just a single entity, there’s no real way to aggregate votes across answers. You need a different approach. You could do best-of-n, where you try to pick the best answer, and then you can match your Pass@k or get close to it. But with parallel thinking, you can actually do better than Pass@k, which is pretty sick.
With parallel thinking, after you’ve generated something like 8 parallel rollouts, there’s another step where you aggregate them. You can combine information across rollouts, and that’s how you can do better than Pass@k. This visualization is a somewhat contrived example, though I think it’s grounded in a few real rollouts we saw. The best individual rollout only got 3 out of 9, but with parallel thinking we were able to get 5 out of 9 on this question.
Yacine Mahdid
And when it’s aggregating the rollouts, is it taking the summarized final rollouts, or the full long-running rollouts with all the segments?
Andrew Drozdov
So it outputs a whole new answer.
Yacine Mahdid
Yeah, but I mean when it’s doing the aggregation. Let’s say rollout 1 went super long, so there are 2 segments in it and one of them has been compacted. Is it taking the full thing end to end, or just the last bit that has the compaction of the history before it?
Andrew Drozdov
I think you could do that if you wanted to. What we did, I believe, was take the 8 rollouts and generate from just their answers. But you could imagine making that last piece agentic, so it looks at the full history, or even the steps before compression, and so on. We haven’t even talked about compression yet. You could imagine a whole agentic process on top of this to make it do even better. It almost starts looking swarm-like, but that’s probably a bit of a leap.
Yacine Mahdid
Yeah, exactly. I think with a good harness, that part would be a search over the trajectories you ran in parallel to find answers, right? You could technically mine that to push this a bit further, with a cleaner and better-conditioned input.
Andrew Drozdov
Yeah. We should have called it multi-agent thinking, I guess. That’s basically what it is.
00:48:44 – Training the Agent to Compress Its Own Context
Andrew Drozdov
We have a bunch more things to talk about, so I’m going to skip ahead a little to the compression piece. It’s a really long paper. These slides cover a lot of it, but not everything. The compression piece is super important as well, which is why I want to make sure we talk about it.
In KARL we have this compression tool. Once we hit a context threshold, we use the same model to generate a summary of the context so far, which we use as input to get another trajectory. You can keep doing this to get massively long trajectories; I think we experimented with up to 400 steps. And you need to do this quite frequently, because we use a simple vector search tool and just dump the documents into the context. If we had used MemEx, maybe we wouldn’t need to trigger compression as often.
But this is how we did it. And we actually backprop through the summary generation, so the model learns to do this compression better. What we saw is that if you take the model out of the box and use it for its own compression, it does okay. But if you use KARL just for the compression, you already see a big improvement over that model, which is really cool.
Unfortunately, if you use KARL with the out-of-the-box compression, it doesn’t work that well. You get a small improvement, but not nearly as much as when the compression is learned. The best is using both together. Maybe one takeaway here is that doing a good job on the compression piece alone can make a massive impact on your harness’s performance.
Yacine Mahdid
This is so cool. When I saw the compression, I was thinking of something like Claude Code’s compression steps. But in this case it’s different, because it’s RL’d specifically to do the task at hand, which is being a good search agent, right? It’s not just general compression.
The fact that the GLM compressor makes it worse shows that it’s not just about learning to compress. It’s learning to compress while keeping what you need to actually solve the question, right? Which bits to keep, and which bits are absolutely not useful because they were just scaffolding. Super interesting.
Andrew Drozdov
Yeah, absolutely. Over time I’ve tried to make every piece of the harnesses I work on as LLM-integrated as possible. I imagine that as you get familiar with these harnesses, you come up with a lot of heuristics to deterministically figure out how to do compression, maybe with some careful prompting, or even deciding you’re always going to keep the last message around or something like that. But I find that you’d probably just get the best performance by training the model to do it.
So this does wrap up the KARL portion.
00:52:03 – Why Search Agents Over-Verify
Yacine Mahdid
This is cool. Something I find very interesting about agents that need to interact with a very long element and take nuggets out of it is that they have a propensity to over-verify, right? Once they have the solution, sometimes they just go around and verify until they hit the timeout, and then they freak out.
Can you talk to us a bit about this part? First, what’s going on? Because if it was me searching and I was pretty confident about something, I’m done. I may verify once or twice, but then I’m out, right? And once I hit the wall-clock time, it’s “Hey, you have to stop now, time limit.” I’m not going to just guess. I’m going to look at the first answer and have it in the bank. But the models don’t seem to do this when they go into this freakout mode. So this part I was pretty interested in.
Andrew Drozdov
Yeah, I think it’s a very interesting problem. It’s also one of those things that seems to occur again and again in the text generation world. If you were training models for text generation five or ten years ago, getting them to stop was actually frustratingly challenging, and I think this is maybe one more instance of the same thing.
I worked on a multi-agent paper during my master’s, and we did a lot of entropy regularization to make things stop. We basically had a signal of whether we’d output enough information, and by tuning that really carefully, we could eventually get things to stop after about as many steps as we wanted. I don’t think you should be doing that these days.
One challenge we have is that as people get more ambitious, you want the agent to actually take a lot of steps. So it’s really easy for reward hacking to happen, where a lot of the bad trajectories are the ones that end way too early without an answer, and a lot of the good trajectories are the ones that were persistent and kept searching.
Of course, reward hacking can happen in the other direction too. Sometimes you find the answer really quickly and stop the trajectory, and you have the opposite problem, right? Maybe you’re giving up early because the model thinks a short trajectory is sometimes valuable. So I think reward hacking is happening in both directions.
And I’m more comfortable with this behavior. If I want the model to be very confident about the answer and to have a lot of supporting evidence, I’m often okay with this verification loop, because it’s ruling out alternative possible answers. At least that’s what I believe is being shown here.
Yacine Mahdid
Yeah. If you’re doing the parallel thinking stuff, you could theoretically negate this. Maybe in seven out of the eight loops they go into this verification hell, but then there’s the one that actually makes sense, and you’ll be able to triangulate, learn about that behavior and catch it doing that.
Andrew Drozdov
That’s very fascinating. You could actually think about doing multi-agent, where you split this entire verification loop across multiple agents. Once one agent finds some initial evidence, once it thinks it has Saturn as the correct answer, it could communicate that on the shared channel, and everyone could explore a different verification direction simultaneously. So that’s a good point. Maybe we should have gone even deeper into parallel thinking in this project.
Yacine Mahdid
That part with the parallel thinking was also very interesting. I think this plus a very beefed-up harness would have been very cool to show, maybe in a subsequent paper. That would be absolutely awesome.
00:56:28 – Train the Agent or Build Better Tools?
Yacine Mahdid
There was actually a community question on that topic, about the role of the harness. Right now it’s a minimal harness, and we see that if you’re doing RL properly, there’s already a lot of improvement. But what’s your thought going forward? Is retrieval more the agent’s responsibility, a skill that has been trained into it, or more the harness’s?

Andrew Drozdov
That question is a great segue into another section I have here. You can for sure train the search agent and make it better, but I think there’s still room for improvement in the individual tools and subagents, so you can improve those as well. It’s kind of a political answer: both. I want to do both.
But if you’re a researcher asking that question because you’re trying to decide where to spend your cycles, I actually think working on the tools is a little bit overlooked in the community right now. What has happened is that a lot of the retrieval community has still mostly been focusing on embeddings and rerankers and variations of those. There have only been a few novel papers around iterative RAG or tool harnesses. I sometimes call our Instructed Retriever a search harness.
At the same time, the AI community has focused a lot more on the main agents and just used very simple tools. I think people are slowly catching on that you need more powerful tools than grep and vector search, but I don’t think an emergent winner has come out there.
This is our answer to that, and we’re really proud of our approach. We have a search harness that is agentic, with an LLM at its core. It decomposes the input into many different queries to execute separately, and it lets filters be generated as part of that, so we’re tying into the metadata of the underlying documents we retrieve over.
We actually just published a blog post showing a multi-step version of this, although even in our initial writing about the Instructed Retriever, we showed it’s quite helpful in the agentic setting. We keep adding more and more parallelism at every stage, so it’s cool that the multi-agent thinking, as I want to start calling it, worked in KARL.
Yacine Mahdid
Oh, this is cool, man.
Andrew Drozdov
We do the same thing for query generation: decompose the query into different parallel paths. And we use LLMs for reranking, where we decompose the list of documents into different parallel paths that share some context, to make sure you get a really high-quality ranking at the end. I think there are probably enough details in this for people to build on top of it.
We used the KARL recipe to train a model inside this harness, and we saw really nice results. We did it in a staged way: first SFT, where we saw some improvements, then training just for the query decomposition, and finally for reranking. So we were seeing progressive improvements, again matching the quality of other top models at the time. And with the rerankers, you can add more and more shared context and keep pushing the quality.
I’m going through the slides quickly for the sake of time, but on our production metrics, we see it bringing latency down a lot while maintaining pretty good quality. We were really happy with how the Instructed Retriever landed.
Small clarification by Andrew: Results are based on production-representative offline evaluations.
01:00:41 – Why Isn’t Everyone Doing Off-Policy RL?
Yacine Mahdid
Cool, this is really cool. Was this also trained with off-policy RL?
Andrew Drozdov
Yeah.
Yacine Mahdid
That was my other question. It seems to be working well and has all these benefits, but if you look at the RL literature, it’s not as widespread as the results we’re seeing say it should be. Do you know why? What’s your thought on that situation, and how should the field adopt off-policy RL for LLM fine-tuning?
Andrew Drozdov
From talking to other retrieval researchers, I think part of it is that we need to shout this message louder. It’s not even in people’s toolkit. They pretty much know how to do SFT and how to do on-policy RL, and they know that if you change the parameters on GRPO, it gets more and more off-policy. But they don’t have techniques designed specifically for off-policy RL.
Yacine Mahdid
True. Because if they’re using vanilla GRPO, they try it and they’re like, “Yeah, this sucks.” So of course they’re not going to push forward there at all.
Andrew Drozdov
I have talked to some current PhD students who are now exploring KARL in their work, so I hope that gives more of the audience confidence that people should be exploring this. But I don’t have a really great reason for why people aren’t using it.
The classic argument is that the more on-policy you are, the more exploration you can do: you get exposed to more of the model’s mistakes and to interesting scenarios. But we’re empirically seeing that this is already working really well. So I am a huge off-policy RL stan at this point.
01:02:42 – Why Train When New Models Keep Coming?
Andrew Drozdov
We got great results in the KARL paper. We took that recipe and put it into production, in Instructed Retriever with the Instructed-Retriever-1 model. Since we did all of that, more and more models keep coming out, and they keep pushing the quality frontier further and further. We’re not sitting on our hands either. We keep doing training, so we keep pushing quality as well.

But I think a lot of researchers are considering whether they need to focus on training at all. If they know there’s going to be some new model coming out in the next 6 months, or 6 days (we’re counting the time between models in days now, or hours), what’s the point? My answer to that is AutoIndex.
I think we’re only scratching the surface of how ambitious we could be with these intelligent systems. We’re still thinking in the old box. We have basically been plugging these models into our previous systems as the new AI core. But since they are so flexible, and are progressively getting more efficient and more able to handle long-horizon tasks, we can try things we never would have tried before.
For AutoIndex, the thing we try to do is come up with a new data representation program. Emphasis on program: in AutoIndex we are outputting code. We’re not outputting an embedding, we’re not outputting a reranker, we’re not really outputting a model per se. We are outputting code that you then use to ingest your data, which then gets embedded and populates your index. I would love to talk through this. Any questions or comments before we dive in?
Yacine Mahdid
No, it’s good. One pattern I’ve seen come up over and over again is that these models are good at coding, right? We know that. And every time you can reframe some element as a coding problem, where the output is a piece of code, you get a very nice result out of it, almost magically. This codification of the task, with the output being a structured set of instructions, seems like a very good mental framing for a lot of these problems that we wouldn’t have thought about before.
Andrew Drozdov
Yeah, and it keeps happening in more and more places, and we’re for sure not done finding the places where we can do that. I feel like it gets kind of meta: you can start writing programs that then write the programs as well.
Yacine Mahdid
Everything will be code, end to end.
01:05:56 – Born in a Mentorship Course at UMass
Andrew Drozdov
Yeah. Another piece of history I want to share about why we did this particular project: AutoIndex was a collaboration I did with students at UMass. When I was at UMass, my advisor Andrew McCallum taught a course called the Industry Mentorship Program, where he invites industry research scientists to mentor groups of master’s students on a research project. It’s basically designed to be a paper they work on for a semester. They meet each week and have milestones throughout the course.
It’s not specifically on search or NLP. It can be all sorts of projects: robotics, vision, or something more domain-specific, like the life sciences. But the key is that you get mentorship from industry scientists and feedback from professors and PhD students throughout the semester.

I TA’d it, and it was so much fun. I learned about so many interesting directions in the AI community that I would not have learned about had I not done this course. Now that I am a research scientist in industry, I find it really fun to talk with these students. It’s basically an outlet for me to be creative, and it’s super rewarding. The students are really creative and really good.
The thing is, we’re still in the university setting, so they don’t have access to the Databricks GPU cluster, and you have to be a little thoughtful about how you shape the projects. We had this realization that if we are just outputting programs instead of models, we can iterate a lot more on the experiment design, and spend our energy that way rather than on massive training runs. Even with off-policy RL, it would maybe have been a little too much for this course.
Yacine Mahdid
But this is great, because I feel sometimes this constraint on resources brings about very interesting ideas that you wouldn’t have if you had absolutely no constraint and could do whatever you want.
01:08:17 – How AutoIndex Writes Its Own Ingestion Program
Andrew Drozdov
Totally agree. So this is what AutoIndex is. As input, you have a corpus of documents, a few validation queries and a search tool. In our case we use BM25, because you can run experiments pretty easily on your laptop.
This is the loop AutoIndex goes through. It starts with some base program, which ingests your whole corpus and populates the index you’re going to access with your search tool. You execute the validation queries, and then the agent just looks at the outputs, with pretty minimal guidance: it looks at what happens when you execute the queries and get some documents back. Based on what it sees, it proposes some changes to its initial representation program, as we call it. Then it evaluates all of those changes separately and picks the best parts to graduate to the next iteration.

If you run this enough times, you can get a much better program than what you started with, and you can discover some pretty interesting things. This is way different from how people usually ingest documents. Usually you have 2 or 3 algorithms to choose from. You have your static chunking of 500 tokens per window with a 100-token overlap, or something like that. Maybe you have some dynamic aspect that adjusts to how much white space or how many natural boundaries it gets exposed to while chunking. Maybe you have some bespoke logic that also adds metadata to each chunk. You basically search over those algorithms with a few hyperparameters per setting, and then you pick the best.
But there’s no way those are the optimal approaches for representing data, right? Plus, people usually invent these based on the very popular retrieval benchmarks, which might look nothing at all like the data you’re using. With AutoIndex you can push beyond that envelope. You can start with one of those as your base program and see how it does.
The hope is that if you parameterize this well enough, you could discover things beyond what even an expert in search could uncover. But the thing is, you don’t even need to be an expert. That’s the beauty here. You can have very little familiarity with RAG and still uncover something much better than these off-the-shelf chunking algorithms.
01:11:13 – What AutoIndex Discovered
Andrew Drozdov
This is just a formal representation of AutoIndex. And here, again, is a bunch of empirical results showing it did really well on the CRUMB dataset. We used CRUMB because it actually came with documents that were already chunked, which we could use as a baseline, or at least in our initial exploration, and also with the full documents. And they talked a lot about chunking in the paper, so we felt it was a good target. Actually, the first author of CRUMB, Julian Killingback, is now interning with me at Databricks. He is really incredible, one of the strongest PhDs right now in the retrieval community.
This, I felt, is such a good example of something AutoIndex discovered, and I felt it so strongly because of the FreshStack paper: as far as I know, we didn’t use this there. FreshStack has a lot of code, and sometimes LaTeX, in the chunks. AutoIndex discovered you could auto-detect LaTeX blocks, remove a lot of the unnecessary cruft and reduce the token count of those chunks, basically increasing their information density. So it’s very intuitive why this particular program would be helpful.
And this is how we saw AutoIndex work on a few different datasets. Sometimes it stalls out: it gets a small improvement and then doesn’t really improve from there. Sometimes it takes a little time to warm up and eventually finds a couple of improvements. Sometimes it gets a huge improvement right away and then doesn’t improve again until later. I actually feel like this is a good shape. I think it means AutoIndex has signs of life, and with a few tweaks it could be really good.
My dream is that we get something like an AutoIndex v2 that is good enough to just become the standard. It should be the default for every single retrievable dataset, public benchmark or private benchmark. It doesn’t make any sense to start with a static chunking algorithm. Just spend a few tokens and discover a better ingestion program on the fly.
Yacine Mahdid
And with code, it’s pretty flexible what they can do, right? I like the LaTeX example because LaTeX is ubiquitous. There are ways of stripping the LaTeX or extracting the information without going crazy. You don’t have to reinvent the wheel: you could just take a package, apply it here, and you should be good to go.
Andrew Drozdov
Yeah. You could actually expand the scope of what the agent can produce. You can let it import a library; maybe there’s already a good LaTeX ingestion library that can make it pretty. You could also let the agent call other agents within the code. At that point, maybe it becomes more like a recursive AutoIndex, or something in the style of RLMs. It’s maybe not rewriting its own harness, but you can let it call little harnesses inside the code, for example to do some extractive summarization of text, which we know helps in a lot of retrieval settings.
01:14:37 – Where the Idea of Writing Code Came From
Yacine Mahdid
One thing I wanted to understand is where the idea of using code is coming from, right? I know you didn’t have that much access to compute and stuff. But why have it actually create the code that does the indexing? After the whole setup, you don’t need to use LLMs. The end result is just code, and it’s static. You can walk through it. How did that happen during this research project?
Andrew Drozdov
I feel like ideas like this were in the air at the time. I forget the name of the work, but there’s some work where they write the code for retrieval dynamically, based on what the query is. So there was that style of work. There was other work, the EnrichIndex paper, where I think Peter Chen is the first author. He does other types of programs: he takes more of the language-model-generated augmentation of your documents.
I always really liked his approach. It shows improvement, but I was always worried it’s not exactly right for every single setting I’m currently exploring. So I liked the dynamic nature of being able to pick something on the fly, and also the idea of augmenting the documents with more logic or more information. I don’t know how to get more specific than that. Sometimes it just comes to you.
Yacine Mahdid
And then you have a bunch of master’s students like, “Hey, let’s test this out.”
Andrew Drozdov
Yeah. It was really a collaboration. We started with this premise: we want to use an agent to improve the ingestion, and we don’t want to output a model at the end. We want to output some code. But it’s super hard to figure out what all the right ingredients are to actually make this work.
We did have various ablations in the paper of how far you can get: one iteration versus many iterations, different ways you can represent history, different ways you can use the analysis side of things. One experiment I would have liked to try is to just use more vanilla harnesses like Pi, and see how far we could get just using Pi to improve each representation program. Our approach is a little bit more bespoke. I do think we’ve made some changes that are well designed for this problem, but I want to know how much improvement we’re really adding, and maybe we’re leaving things on the table for certain datasets.
01:17:37 – How Far Can the Iterations Go?
Yacine Mahdid
The five-iteration thing was very interesting. One of my questions was: how would it go with 10, or 20? Is there a cap here, or is there still some incremental improvement that could happen just by having this software be refined? And how big can these programs get while still being useful? Because technically they could be very complex and very fine-tuned to the data we’re indexing.
Andrew Drozdov
I think we used a 4B, I forget the size of this model. We served the model on the UMass cluster, and that was what we used to propose these iterations. My guess is that those models are a little bit smaller, and they’re not as well suited for really long-context tasks. We had no notion of compression.

So I think we could push it a lot further. We just weren’t really set up to do that in this particular experiment. Maybe that’s what AutoIndex V2 will be: 100 iterations on lots of datasets, maybe all at the same time, so that it comes up with a really compact, powerful program that can generalize to lots of new datasets as well.
Yacine Mahdid
Or the program is gigantic, right? But you don’t have to run everything. You can have the logic route to the right stuff and still have something efficient. You have this piece of software being created that understands how the indexing of this thing works. That was one thing I was very interested in.
The other thing is that, with the results, the programs are fitted to the dataset, right? But if there were enough of these datasets, and the training regimen were tested with a leave-one-dataset-out setup, you could have this kind of novel indexing that generalizes to other, unseen datasets.
Andrew Drozdov
I actually don’t think we did the generalization experiment. I think we pretty much just tuned separately for each dataset, so that is something I would love to measure.
Yacine Mahdid
Yeah, that would be cool.
Andrew Drozdov
And going back to your question about iterations: I said we could push it to 100 iterations, but why stop there? Why even have a cap? We could just have a job that every single day tries to find new datasets and then makes a change. I feel like this could be nearly 100% automated with today’s models.
Yacine Mahdid
Yeah. It’s clearly verifiable whether your program is doing well or not. And at the end of the day, the piece of software you’re creating, even if it’s big, doesn’t matter too much. It can still be used, and it can run very fast.
Andrew Drozdov
It could actually be bigger than the model. If we wanted to push it to the extreme, it could be a multi-terabyte codebase.

Yacine Mahdid
Exactly. And this is also why having a harness that is able to ingest it and treat it as a codebase, literally, matters. You have this harness that can navigate millions and millions of tokens and understands code very well. It’s going to be able to make a change, test it, and then you have this full loop going on.
At the extreme, you could have these specialized bigger models directing the harness, fine-tuned to create these programs efficiently. I think there’s a lot there. I was also very excited when I was reading it.
Andrew Drozdov
As you were talking about this, and based on your question earlier, I think I finally have a good answer to that question. AutoIndex is my answer, or rather our answer, to how we bridge the easiness of the coding agent environment and the noisiness of the unstructured data environment. We can actually just reduce it to writing code at the end of the day.
01:21:55 – When Agents Search More Than People
Yacine Mahdid
It’s software. Well, this is exciting. There are a lot of moving pieces in an information retrieval pipeline. There’s the indexing, there’s the searching, there’s the harness, there’s the RL you can do on it, and there’s the data synthesis to get the dataset ready for training. What’s next, and what are you most excited about in this whole pipeline?
Andrew Drozdov
One of the things I’m really excited about, which I don’t think I’ve been working on enough, is further enabling people to extract as much value as they can out of these systems. I don’t remember when we hit this threshold, but I think at least at Databricks, we hit some threshold where agents are accessing everything more than people are.
I imagine a lot of search engines are also going to be coming up on that threshold soon, where many of the searches each day, maybe most of them, are going to be executed by agents instead of by people. And I feel like we’re actually just going to blow past that: the number of searches we’ll be doing each day will be way beyond what we were seeing with people.

But I think the flip side of that should be that people are the ones getting all the value from those searches. One classic example I talk about is related to my running gear. I was really into running in high school, but I had stress fractures. One of the reasons I got stress fractures is that I was just using these discounted New Balance shoes I got at the store. I never even thought to get running shoes, because nobody told me to.
But if I had some type of agent I was journaling with, for example, it could have hinted to me: “To prevent injury, you should get these shoes.” And I see that as being part of search. We need to find the right context to provide the high-value questions, and then we need to find the right context to answer the high-value questions.
Hopefully that’s sufficiently vague. But we’ve unlocked a lot of pieces even in today’s session. I think we can push on making better search agents, better search tools, and even building the harnesses that construct the data behind the scenes. But that’s still not going to solve the problem of how to make using search easier and easier.
One other thing I want to harp on is that search has changed. It’s different. Many, many years ago, people had to be educated on how to use search engines, and it changed how people thought. There are a lot of papers written on this, where people would offload some of their questions to the community or to these external systems. But they had to learn how to interface with those systems, sometimes in really silly ways, like asking the same question with five different rewordings and hoping you get lucky on one of them.
Now I feel like it’s more about pushing the details in those questions: asking for a specific report with lots of constraints, maybe asking for that report to be generated multiple times per day. And we haven’t figured out how to use the system, or how to change the system to facilitate its use.

Yacine Mahdid
Oh, that’s beautiful. I think it shows there’s so much to do in this space, in every part of the system, and in rethinking completely how we do search. Andrew, thanks so much for taking two and a half hours with me to film this. It was a great pleasure both to read these papers and to have you answer our questions.
Andrew Drozdov
Amazing, Yacine. Thanks for having me. Looking forward to chatting more on social media or email and so on. Always a pleasure.











