Skip to content
⚡️Ranking Agentic LLMs — Pratik Bhavsar, Galileo episode artwork

Jul 14, 2025 34 min

⚡️Ranking Agentic LLMs — Pratik Bhavsar, Galileo

from Latent Space: The AI Engineer Podcast Hosted by Latent.Space

Watch the full show on YouTube: https://www.youtube.com/watch?v=Mp0gxUunnWI

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

⚡️Ranking Agentic LLMs — Pratik Bhavsar, Galileo

0:00 34:10
of matches

Transcript Auto-generated, may contain errors

Hey everyone, welcome back to another Latent Space Lining Pod. This is Alessio, partner and CEO at Decibel, and I'm joined by my co-host Swix, founder of SmallAI. Hello, hello. And today we are excited to talk about agent evals and leaderboards. Prateek, I think I'm missing out the intro, but Prateek Profsar, you're from Galileo Labs and you worked on agent leaderboards this year. Hey folks, it's so cool to be here and I'm excited to chat with you on everything about agents today.

Yeah, awesome. Yeah, so I think, you know, I first got notice of this thing in our Discord when Erin Staples, who I think works with you guys, posted it and said that she was also contributing to it. I think the broad thing is there's a big shift in evals this year, I think, from just model evals maybe. Which quickly gets saturated. I think Ella Marina also had some controversies. And I think more generally, people want agent evals anyway, where they are evaluating the ability of models to do real tasks. And instead of testing knowledge, they're actually doing tool calling.

um utilizing context very well that kind of stuff so um yeah i think one of those things where this is one of those things where i think there's a lot of fresh uh area and potential for progress if you can do a credible eval and the other thing i like to see is an eval that has a cost awareness component uh because i think uh you know people don't really uh stay very honest with like oh yeah like we spent a lot more tokens we spent a lot more money on this agents and we did better but it's not really clear like if the other comparison could also just do the same thing like just think harder and also have the same performance 100%. Yeah. So we have been hearing from our customers that they are now moving towards agents. And it became very clear to us that last year we did a rag evaluation because that's what we're discussing more with the customers. But we quickly understood that this is going to be a year of agents. And what we have understood from our previous experiments is that it's not necessary that what you see as top models in, like, LA Marina or other specific evaluation or general evaluations, they might not be also the same ranking for other tasks like agenting tasks.

So that was our goal, very fundamentally speaking, that we want to get very specific insights apart from just performance. And cost was the other thing that comes up a lot with enterprise customers. And that was the second focus, essentially. And then there's SLM versus LLM kind of debate, small models also catching up. And there's the big one, open source versus private. So those are the dimensions we were interested in. And in the email itself, the big thing that you highlight is obviously tool selection and tool use, and then single versus multi-turn interaction. Maybe for people that are just learning about the leaderboard now, just give a high-level overview of what are the key things that you test for. Sure.

Asian leaderboard is kind of an eval harness specifically created to test LLMs on hundreds of domains. We know that there are certain research papers from top companies and research institutes from Berkeley, from Salesforce, from other companies which are... targeting certain domains for evaluation but what our goal was that let's take all of these benchmarks because it's possible that certain models are good at certain data sets there might be issues of leakage also so we wanted to create a as much possible holistic benchmark by taking on data sets slices on single turn multi-turn and also on like different kind of edge cases like there is some information missing for the parameter the tool itself is missing and long context and all those problems all at once called composite scenario all those things we wanted to take from these different data sets we did filtering on it for as hard as possible um and then we created 14 small data sets uh and then evaluated lm specifically for tool calling uh and we use it used a gallius metric called tool selection quality which is an llm judge based metric powered by gpt4o and it has multiple judges so that we get high performance and that's how we kind of

get the score for each sample and we aggregate for a data set and then we do average over the data set and that's how we get the overall score for the ranking but yes customers sorry readers can also go through particular performances or certain data sets as well um apart from that uh we were pragmatic about uh selection in a way that we were very interested in how the small models perform as well as open source model performs because we know that there can be interesting insights historically what we've seen from our previous initiatives is that okay maybe the best GPT or best cloud is the top model. But there might be a very small gap with the model just below it. And then it becomes a cost-performance trade-off so that users can kind of select a model which is just slightly worse, but also gives them a similar performance. And there can be some hidden models that nobody's talking about because it's all about the latest top releases and not about like the mid-tier or slightly lower-tier models from other providers. And sometimes it's just they haven't got enough traction on social, so they might be just missing from the discussion. So we try to find this kind of models.

