

9 Nov 2026 · 57m · 22 chapters

Founding and evolution of Zero Entropy’s search/reranking model stack, then deep dives into rerankers vs “decision models” (JEV), calibrated relevance and “dynamic K”, training methods (Z-Rank/ZEL0 using pairwise preferences + ELO/Thurstone), and how these ideas fit into agentic search and instruction-following rerankers.
Ghita Houir Alami, co-founder of Zero Entropy (met co-founder in 2024), later acquired by Notion; now leads model research at Notion.
Start with rerankers because swapping the last stage is easier than re-indexing embeddings; reranker scores are often not calibrated (typically ~0.4–0.6) so dynamic K needs calibration; pairwise signals are stronger than absolute scoring, and ZEL0 converts sparse pairwise “battles” into pointwise scores efficiently; pointwise rerankers can match pairwise accuracy via distillation; multi-stage retrieval (embedding/hybrid → pointwise rerank → optional listwise on small top-N) is necessary for large unstructured corpora; instruction-following rerankers can redefine “relevance” for memory systems (e.g., “highly allergic to nuts” can be relevant).
Notion used Zero Entropy’s reranker in enterprise search; Notion training includes fast query rewriting models; dynamic K parallels “AI filter”/exhaustive search needs; customer memory system reranker improved nut-allergy retrieval.
Written by AI. May contain mistakes.
Rita shares the journey and founding story of Zero Entropy.
“just the hustle and getting up to the level of coherent voyage and just competing in that search model space.”
Discussion on the development of Rerankers and the decision-making process.
“The idea there was, you know, we were a very small startup and it felt to us that for multiple reasons, Rerankers were better suited as a first model.”
Rita describes the acquisition by Notion and the synergies that led to it.
“We first got to know the Notion team through a business partnership.”
Discussion on the future of model training within Notion and its implications.
“Yeah, so many excited ideas in that I got to see the Notion office in New York City in like 2023 and such a cool office.”
Exploration of Jev vs. cross encoders in model training strategies.
“And a lot of, you know, applied or vertical companies are realizing that you can go from like a general open weight model and just fine tune and post train on specific tasks, which I think is super interesting.”
The concept of dynamic K in search queries and its importance in results.
“in something that looked more like a classifier rather than having like an exact relevance score.”
Explore the concept of dynamic k in search queries and its implications for result relevance.
“So that's something that we were super interested in at zero entropy.”
Discuss differences between pairwise and pointwise encoders and their impact on search accuracy.
“Yeah, so I just that topic is that's amazing that dynamic K and how you can do that with re-ranking.”
Learn about the training strategies for re-rankers and the development of the ELO scoring model.
“And a paper I really like is called MICE.”
Examine the role of synthetic queries and the challenges of generating synthetic hard negatives.
“Like how do we like we had never trained a re-ranker.”
Consider the implications of extending comparisons to sets of three or four in ranking models.
“That could be an interesting idea because obviously the...”
Learn about the complexities of pairwise comparisons in machine learning and their implications for systems.
“But one of the problems with the pairwise comparisons is like we're assuming that there's some form of like transitivity and adding like more comparisons at once may help mitigate that.”
Discover the importance of caching strategies in re-ranking models and their impact on efficiency.
“We thought about a lot about caching at zero entropy.”
Understand the challenges and strategies in managing GPU resources for rapid inference in machine learning.
“It would be like a really long query before that you'd really see any benefit from setting it up that kind of way.”
Examine the scalability issues in re-ranking systems and the architecture needed for large corpuses.
“Yeah, that multi-region latency is super interesting.”
Delve into different re-ranking strategies and their effectiveness concerning precision and efficiency.
“where re-ranking just can't really scale further.”
Explore the concept of agentic search and the integration of re-ranking in enhancing search accuracy.
“So I guess I know that we're kind of coming up on 40 minutes in the podcast and I have a few topics.”
Discussion on the role of re-ranking in agentic search and its effectiveness.
“I think like token cost is also like a topic that's pretty much like top of mind.”
Examining instruction following re-rankers and their application in search systems.
“I think it depends also on like which layer you're thinking.”
Discussion on the integration of metadata in re-ranking processes.
“I think this even transitions to the next topic.”
Insight into the future of AI, focusing on task-specific models and their potential.
“At Weavey, what we've done is we have a boost API where it does like reciprocal rank fusion between the results of a sort with the search.”
Discussion on training specialized search models and the implications of machine learning advancements.
“or it's like this vision of like it's training these small specialized models.”

Get the gist, explore an idea or ask about something said.
On Weaviate Podcast, what are the key points of this episode?
Automatic transcript. May contain errors.
0:00Ghita Houir Alami: Rita, welcome to the WeVA podcast. I'm so excited to welcome you. I'm just such a fan of your work and what you were all able to accomplish at Zero Entropy. I'm so excited to dive into these things with you. Thank you so much for the invite. Happy to be here. Awesome. Well, I'd love to kick it off with the sort of founding story of Zero Entropy is just watching from afar and seeing the content you all were putting out and testing your models and just is such an inspiring story. just the hustle and getting up to the level of coherent voyage and just competing in that search model space. I'd love to know just, I guess, even from the beginning, just this journey of building this.
0:36Yeah, absolutely. So when I met my co-founder in 2024, we were both interested in building more on the infrastructure layer to unlock a lot of AI applications. And at the time, we were thinking a lot about context. So it became more popular afterwards with the whole context engineering buzzwords. But fundamentally, it's a really important problem to solve. And that's how we got into search and started going down the rabbit hole. Initially, we were building the whole end-to-end infrastructure as a search API. And then we realized that the models powering these search APIs are incredibly important.
1:27And we saw an opportunity to do something better. And we were also very excited about training models. So we started doing that. And that's how we released our first Reranker model, which was incredibly successful. And so we just kept going in that direction, training more models, Rerankers, embeddings, and more. And that's how, you know, we were able to get, you know, hundreds of thousands of or millions of downloads of our models and processing trillions of tokens every month. And yeah, that was basically how we got to build all of these cool models at Zero Entropy.
2:09Ghita Houir Alami: Yeah, I guess maybe just a quick question on trading models is, did you start with the re-rankers or the embeddings? and what motivated that decision? Yeah, we started with the Rerankers. The idea there was, you know, we were a very small startup and it felt to us that for multiple reasons, Rerankers were better suited as a first model. First convincing model to switch their embeddings is always pretty difficult and it requires re-indexing their entire corpus, the reliance on our company would have been much, much higher. And it's not something that companies do so often. Swapping a re-ranker as the last step of your system is a lot more compelling.
3:00And it's easier to sell also the story of, you know, you can keep your existing search system and you can just swap out the last step with a simple stateless API call and you'll instantly see better results. And yeah, that framing was very successful. And that's actually how our customers were using our Reranker initially.
3:22Ghita Houir Alami: Yeah, it's so cool. I've heard that like same argument as we talked about maybe building models at WeV8 and that kind of the ease of adding on the Reranker. It's such a cool, I remember like a lot of Coheros early communications around that Reranker was kind of just stack this on top of whatever database you have. And I think there's some interesting work now with switching embedding models that maybe you can have this, like either algorithms that can propagate the new embeddings throughout the rest of your database or maybe like lighter weight translation mappings. That one's interesting too, but maybe before diving into the tech a little further, I'd love to just stay on the founding story.
3:56Ghita Houir Alami: And then this acquisition with Notion, I'd love to know just maybe even starting just from sort of like emotionally what that was like into maybe now the leading the model research team at Notion and just what that whole phase has been like. Yeah, absolutely. We first got to know the Notion team through a business partnership. They were actually using our Reranker in production to power their enterprise search products. And so we really got to work pretty closely with them, understanding very precisely how their system was architected and the tradeoffs that they had to make and the kind of like production traffic that they had.
4:41and really got to know the team there. And then after the Reranker, we also started exploring other models that we wanted to train with them. Namely, models that were able to take an initial query and rewrite it in a very fast way in many different, you know, wordings. So you could run parallel searches and do that extremely well and extremely fast. So that was something that they were interested in. So we, you know, started working more and more closely with the team. And that's what eventually led to the acquisition. It seemed pretty obvious that there were clear synergies between the two companies where they had, you know, incredibly large distribution, data, compute.
5:30And, you know, we had the interest and the ability to train specialized models. and that was clearly something that was a need on their end as well. And yeah, that's how we basically made the decision to join something bigger. And yeah, so far we've been able to completely integrate the company inside Notion, grow the team internally there. So more and more people are involved with model training, which is super exciting. and we already got to work on our first models there. So more to come soon.
6:09Ghita Houir Alami: Yeah, so many excited ideas in that I got to see the Notion office in New York City in like 2023 and such a cool office. I remember being really impressed with like the cafe. They had all these sparkling waters and it's just, yeah, such a cool company and super serious about their search architecture. And yeah, I guess that idea, Notion is such an interesting company, how they combine, like they have like Notion databases. We use Notion a lot for managing our communications at WeVA. And I guess that vision of training models at Notion, that's just super captivating to think about, I guess, the expanding scope of like who trains models, which, you know, like more companies training models.
6:49Yeah, totally. And I think it's been super interesting to see. more and more companies are leaning in and starting to train their own models for various reasons. It can be, you know, having something that's more specialized and by being more specialized, you can, you know, basically go up in the Pareto curve of, you know, accuracy, latency and cost. So that's extremely compelling for companies that, you know, resell tokens in a way. And, you know, having that ability in-house to train models and to go from like an open weight models and make something better out of it is, I think, extremely critical today.
7:37So it's been very interesting to see a lot of companies, not only in Notion, invest pretty heavily in this. And, you know, we might talk about this later, but models like JEV are also, for me, an example of this, where having something that's task specific can become incredibly valuable because you can gain a lot in terms of the cost and the latency because it is specialized and task specific. And there are a lot of such use cases inside companies. And a lot of, you know, applied or vertical companies are realizing that you can go from like a general open weight model and just fine tune and post train on specific tasks, which I think is super interesting.
8:31And yeah, seeing it firsthand inside of Notion, there are a lot of such use cases. And it's been great to hell climb on the Pareto curve.
8:41Ghita Houir Alami: Yeah, just continuing on that, I've been super excited to pick your brain about Jev as someone who's just led the space in training cross encoders. I think you're just the perfect person to analyze this kind of new wave of decision models and Jev. And maybe I guess just to start off, maybe we can start off with the topic of Jev versus cross encoders and Jev as a re-ranker and what you think about re-ranking with decision models. Yeah, totally. In fact, it's pretty interesting to see because when we were working on our cross encoders, we had already seen some use cases that looked roughly like JEV, where some of our customers were mostly interested in something that looked more like a classifier rather than having like an exact relevance score.
9:34The relevance score is useful. And in fact, we also had something that looked like a confidence score. Those are all useful, but sometimes what you really want is just to prune and classify, even like starting from like binary classification. And you can do that with cross encoders pretty easily. In fact, ZRank2 was included in one of the JEV benchmarks and scored pretty well, knowing that it wasn't trained specifically on this, but more on like relevance. Basically, the only thing that you need to do is a little bit of data science to figure out what the threshold value needs to be. But once you have that threshold value, you can basically transform your cross encoder into a classifier and just have like those, you know, positive or negative labels coming out of that.
10:31So I think that's a pretty interesting direction. And in fact, we've been, you know, considering whether to, you know, do another training run on top of ZRank for use cases like this. In our training set, we're not focused on classification per se, more so on like calibrated relevance. But that could be interesting. And I think that's a pretty promising direction. And yeah, again, for me, this is just the tell that like smaller specialized models are going to be an important layer of the stack.
11:13Ghita Houir Alami: yeah i think the smaller specialized model is such a powerful idea it's so cool seeing all these lighter weight decision just the whole space seems to have exploded from type safe and jev to open ai decisions maybe battling it out at the top and then you have all the like liquid just so many different decision models um i guess maybe you want to start um on that calibrated relevance score i was always kind of curious about cross encoders they like output a query candid document output a score like 0.86. And I've always been kind of curious, like where that score comes from, like how you sort of think about that score during training.
11:49Ghita Houir Alami: Is it just kind of something that comes out of the training data of the kind of like triplet loss where you have the positive and negative and you just sort of like, how do you think about that threshold value? Yeah, that's super interesting. Yes, usually if you train with triplet loss, you're not necessarily going to see something that's calibrated. In fact, you can run this experiment where you can take an ensemble of LLMs and with very specific rubrics in terms of how to score the relevance for a query document pair and basically look at the spread and compare that to the spread that you might have from using a traditional re-ranker train on triplet loss.
12:36And you're going to see that for existing re-rankers from most of the companies training them, the scores are typically, you know, between 0.4 and 0.6. And re-rankers are typically not optimized for, you know, looking at the score as an absolute score, but really just to be able to rank the documents without too much attention to the scores themselves. So you can plot the scores outputted from like a Voyage Reranker or a Coherer Reranker. And you're really going to see that it's not going to have like a linear correlation or relationship with what like an ensemble of LMs might output. Or even if you like look at manual annotations, you're going to see the same thing.
13:26And in fact, we have plotted these graphs at zero entropy. So maybe I can link to the blog that has them. But yeah, I think it's becoming more and more important to have a calibrated score, especially if you start thinking about having like a dynamic K when retrieving results from a search query. you can look at it as if you have a calibrated score and you do a little bit of data science as you always should you can basically now have a dynamic k and not return the same number of results every single time but have something that is more dynamic and maybe return like the top three results or the top 10 or 20 post re-ranking based on the actual relevance of of the document.
14:23So that's something that we were super interested in at zero entropy. And yeah, that definitely unlocks using cross encoders as like classifiers, if you're able to, to do that. That being said, even if the score is not necessarily calibrated, you can calibrate the threshold in a way that that still will work.
14:47Ghita Houir Alami: um yeah so many amazing ideas that maybe if i could just build off that last one of the uh this concept of searching with a dynamic k i think it's just so powerful we saw a lot of um there's like the sort of early days of agentic rag a big thing was say my query is uh show me all the houses in boston that are between two million and three million dollars or some query like that, where it's like, I don't want to just see the top five. I need to see the entire list of results. And then there's this world of like AI SQL, where they particularly have like, AI filter is one of these operators. And that kind of has this idea of you're going to apply this AI over the entirety of the database.
15:31Ghita Houir Alami: And yeah, I guess that idea of a dynamic K, it sounds like how search can kind of bridge that gap. And yeah, it sounds like it's just a super powerful thing. And maybe if I can add one more thing at Weavie, we did this thing called AutoCut with our embedding distances where we were looking at like the steepest slope descents. If you'd have like 0.91, 0.90, 0.89, then all of a sudden like 0.86, maybe they'll let me to make it steeper and like 0.82. And then you say like 0.09. Trying to explain this and think of the numbers. But so that would be how you'd cut it compared to like these cross encoders.
16:08Ghita Houir Alami: Yeah, so I guess just maybe that dynamic K kind of what you're seeing with that. Yeah, and yeah, totally, totally agree. You mentioned like exhaustive searches. Yeah, that's definitely something that that could help with. Yeah, cool. Yeah, so I just that topic is that's amazing that dynamic K and how you can do that with re-ranking. And so I guess maybe two things I want to pop off the stack there to talk about like cross encoder is a like point wise encoder. where they have the query in the candidate document. And I'm really curious what you think about pair-wise or set-wise or list-wise comparisons in search.
16:45Ghita Houir Alami: I always thought a cool idea with cross encoders could be instead of just the query in each candidate document, maybe it also takes as input the top-ranked result from hybrid search, like from the first stage retrieval as well as maybe the score it had and it maybe uses that as sort of like an anchor for evaluating this new candidate document. And yeah, I guess generally just this space of like, yeah, going beyond point-wise comparisons. Yeah, that's super interesting. In fact, at Zero Entropy, we did have a pairwise re-ranker because of our whole training strategy, where we first had a pairwise re-ranker that then we kind of like distilled into a pointwise re -ranker.
17:27And we thought about releasing that pairwise for a very long time. In fact, maybe we should just do that now since all of our models are fully open source. I think it's a very interesting idea, you know, from like an academic perspective. When it comes to pairwise, yeah, basically the issue is the compute related to making that happen in like a real life production system. for many use cases, even having a re-ranker is like a pretty big investment in terms of both like token cost and added latency. So even for a point why sometimes the, you know, the cases is hard to make for some real time applications.
18:17So if you have something that's even more compute hungry, that might be difficult to have in like a production system. Although I think that from, you know, like an academic perspective, it's incredibly interesting. And definitely when training our point wise, our goal was to match the accuracy of our pair wise. But we found that through distillation, we were able to like pretty much match the accuracy of the pairwise. So distillation worked pretty well. And so it seemed to us like the pointwise was, you know, the most optimal solution because we were able to approach the pairwise option while being a lot more efficient.
19:10so that's kind of like how we were thinking about it but yeah pairwise with it was definitely slightly better and I think interesting for like the community and we actually might just like
19:21Ghita Houir Alami: release that yeah it's so cool and I think it transitions I guess just if I can add a couple comments on that I think this concept of the computational efficiency is just so fascinating we have these like late interaction models are really hot a popular word where like you're delaying that sort of point-wise encoding. And a paper I really like is called MICE. It's got the, you can have the mouse emoji sharing this paper. And it's about like exploring how much modeling capacity is needed in the cross encoder and ablating like two layers up to like four layers, eight layers. And I really love that one too.
19:56Ghita Houir Alami: And then yeah, like the thinking about pair-wise, adding this extra computation. I'm curious if you could have a late interaction pair-wise, set-wise, list-wise, like where it has applies over vector embeddings and just, I guess the computational space of that is so interesting, but I think probably it comes into the greatest topic, this ZELO. This is just one of my favorite papers. It's so cool. Do you mind taking the mic and explaining what is the ZELO? Yeah. So ZELO was one of the big unlocks and breakthroughs that we had at Zero Entropy. And the idea is quite simple. When training a Reranker, instead of relying on binary classes of positive examples, negative examples, we thought that using a pairwise comparison could be a much stronger signal.
20:56Pairwise comparisons are just so powerful. even like if you talk to a human it's it's so much easier to choose between two things than choosing than giving a score to something absolute or ranking things in like the context of your of your of your brain so pairwise comparison were really the basis of everything and and one of the reasons why we were interested in this was when we started training our Reranker model, our Pointwise Reranker model, and started looking at, you know, data sets with queries and annotated positive, like positive and negative samples. Basically, what you want to do to train a model is to have for each query a negative example that is hard enough so that your model learns anything.
21:55And so when we were trying to like annotate data, if you find like a negative example that's just too easy, you're not going to learn anything. And so you're trying to find a negative example that almost like looks like it's positive, but it's actually not. So it's hard negative mining. And the more you do that, the more you actually land on negative examples that are just positives, that were never annotated. And your model actually learns less and less, which is so interesting and is just a symptom of contrastive learning and the available data sets. And so we thought, OK, one solution to this is just doing pairwise comparisons.
22:37If you do pairwise comparisons, the signal is very clean. Um, so yeah, you can train a pairwise re-ranker in that fashion, but then the question becomes, how do you transform, um, preference, like pairwise preferences into an absolute point-wise score? And that's how we were reminded of ELO and the Thurston model, um, which is basically the statistical model that allows you to turn a lot of these pairwise comparisons into one single score. So it's very similar to, you know, how like chess ELO works. And what's interesting with the ZLO method is that you might initially think that it's going to be incredibly compute intensive to have like all of these pairwise battles.
23:23But you can prove that you can have a pretty like sparse sampling of all of these pairwise bottles and still get enough signal to basically fit your model and find your ELO score. And so, yeah, we did a bunch of research in that to figure out what was the most effective sampling strategy and all of the requirements such that we can basically choose which pairwise battles to make happen because they're, of course, expensive. And yeah, from all of these pairwise battles turned into an ELO score, that's basically how we can create a point-wise model from all of these pairwise battles. And that was roughly the training strategy for Z-Rank 1 and then Z-Rank 2.
24:17Ghita Houir Alami: Yeah, that's awesome. I think ELO ratings are so cool, whatever the context is. And yeah, this idea of having, I guess, like just starting from that insight of hard negative mining and that it's a totally intractable problem for humans to really go through all of the candidate documents. Exactly. And we consider it for some time. Like what you need to understand is like we came up with this by pure like trial and error. Like how do we like we had never trained a re-ranker. So we were trying to figure out how do other people do this and what are the most efficient ways to do this. And so to have like extremely high quality training data, we initially considered just like going the normal route and maybe even hiring humans to annotate the data.
25:10We even like annotated data points ourselves to like understand how this all works. but yeah you need to understand that for search in particular it's just it's just completely impossible because for each question you have a pretty large corpus and search is only becomes hard for large corpuses if the corpus is too small the task is too easy and so you need a way for humans to have a question and then go annotate exhaustively a giant corpus which is pretty much impossible and way too expensive um so yeah it it was just like the only way to have high quality high signal data for for training yeah super cool i guess like maybe staying on the training data
26:02Ghita Houir Alami: aspect of it i'm curious about like synthetic hard negative generation or like like like generating synthetic documents and maybe that those could serve as the hard negatives? I don't think that idea is that particular. I think the use of synthetic queries is extremely popular, but I don't think like synthetic hard negatives is popular. Have you ever considered that idea? I know, a little random. Yes, we considered that idea. We did a lot of research on synthetic data. we did the obvious thing as you said of synthetic queries so going from like one document to generating a pretty hard query for that specific snippet we also did what you mentioned in terms of like writing a hard negative sample.
27:00We experimentally, the like LLMs that we were using were not good enough to produce signal that we could clearly see the model was like learning from. and so yeah falling back to to our original strategy was the most efficient way yeah awesome
27:22Ghita Houir Alami: and uh sorry to distract with that thought i maybe i want to pop back up to z z elo and um i'm curious about extending beyond pairwise comparisons to maybe having like sets of three or four in the comparisons and how that might change the sort of elo model and whether that be more efficient or maybe more effective? Oh, that's an interesting idea.
27:54That could be an interesting idea because obviously the... I mean, it will probably make it a lot more compute intensive as well. But one of the problems with the pairwise comparisons is like we're assuming that there's some form of like transitivity and adding like more comparisons at once may help mitigate that. We haven't really explored this, but could be very interesting for Zillow 2.0.
28:30Ghita Houir Alami: Yeah, the transitivity point is so interesting how you have this connected graph where it's like Connor versus Rita, Rita versus, I don't know, Bob. And then therefore I've compared against Bob through the link and that's a super cool part of it. Yeah. Yeah, amazing. I guess so maybe kind of popping back up the stack of talking about kind of JEV as a re-rank or just broadly this topic of re-rankers and these models. And so this is a bit of a pivot in topic, but I'm curious about this idea of the sort of shared pre-fill cache idea where you can, I think my understanding with the JEV models is that you can, you can pre-fill, you have the pre-fill cache of like the state and then all the decisions are in parallel.
29:15Ghita Houir Alami: And I may be curious if that relates to serving re-rankers and if there's a similar design there of caching maybe the query and then all the candidate documents and how important that design is to the systems of like serving these re-rankers. Yeah, super interesting. We thought about a lot about caching at zero entropy. for the use cases where Reranker was used, there was not a clear way to make the most of caching the queries. But yes, definitely for decision models like Jev, when you have a clear query that you're always trying to basically replay on various inputs, definitely caching will provide a lot of...
30:09efficiencies. And our re-ranker does not support that. But if we were to actually retrain it for a decision model type of architecture, we would definitely investigate that.
30:25Ghita Houir Alami: Yeah, I guess the bridge is maybe like the query would have to be maybe like 500. It would be like a really long query before that you'd really see any benefit from setting it up that kind of way. Exactly, exactly. So like Reranker did support like custom instructions, but they were never, it was never really worth it. But for something like a decision model, it definitely starts making more sense. yeah super cool i i guess i just that topic of this kind of particularly what's happening under the hood of inference with these decision models and re-rankers yeah i just think that's a super interesting one and um maybe like one more question in this sort of headspace of like the infrastructure around uh re-rankers decision models and zero entropy i'm curious uh like how you think about sort of like gpu resources and what that what kind of i guess the gpu infrastructure look like?
31:20Yeah. In fact, a lot of customers like switch to using Z-Rank because of the latency improvements that they saw from using our model. We basically like we're handling the inference ourselves. And so for the use case of Rerankers where you have, I guess like the format is pretty specific compared to like a regular like LLM in the sense that like you have so many input tokens at once and you're trying to like respond as quickly as possible so like the batching logic can be optimized for like this type of use case and so yeah we did a lot of work in like you know even quantized the where training and the way that we were serving and like batching the requests and spreading them across GPUs that we had all over the US to make sure that we were responding quickly enough.
32:28And that was a clear differentiation for zero entropy compared to other models just because of how much we invested in this and the latency that we were able to provide.
32:41Ghita Houir Alami: Yeah, that multi-region latency is super interesting. I just got back from our company trip in Barcelona and it was about, we were about 30 minutes outside of Barcelona and I was kind of becoming more aware of, oh, I'm sending these requests over to US East 1 and being reminded of that. But yeah, it's super cool that kind of GPUs. And how about just like getting access to GPUs? Like, is that a bottleneck or is like, like how does, how is the pricing on GPUs when you're kind of building like Reranker as a service? um yeah great question uh we were getting gpus from various sources we had like a minimum capacity that was you know like monthly reserved instances um that we directly rented from like data centers um the issue with that was that um we didn't have like the largest clusters that's let's put it that way.
33:41And so, you know, our neighbors were like these giant companies. And so we would like regularly see like networking issues and like drops, which was like a pretty big problem for us. We were also using some of the inference providers, you know, as what we call it like a slow mode, meaning that there was like a cold start time and this was really for like peak usage or like very bursty spiky type of traffic that we would like sometimes see and so that's basically how we architected it so with like you know our baseline capacity that was monthly reserved and we were able to get like pretty good pricing because of like the fact that it was like reserve capacity and that we were like renting it without like any middlemen.
34:42And then like on top of this, yeah, we were basically paying for like the additional capacity needed on top of this. It was like, yeah, pretty, pretty interesting to navigate this and look at like, you know all of the shortages and of course like priority given to like these like giant labs and and companies um so yeah for inference having like a pretty small um cluster compared to these other companies did lead to some like inefficiencies and um like yeah as I said like a lot of like networking issues and and random drops um because of that but we made it work
35:28Ghita Houir Alami: Yeah, it's so interesting. My understanding is kind of as basic as you have this sort of model where you have like a pool of always on, always ready GPUs and then you maybe use something like modal or something we, I feel like we have a good relation with modal at Weave8 and they have this great cold start where if you want to get 50 GPUs and maybe it takes like a minute or so to like spin it up and that's as deep as that. We're also using modal at 0NGP. but yeah we have like a list of like fallbacks just in case on top as well yeah awesome yeah it's super interesting um yes i'd love to maybe um pivot sort of out of the infrastructure and back to just sort of talking about topics around re-ranking um i uh one topic i'm curious about um there is this paper called drowning in documents that kind of suggests that there is like a limit where re-ranking just can't really scale further.
36:24Ghita Houir Alami: And I'm curious about like what you're seeing with re-ranking stages, like maybe following cross encoders with list-wise re-ranking. And I guess generally like that sort of school of thought around first having like initial retrieval then cross encoding and then maybe list-wise re-ranking. And just if you have a positive opinion of building search systems that way or negative. um i think i have a positive way of like this is probably like the right um the right system and the right architecture um there was like you know a lot of debate around like you know like grab just works and like all all of that um i don't know if this is like what what you're referring to um but for like pretty large corpuses of like completely unstructured data um like what makes more sense and what just shows to have like the highest like recall precision um clearly seems to be like these like multiple steps um you know for various reasons like i think you do need a mechanism like on top of like your initial um first pass um search embeddings are not going to be enough for like the whole like dimensionality problem um where if you're trying to encode information into like an embedding with like a certain number of dimensions um you can like prove like there were some papers about this as well um you can prove that you know you're never going to be able even for like a small k um to retrieve all of the documents in the right order and so having like a step after this is definitely necessary.
38:13I think that point-wise re-rankers are simply like the most efficient way. They can, you know, almost match the accuracy of like pair-wise or list-wise. Of course, they're not as calibrated and they're not going to be like as accurate. it um but i think that um there's still like the most efficient the most efficient way to like reorder results from like the initial um search pass and solve some of these problems um and so yeah i'm pretty bullish on this on this architecture and um yeah i think you can like increase your top k in terms of like how many documents you're like re-ranking and that's also a trade-off like you could just like re-rank your entire corpus if it was like small enough and that would be great but yeah finding that that trade-off on top of like an initial like clustering face is I think a like a pretty solid architecture
39:21Ghita Houir Alami: yeah I think like that idea of re-ranking the whole corpus is so interesting because it totally changes the shape of the underlying like vector search problem if you're going to be returning like 2 000 documents compared to like typically like it's 10 or 100 and yeah there's so many i guess like just the nugget of being able to distill the pairwise model into z rank i think i think that one's really powerful we we did a study at weva where it's been it's been sitting in archive for two months i love you referencing it but hopefully hopefully they decide soon but um where we where we did find positive results adding this list wise stage on top of the top 100 from z rank ranking from the top 2000 from hybrid retrieval and and and then we found that um that the list wise re-ranker didn't scale very well like it worked well with the top 100 documents but then that top 500 it just that was too overwhelming for it yeah that's that's the issue that's the issue is like like intuitively you can get why like that would be hard to hard to scale um and like even like lead to like hallucinations of like documents that like are not even there like i imagine like some weird stuff happens after a certain after a certain limit um yeah i think yeah maybe like an even like idealized architecture like even better would be like you do your first pass and And then like pointwise re-ranker.
40:49And then like if you really need it, just like listwise re-rank the top, I guess like a smaller N. In like in practice, we found that in like most use cases, you don't necessarily need like that much precision in like your top 10 re-ranks. And you're mostly trying to prune 90 % of your initial search step. So there might be use cases where re-ranking the top 10 is really crucial. But I don't think they're as frequent. Yeah.
41:34Ghita Houir Alami: Yeah. I just think that's so interesting. and it maybe makes you think about like these long context LLMs and how they play with search and maybe that relationship isn't as adversarial as it's often like advertised as. Yeah. So I guess I know that we're kind of coming up on 40 minutes in the podcast and I have a few topics. I think this topic deserves more depth, but there's maybe like four more I want to get to them. So I think the next topic, maybe also talking about re-ranking is agentic search. and yeah we mentioned earlier kind of the success of grep with agentic search bm25 and the argument is kind of like the agent is doing this iterative learning about the corpus while it's searching and it gets this great feedback from grep or bm25 because it has like this no matches found and there's a pretty cool paper that's called the questions gambit and they like stay on this chess zelo the questions gambit and it's exploring like using re-ranking at like the first step of agentic search like really spending compute on making sure that first search is like really accurate and i guess i'm just curious what you think of the role of re-ranking in agentic search yeah great question i mean i think for like i think the majority of search is going to be agentic search um so i just like don't even like this discriminate between the two that much anymore um the way that i think about it is like
43:09what you care about um is like what is the fastest way and like most token efficient way for your agent to get the context that it needs. I think like token cost is also like a topic that's pretty much like top of mind. And so minimizing like the number of steps or like just generally the number of tokens that your agent needs to take to gather the context that it needs is like pretty important. And so I think it's definitely worth spending the token budget on like a lightweight re-ranking step to make sure that your agent gets what it needs like in like the fewest number of turns as possible rather than like having an approximate search where your agent is going to keep going and going and going at it even if it's like a bit faster I think overall it might just cost you more very expensive tokens from the LLM.
44:14And so I think that's also shown by, I remember Cursor like a few months ago showed that with Semantic Search, they were actually able to prove that Composer, like their agents were using fewer tokens on average and that there were fewer undoes also, which means that it was also higher quality. And I fully believe that. And I think providing the best tools to your agent is, that's what they deserve. And that's also what allows them to, yeah, like find information faster. And so, yeah, I think the Remaker step is definitely worth it.
45:05Ghita Houir Alami: yeah i think like i guess for me i'm kind of these days i've been thinking that agentic search is only useful if you have multi-hop queries and then i even think that it might not even be needed then so i'm pretty bullish on the kind of you still have the learning to search component which i think is what people love about agentic search because you uh you like rl the llm in the search loop and then it like writes really great search queries and maybe has like developed a domain understanding and therefore it writes these great search queries but you still can like have that without the iterative looping which is like 100 of how i think of the agentic prefix in this but i feel like you can still learn to search with a query writer and then you get a massive pool and hit it with some with the re-ranking and so i kind of i guess i'm not really sold on the agentic search personally.
45:58I think it depends also on like which layer you're thinking. Well, I might be biased from like being at Notion for the past few months where I like mostly look at the agentic harness that they've built. And I do see that, you know, for example, if we're comparing different models and the way that they use this harness, some of the models are lazier and will, you know, do fewer searches or fewer queries. And that does lead to overall a slight drop in like the overall quality and like task completion for certain queries. And so I do perceive that for the models who are like searching more and gathering more context, overall, the quality of their answer is going to be slightly higher.
46:54At least that's what we see like for our harness. But it might be the case that like for other applications, if it's like a human asking a question and just wants like a quick answer, definitely in like the AI overviews and quick answers of the Notion product, it's like not a harness and it's just like a simple one step search that powers that. So I guess it depends on like the product layer.
47:24Ghita Houir Alami: Yeah, super interesting. I think this even transitions to the next topic. I wanted to ask you about these instruction following re-rankers, because I guess like the connection is, I guess something that is really cool about agentic search. But again, I kind of like will say that like a query writing inference that you put at the top could also write several queries. So you can still kind of get this notion of like these results came from this particular query. and that maybe is like an interesting bit of information to add. But like these instruction following re-rankers are pretty interesting where you can sort of like change the notion of relevance.
47:58Ghita Houir Alami: I guess the best example is I'm looking for a similar query instead of I'm looking for a relevant document. Like if you're searching, yeah. Yeah, yeah, yeah. It's super interesting. In fact, we discovered the use case for instruction following through one of our customer who was building memory systems. And they had this issue where basically the question of the user was, why should I cook for dinner tonight? And in the list of possible responses, there was like, I'm highly allergic to nuts. Like in a traditional sense, I'm highly allergic to nuts is like, it's not answering the question or it's like not typically what you would call relevant but in the context of like a memory system it's like probably the one of the most relevant things that you would want to give your system to help it give like a grounded and useful answer um and none of the you know queries that we were training on like looked like this um and so like clearly the the Reranker was failing on this and giving like a pretty low score to that snippet.
49:15And so, yeah, I think it's exactly like the use case for instruction following is slightly modifying what you mean by relevance. And, you know, given enough training data that like has various definitions of what relevance means and additional instruction in the context of the Reranker, we clearly saw a drastic improvement in queries like that. And yeah, that was like super interesting to see. And interesting to see that the notion of relevance itself is changing in the context of the types of systems that we're building. And like a memory system is pretty new and not something that you would have imagined like searching across like before this whole like era.
50:06Yeah, amazing.
50:07Ghita Houir Alami: And I guess like my sort of selfish question is someone who is building search systems and are WeVAs query agent, but not quite at the modeling layer. I'm curious if you think that you could encode the ranking instructions like with the query, like say I just like append it to the end of the query, or if it will be like the interface to the re-ranker APIs will be that I have to pass in the re-ranking instructions separately.
50:34Ghita Houir Alami: um i'm sorry if that's not if that's too ambiguous like uh yeah could you repeat the question sorry sorry uh like if i could just send the re-ranking apis the query plus the kind of ranking instructions uh-huh i guess you could just i guess you could just parse it out with a string like i think that's what voyage does they have like some delimiter where you just parse out like hashtag hashtag hashtag oh yeah what we did at zero entropy is basically we trained with like various formats where you can like use like xml or markdown or like just like hyphens or however you want to do it like bullet points um and we just train on like all of these formats so um there was like not even like a need to like parse it in in a specific way and just like having a clear delimitation between like where you put your instructions and like where you put your queries was enough for the model to figure it out.
51:29Ghita Houir Alami: Yeah, sorry, that was a question that as soon as I said it and heard it said, I realized it was a bad question. So my next question, I think that transitions from this nicely is, how do you think about metadata with re-ranking? Because I know like with deep learning, we kind of have this setup where we have chunks of documents and we're training with that but then in the real world there's this interesting thing where you bring in like price or if it's in stock or the color and i guess i was always really curious how the how re-rankers hint like how you have like maybe like json format like just i guess and how that goes into the training data and just i guess that topic of metadata and re-ranking yeah that's interesting we thought about it a little bit um but it seemed like for you know categorical features like this maybe it's easier to have like a separate model learn these patterns and use the Reranker more as like an input to that model and that would just provide like the relevance of the snippet but you know taking that into account when like Reranking like maybe with like an XJ Boost type model or something like this, we saw a few of our customers doing something similar.
52:48And we had not like investigated too much time in like adding arbitrary metadata because it seemed like this like roughly worked. So yeah, that's what I think about it.
53:00Ghita Houir Alami: Yeah, super cool. At Weavey, what we've done is we have a boost API where it does like reciprocal rank fusion between the results of a sort with the search. I think that's pretty cool. and then with our query agent we can like write the particular boosting filter and yeah that makes sense yeah i think it's the xg boost thing is kind of a bit of overhead like you need to maybe train it a little bit which i yeah yeah i think yeah yeah what i mean is like yeah you have like all the ways of like including it in your ranking without necessarily including it in your re-ranker score directly which i think is like harder and more like fuzzy to do when you can do it like WeVA does it or like with a trained XGBoost maybe.
53:43Ghita Houir Alami: That's so cool. Rita, it's just so awesome going through all these different re-ranking and search topics with you. A question I love to anchor the WeVA podcast with, it can be about search or whatever is interesting you. As someone who's working in AI, leader in the space, what directions for AI excite you the most? I'm very excited. We talked about this a little bit, but very excited about task specific models, you know, taking open way models and then like posturing them for like very specific use cases that are common, repeatable inside a company. I think that has like a lot of promise and is clearly like more optimal than using like a very general model.
54:36And we've been doing this at Notion and that showed like great results. We're seeing other companies doing it as well. And it's so exciting to use AI to train AI models. And that's becoming easier and easier. you see like you know other versions of jev got released like literally two weeks after the initial launch um and i think seeing that you know iteration process becoming like shorter and shorter is super exciting um and yeah empowering companies to train their own and post train and
55:10Ghita Houir Alami: use open weight is like super cool it's kind of like an interesting subset of like the recursive self-improvement idea that it's not it's like that they're training smaller models and like making the systems more efficient which is sort of like in turn improving like the agentic harness and yeah totally i mean you could argue like the small models like luna like maybe are like an initial use case of like rsi it's like the big model training the small one in a way um and yeah I think more of that inside other companies than the labs is very cool. Yeah, so interesting. Like what particular shape does RSI take on?
55:52Ghita Houir Alami: Like been looking into this and like with the framing around like discovery and it's like auto research and you just kind of think of it like it's discovering new knowledge or it's like this vision of like it's training these small specialized models. I also like this machine studying vision where it's like it's studying the corpus and it's maybe training specialized search models is like a part of it studying and just yeah yeah it's such a cool space so well uh amita thank you so much for joining the weva podcast uh what you and your team accomplished at zero entropy i'm sure to do amazing things at notion now it's just such an inspiration to everyone working in the space and just so grateful for your time and for joining.
56:29Ghita Houir Alami: Thanks again. Yeah. Thank you so much. Bye.
Ghita Houir Alami, Co-Founder of ZeroEntropy and now leading Model Research at Notion, joins the Weaviate Podcast to discuss training rerankers, calibrated relevance, and where search models fit in the age of agents. The conversation opens with the ZeroEntropy story: starting from an end-to-end search API, realizing the models powering it mattered most, and shipping a reranker first because swapping in a stateless last-stage API call is far easier for customers than re-embedding a whole corpus. A partnership powering Notion's enterprise search, plus fast query-rewriting models for parallel searches, led to the acquisition.From there, the discussion dives into small, task-specific decision models and turning cross-encoders into classifiers. Most rerankers trained with triplet loss cluster their scores between 0.4 and 0.6, but a calibrated score unlocks a dynamic K, returning three results or twenty depending on actual relevance, a natural partner to Weaviate's autocut. Ghita then explains zELO, the method behind zerank-1 and zerank-2: hard negative mining eventually surfaces unlabeled positives, so ZeroEntropy instead trained on pairwise comparisons, fit Elo scores through a Thurstone model with sparse sampling of pairwise battles, and distilled a pairwise reranker into an efficient pointwise one that nearly matches its accuracy.The conversation moves into infrastructure, from quantization-aware training and reranker-specific batching across US GPUs to blending reserved capacity with Modal for bursty traffic. Ghita makes the case for multi-stage retrieval, since embeddings alone hit dimensionality limits, with a small listwise stage on top only when needed. On agentic search, she argues a lightweight reranking step saves expensive LLM tokens, citing Cursor's finding that semantic search made Composer use fewer tokens with fewer undos, while Notion's harness shows that models that search more answer better. Instruction-following rerankers redefine relevance itself: for a memory system, "I'm highly allergic to nuts" is the most relevant answer to "What should I cook for dinner tonight?" Metadata like price is often better handled by a separate model such as XGBoost or Weaviate's Boost API.The episode closes on the excitement of post-training open-weight models for repeatable tasks inside companies, RSI and using AI to train AI!