get insights as much as possible so that that was the whole initiative uh we launched in february this year uh previously we had done rack specific uh evaluations now a small update on the agent leaderboard also like we are going to do a v2 of it because we find certain issues with this evaluation and let's talk about this more at the end of the podcast like what's next coming uh we can dive more into that um what are some of the surprising results for me it was mistral small being the best open source model above 4.0 and deep seek p3 um anything else that jumped out to you Oh, yes. So first and foremost, I would say that I was expecting GPTs to perform the best because they kind of pioneered the tool calling, function calling support, and they have been working on that for so long. There was some criticism around Gemini models, although they were catching up. And I was very surprised to see when we released this leaderboard. Of course, there has been some shaking of the leaderboard also later on. But when we released, we found that Gemini models are performing really good and they were extremely...

cost efficient at the time compared to the second and second model like gpd4 at the time and so it became kind of a no-brainer that if anybody wants top performance they can just directly go and go with the gemini models and they just not only released like the pro model they also released the flash version later on and flashlight but the flashlight is a very interesting model in the blog we have the models when we release this little bit what in the on the original leaderboard. We also have Flashlight, which nobody talks about, I think, even now, but I think it's got a very decent score, which is, like, in the top five models. It's an extremely cheap model. Like, it's so dirt cheap that it makes a lot of sense. Only model that is cheaper than it is and performance is from Amazon, which also nobody talks about. So we found these more interesting models that worked surprisingly well. Then another surprise for me was that the reasoning models were not performing well enough. They had certain kind of limitation. When we probed into it, like, why are they scoring less overall? They were, like, the O1, the O4, O3, they...

they're not performing well specifically for multiple tool call outputs that you have this request and it requires either the same tool being called multiple time or different tools being called all at once and they were outputting only single tool call and because our evaluation required that okay all the tools should be outputted at once that's the instruction as well in the prompt it was not falling and it was getting low score so because of certain inherent characteristic of specifically o-series model we did not find them well to be performing on this kind of data set we had like multiple data set on the multiple tool output And that brought down the score for this model. And of course, they're extremely costly, right? So then it becomes straightforward that you should not be using this for tool calling and instead go for the regular models probably.

So apart from that, on the open source side, I would say that I was very impressed by Mistral's entry into the ecosystem. 3.1 just straight away went up and it also very cost efficient. So I think people might have known at the time. And in the launch blog also, there was not much discussion on tool calling, but the model performed very well on our benchmark. You mean Meta, right? You said Mistral, but you meant Meta? No, I meant Mistral only. Yes, Mistral 3.1 performed really well on our benchmark. And of course, the other surprise was that all the LAMA models were not performing well on our benchmark. 3.3 and even the LAMA 4.0 were really...

performing extremely poor. Oh no. And that was unbelievable. It felt like they were not tuned for tool calling at all in some way. I mean, historically, it's all historical, right? We have certain biases and we're like meta one, the llama one was great, llama two was great, three also was great. And then suddenly something happened and it went downhill. So these are like surprising results for us, I would say. When we started the leaderboard, plot 3.5 was somewhere in the middle. It was really good at certain other things, but for tool calling, it was not awesome. But then when we released the leaderboard and just in a week, they launched 3.7 and that went straight up and nobody has beaten it so far. We are not equal to the latest one, like a QN model.

And also the latest Mistral models and not the O3 Pro models, which just came out in the last few days. They're not evaluated, but it held the fort for many, many weeks. So that was very impressive release, I would say. Awesome. You know, I think that's a very good overview, very good findings. I think people can use this leaderboard to pick out what base model that they want to use for their agents. And I think that's a really good starting point. I wanted to dive in a little bit on a few of the metrics that you chose. So first of all, did you just rerun all these evals, basically the BFCL, the XLAM?

Or do you take it off of whatever they publicly report? No, we actually took the data slices from the original data set and then ran it ourselves. We got the outputs and then we validated with our metrics. So it's fresh. Everything is fresh. Okay, everything's fresh. Yeah, as long as it's comparable. Basically, do you think that these are... Do you have any comments on just BFCL versus XLAM versus your own TSQ thing? How do they differ in methodology? What should people know about their pros and cons?

So I feel like they're very similar in nature. It's just that the data set is from different domains. And certain data sets have multi-turn conversions available, while certain do not have it. I do not remember exactly which one has it and which one doesn't, but there were just discrepancies. And we really enjoyed, like I really loved TAU benchmark also, because it had particularly hard evaluation data sets, and a lot of models had some struggle over there. I think Clay from Sierra actually just released an update to TAU bench for some reason. Oh, is it? Yeah, Alessio's best friend now.

Ah, yeah. So he released Tau2. Tau2, wow. That was not aware. It was yesterday. I'm just happy to see it. To coordinate, guide, and assist the user. Wonderful. So TauBench, I actually didn't know it was from Sierra, but it's actually very, very influential. Can you talk more about TauBench?

Oh, yes. So essentially TauBench, when it was released, I mean, yes, the TauBench is for two domains, the test agentic capabilities for two domains, which is airline and retail. And their setup is that they have very long prompts in the beginning with a lot of requests. And then you have these tools defined and the tools can interact with certain databases for read and write operations. And it is predefined that once the whole agentic task is done, then they will validate on the final edits made and they will check for the expected value in the data sets.

in the database, which are basically CSV style of files. And in that fashion, they will validate whether the task was done or not. So it's pretty well-defined such that you get a deterministic evaluation all the time. That's the beauty of this. And it's domain-specific, which I think is missing from other evaluation data sets. And that is also one of the themes for our V2. Because I think people don't just come from a general mindset, right? People in the industry come from, let's say, I'm from healthcare. I want to see if these models work for healthcare or not. People are coming from investment, finance, insurance industry, and they want to know.

that is, are the models ready for my domain or not? Because we all know that things work on the general domain side. And when you just put it on the internal data, things start to blow up with the internal terminologies and the cases that happen. So I think that was the beauty that they specifically targeted domains. I don't know if they might have expanded domains in this because two was, I felt like less, but it was a decent start. It was more about the methodology rather than the domains I faked at all. It was very hard. Yeah, so tau squared, you know, just kind of looking at it now, tau squared doesn't seem like it expanded domains. It just, they expanded the way that they interact with the user.

So some kind of... Oh, they added a telecom domain. Okay, there we go. I see. But it seems like the emphasis was more sort of co-piloting rather than two-call. They call it dual control. Yeah, we'll see what this is. It's obviously very new, so I just happened to see it the other day. Yeah, yeah, definitely put that in your V2. Absolutely. Yeah, I just wanted to go back to...

TSQ. I think that's the other sort of maybe novel part. I think a lot of people have queries about LMS Judge. And yeah, just tell us more. Do you have any calibration errors? Should more people adopt this kind of approach?

Indeed, I agree. LLMs have been notorious with their own biases, right? We have seen historically, they have issues with long contacts and they have issues with certain kind of outputs. They prefer, let's say, LND outputs and stuff. So our philosophy in the company is that any metric that comes out, which is a Galileo metric, we do extensive research on it. We create very hard data sets internally and we evaluate them. We annotate them and check for correlations. And only once we feel comfortable, then only we release it. And which is usually,

based on the correlation scores like AUROC scores that we find. If they are high enough, only then we release it. Otherwise, it goes through a rigorous process of prompt optimization. So we allow people to use any LLM with the metric. And so because LLMs keep on improving, the metric also keeps on improving. And then the prompts is what we kind of...

The prompt is where all the research goes through and we've seen tremendous value in that. And yes, people would definitely have skepticism. A lot of people, a lot of our customers also have that skepticism. Some are still stuck on blue and root scores, which is surprising because they think that LLMs are not there yet. But what we try to do from our side is essentially we try to follow the best practice of prompting. We try to exploit the reasoning as much as possible from these LLMs. And then we use basically self-consistency by using multiple outputs and then taking a majority voting over there.

People have flexibility on these things. They can select the LLMs they feel they want to use. If they want to use much more powerful LLMs, go ahead, you can customize it. If you want to change the prompts, go ahead, customize it. If you want to increase the number of judges, go ahead and customize it. So we allow full flexibility to people to modify this LLMs judges so that they can get the best performance possible.

Of course, people should always validate with some small annotated data set before they go ahead and just make it the default evaluation. So that is always a part of our POCs and they get clarity and confidence only then they are using it. So I have basically, I've been a full stack ML engineer previously and I've worked a lot with annotators and I've seen a lot of biases and issues with annotators as well. um it's just so time consuming that you can't afford to kind of wait for annotation to get completed so it's just much much better to add more instructions do some initial validation and get the clarity that okay this is where it works if it doesn't work yes go back to annotation but i feel like it has started working a lot one year back because I was running this experiments like we were working with hallucination index two years back where we were using our own similar LLMS judge methodology and we had certain issues and there were some correlation issues at the time but last year it got pretty strong and this year I feel it's so strong. LLMS judges is so strong that you can use it. I've gone through like hundreds of explanations like our LLMs also generate explanations that users can read to validate whether it actually went to this correct reasoning or not and I have gone through many explanations during this V2 experiment that I'm doing right now and also the V1 and I did not find any issues.

i feel like when we so that's why we released all the data set people can go and run the experiment with the v2 also we're going to release the data sets people can just take them and run it on our cluster it's free our product is free so anybody can just sign up and start using it they can just put the open id and they will get a clarity okay it's working or not we want to be as open as possible by still being a closed source company so i feel like it's working and people should definitely pay attention to it What's the gap between the best prompts and the worst prompts? As you iterated on the prompting of the LMS Judge, did you see models change in position in the leaderboard? Or were the results mostly the same, just different scores?

So I was not working on fine tuning the LLM as a judge. It is done by a separate team member. And once the metric is ready, only then I start using it. But they went through like a month of rigorous process of prompt tuning. And it's a very structured prompt. It's like an art in itself, as you know, where we have certain sections for certain things on certain instruction. And what we do is like, it's this very simple philosophy. We start with a base prompt with what we think is correct. And then we see where it's failing. And then we try to add those instructions again, defining the...

failure cases in a general way to the prompt of the lms just and see if it's following it or not and that iteration goes on for multiple times till we are sure that we are getting the performance that we need so it's it's very common sense oriented approach i would say and it's just plain english writing with just following the right way of writing prompts um and of course the leaderboard, if you are using different judges with different models, there can be heavy shake-up of the leaderboard also. So that's why we use the best LLM available at that when we are starting or near completion of the experiments. We try to use the best LLM available so that it should not be a situation where we're trying to evaluate 3.7 with GPT-40 mini, right? It will be really risky proposition because GPT-40 mini cannot evaluate the hard outputs that 3.7 might be doing correctly, right? So for this V2, I'm using the 3.7 because it is one of the top-rating models right now, and I've seen really good performance from it. So we essentially swap these models as much as possible when we are running the experiment. Otherwise, we have seen a situation previously where we were using probably GPT-4 Turbo or something, or even GPT-3.5 long back. I'm talking like two years back. And we had to use GPT-4 Turbo at the time because with the 3.5, it was something else entirely because it can't find errors.

Okay. Awesome. Maybe give a little preview of the thinking for V2 and maybe that would be where we end up. But yeah, I'm just kind of curious. Sure. What we found issues with V1 is it has a lot of domains, but it does not have a domain vertical in itself that, okay, if somebody is interested on how this model performs as a telecommunication, they can just select filter and then see what's the performance from each model, what are the gaps, what's the cost related to them.

So first thing first, we are doing domain specific, which means that these are like new data sets from scratch. And why are we doing this? Of course, the first problem is that they are not available easily. Secondly, it's because, which is I would say the main reason is that we don't want leakage at all to be possible in any of the LLMs so far. So we want that these are new data sets. So we guarantee that it's going to be performing.

as unbiased as possible. Then we saw with V1 that the scores are saturating. We see that the best score has already reached 0.95. And so if we are going to evaluate even better models that are coming out, they'll be definitely in the range of 0.921, which I feel is not very informative for anybody to take a call because there can be some noise also in this evaluation. So we want the benchmarks to be harder and this tool calling to be more complicated and realistic at the same time.

This DFCL, if you just open and check it, you would be like, okay, this is okay, but you don't want to use it for realistic evaluation because it's like some math. problem statement is given some simple tool is given just like let's some exponential tool logarithmic tool multiplication so and you are just like evaluating on that so i was not particularly happy with that but that's the best we could get at the time um and that's why we mixed up all the data sets available at the time to kind of average out the things uh because it's very specific right if some model is good at math then it might perform really good great for dfcl but if some model doesn't understand the terminologies of industry uh then it will not perform well for tau so we kind of mixed up the data set during that time um So two things, domain and one is increasing the hardness. Third thing is multi-turn evaluation. So this whole evaluation is going to be, let's say, support bots. The whole theme is evaluating support agents with a lot of tools, like we are having 20 tools. They're going to have five domains, like banking, finance, telecommunication, insurance, healthcare. And we'll be having certain categories also, like coordinate the tools and then kind of adversarial scenarios, customers manipulating the bot to kind of do certain things.

Yeah, multi-turn. Coming to multi-turn, in the multi-turn, what we are doing is that this time, last time it was more like there's an input with one message or multiple messages and then give one output. That was how we were evaluating. This time it's like a realistic scenario that we start with a scenario. Scenario has a first message and there's like goals to be accomplished. This scenario is given to a user simulator. Now, user simulator is basically a prompt which gets the whole history of the chat and it's supposed to generate a new message and that simulation is ran by GPT 4.1 mini model. Now, there is another simulator which I call the tool simulator.

why we selected tool simulator is essentially because of ease of running the simulation uh as we saw with tau tau has like tool definitions and databases with csv file kind of thing with redraw operations going on now i wanted to have like many tools created we have like 20 tools per domain and we have like five domains so it's like 100 tools I did not have do not have the time to kind of write this uh tool with all these databases so I kind of created a tool simulator again with the GPT 4.1 mini model uh which takes into the input as a tool call so it gets a tool call it gets the response of the tool called schema and then it is supposed to give an output so rather than like interacting with an API or calling certain databases, it is going to generate an output based on the history of the conversation and the tool call information that is given. And the main one that we are evaluating is basically the agent. The agent, we are swapping all the LLMs to evaluate. And this agent basically is accomplishing the task given by the user. And then user gives a task. The agent either gives a response or gives the tool call. If it's a tool call, it's given to the tool simulator. And the tool simulator will give an output. And then that output will be used by the agent to give a response to the user.

what we do in this is we for every scenario we have like at least like five to seven goals to be accomplished uh they are pretty complex like tau and they are all they all need to be accomplished otherwise it's the task is not accomplished so this time you have to get done many things at once which makes the thing hard and it's possible that you might miss out on certain things and we see that the best models are good at it but certain models are really struggling on it and they can go into iterations for no reason um and so the scores are coming out to be lower much lower like the main problem 0.95 is like solved that okay the scores are lower you're getting domain specific insights uh and then it's a very realistic scenario where you'll have multiple turn and then only finally when everything is done then the task is accomplished so what's how do we evaluate the performance in this case and we use two metrics uh we use the older one the tool selection quality which is just telling us whether the tool selected was correct or not but other thing which is super important from a business point of view and practical point of view is that whether the agent completed all the tasks or not right uh so for that we have the action completion metric uh which will check that whether all the requests

that were given by the user where all of them accomplished and where they accomplished correctly or not. So for every sample, we'll get, okay, this is how good it is at tool selection. This is how great the model was at accomplishing the task. So in that fashion, we'll get the scores for every scenario and then we'll aggregate the scores for all the data set to get the final score. So this time we are...

kind of focusing more on action completion metric, I would say, which is telling us that the user asked for these five things and whether the agent completed all the five things or not. So that's how we are going to evaluate it. We'll also have the tool selection quality metric, but that doesn't tell us the whole story. It just has a very granular story. It's a debugging metric, but this is like an overall performance metric for the user. And then so...

Essentially, a user workflow will be like in the realistic production workflow is that they have this agent working, and in certain scenarios, the action completion is lower. So they'll go there and then check what went wrong, and also they might see some tool selection issues, and they'll debug them. Got it. Perfect. I think that's a very comprehensive recap. I like the new direction for V2. That sounds like a lot of work. So good luck with that.

It's difficult to tune the prompts to get the right direction of what you want to achieve because you want to be realistic. And the hard part for me that I've spent a lot of time was generating hard scenarios. Because you take the best model to generate hard scenarios and you then see if the best model can accomplish those tasks or not. Like let's say I generate by 3.7 and then check on 4.1 and then it's able to accomplish. So I had to kind of do a lot of iterations on like finding where the model fails and how to trigger this kind of scenarios. And that took a lot of time. But I think we have...

we have reached a certain stage where we feel confident that yes, they're realistic and hard scenarios and the model is not able to accomplish all the time. So this is going to like reset, this is going to calibrate the expectation of the users, of these elements because our last leader was saying that models are really great at tool calling. So it's like, see, but they're actually not, right? They're making mistakes. And this is going to recalibrate the expectation of the users that be careful because they're still not perfect in real scenarios. Awesome. Okay. I think that's about all we have time for. Anything else, Alessio? Anything else, Pratik? No, thanks for joining us, Pratik. My pleasure. This was awesome.

Frequently asked questions

How long is this episode of Latent Space: The AI Engineer Podcast?

This episode is 34 minutes long.

When was this Latent Space: The AI Engineer Podcast episode published?

This episode was published on July 14, 2025.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this Latent Space: The AI Engineer Podcast episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.