Latest / Agentic Conversations (formally mlops.community) / Evaluating the Effectiveness of Large Language Models: Challenges and Insights // Aniket Singh // #248
Transcript
- 0:00I'm Aniket Singh. I work as an AI engineer or
- 0:05prison systems engineer at Altium Souls.
- 0:09I think my coffee, usually with milk.
- 0:14What is up ML OPS community? I am back with another podcast,
- 0:19as always, your host Dimitri OS. Today we're talking with Aniket
- 0:24all about evaluating the LLMS themselves, but not from the
- 0:28benchmarking perspectives. We want to evaluate just how
- 0:33much they know how well they can do.
- 0:36I loved when he talked about the confidence scores, especially
- 0:39how he tuned these different confidence scores and which
- 0:42models are more confident and which models are less confident.
- 0:46Let's get into it with Aniket. As always, if you like the
- 0:50episode feel free to give us a little feedback and if you can
- 0:54share it with just one friend would mean the world to me.
- 1:04We should probably start with the back story on how we met,
- 1:09which was through. Which was through lattice flow
- 1:12actually, since we did the round table discussion and we were
- 1:18kind of like planning to do it. And we, I was like, we should
- 1:21also do another one, something related to that's not my job,
- 1:26something that I do on the side. Because you are, so you have.
- 1:32Can you explain to us and myself again what your job is and what
- 1:37your hobby is? Sure.
- 1:39So currently I work as a, we can say machine learning engineer or
- 1:45a vision systems engineer or an AI engineer, basically any, you
- 1:51can name any, anything you want. But at the EV battery
- 1:56manufacturing plant called Ultium Cells.
- 1:59And that's why I was invited to their own table discussion
- 2:03because we were discussing about the manufacturing and AI in
- 2:06manufacturing challenges related to that.
- 2:09But that's my day job. But at the same time, because I
- 2:14was very interested in research and especially LLMS and that's
- 2:20kind of my thesis. Also when I did my masters, my
- 2:24thesis was related to like Transformers.
- 2:27Transformer models, which wasn't LLMS were not a big thing back
- 2:32then when I did my masters. But I was always interested in
- 2:36this transformer model because it performed much better than
- 2:40any other model that we had in that time.
- 2:43You. Bet on the right horse.
- 2:44Yeah, yeah. And once ChatGPT came out with
- 2:49their API, I was like, we, we need to do something, we need to
- 2:53start doing some research in this.
- 2:55And I do enjoyed working on this on the side and ended up
- 3:00publishing few papers on this and I'm still working on few
- 3:03more. Yeah, awesome.
- 3:05So you've got your day job and then your night job and your
- 3:13night job has brought you into a bunch of cool realms.
- 3:17Specifically, we wanted to talk today about the ever hot topic
- 3:22of evaluating LLMSI know that there's been a bunch of people
- 3:27on here that have talked about evaluation for LLMS. We do it
- 3:32very much on the systems level, like how actually we've had.
- 3:39So taking a step back, we've done surveys on evaluation.
- 3:46We've done 2 surveys in the community on evaluation and how
- 3:51people in the community are looking at evaluating their LMS
- 3:56or and their systems. But you have a bit of a
- 3:59different take. So let's talk about that.
- 4:03So when these models started to come out and all the open source
- 4:07models started to come out, I would see a lot of like
- 4:11benchmarking specially. And since I wanted to do
- 4:15something within this LLM, right within the realm of LLM, I, I
- 4:20saw everyone is doing benchmarking and nobody actually
- 4:24figured out how to make a whole startup or application using
- 4:30LLM. So just yet, because it was
- 4:32still the very beginning phase of it and they were making a lot
- 4:36of changes to to the API and that'll break a lot of things on
- 4:41the application side, right? So we didn't want to get
- 4:45involved in any of that side like the LLM system evaluation
- 4:49or LLM benchmarking, because there are a lot of people doing
- 4:52it. So I thought of this different
- 4:58approach that people are using LLM to also see if they could
- 5:02replace some of the work that humans would do to make it more
- 5:07efficient or make it more cheaper, whatever you can say
- 5:11depending on the motive, right? So we thought why not just use
- 5:15LLM to see if we can replace some of the scenarios where
- 5:20human would come into play, right?
- 5:24Let's say auction, right? This is one where people go and
- 5:29bid on the things that they want to buy and you have to be very
- 5:33careful of how much you bid because you don't want to over
- 5:35bid. But humans in general usually
- 5:38are pretty good at it because they know what their budget,
- 5:41they know their what they can afford, how much the thing would
- 5:45cost unless they are very unfamiliar with the item.
- 5:48Like in most cases, humans are pretty good.
- 5:51But can LLMS do that? That was one of them.
- 5:55Another. Wait, can we can we double click
- 5:57on that one? Because that feels like
- 5:58something that also you could set up with just rules based
- 6:03system. I don't want to.
- 6:05Yeah. Bid outside of this number.
- 6:08Here's my budget. Yeah, technically rule rule
- 6:10based system can be done too, right?
- 6:13But we wanted to see like how LLM would make those those
- 6:18decisions, right? Rule based system or Mai system
- 6:23could do that too. But just to simulate, let's say
- 6:27there's an extension that we wanted to work on, but we
- 6:30haven't gotten the chance. Think of a scenario where you
- 6:33know the person's personality, right?
- 6:36You know how these persons would behave and you know kind of like
- 6:40what kind of people would come to the auction and you kind of
- 6:45simulate that auction beforehand to see how much profit you can
- 6:49make it, right? Some scenarios like that where
- 6:52you can could use the personality to dictate the
- 6:55outcome, right? So we did give personalities to
- 7:00all these LLMS, like we use blanching models to give them a
- 7:04personality, give them some back story, like hey, you are an
- 7:08accountant, you have been working for 10 years, 15 years,
- 7:11whatever. There was another model called
- 7:15Olivia who was an extrovert person who didn't care as much.
- 7:19She was more spontaneous. So all these models had a
- 7:24different characteristics that dictated a lot and that that was
- 7:29one thing that we got to see that LLMS actually behave
- 7:33similar to what the characteristics that we provided
- 7:36them with. Because of any characteristics
- 7:38that you gave them, did any go over budget?
- 7:41Oh yes, the extrovert 1 spontaneous one was going over
- 7:47budget every single time. And we had to do a little bit of
- 7:51work to like make her understand because renamed her Olivia.
- 7:55And we tried to like give her some clues like, Hey, you need
- 8:00to make sure that we were not telling her explicitly that this
- 8:04is your budget or this is how much you can spend, right?
- 8:08But at the same time, we were trying to make sure that they
- 8:13don't completely go crazy, especially with GPT 3.5.
- 8:16That's what that's what we noticed that they didn't care so
- 8:20much about math and the reasoning.
- 8:21But GPT four was a very different story.
- 8:24But we were able to achieve much better results just using chain
- 8:29of thought with GPT 3.5 as well. OK, so let's get into the
- 8:33differences between the models, but before we do, to give an
- 8:38overview of what you really work on.
- 8:40You're thinking a lot about evaluating the capabilities of
- 8:46the model and not so much about this system around the model and
- 8:54how it's set up and how the evaluation of the vector store
- 8:58retrieval is, or the evaluation of the final product or the
- 9:03final answer or the question answer pairs.
- 9:06That type of thing isn't really what you're looking at when
- 9:09you're talking about evaluating these models.
- 9:11You're saying, can it do what we do as humans?
- 9:15Are there tasks that we do that if you give it to an LLM and you
- 9:20give it a back story, it can also kind of do it or?
- 9:26Or not do it. Yeah, or not do it completely.
- 9:29So that's what we wanted to test basically because everyone was
- 9:32coming up with their version of testing the model.
- 9:35There are a lot of libraries now that can do that, but there
- 9:40weren't many papers that we're talking about this kind of
- 9:44evaluation. So that's that was one of the
- 9:47motivation to do something a bit different than what the trend
- 9:51is. And some of these different
- 9:54things that you tried to see if the LMS could do were bidding at
- 10:01an auction. What were some other tasks that
- 10:04you thought might be good to replicate?
- 10:06So there are other tasks that we are currently working on, but
- 10:11this is a very different type of assessment called stealth
- 10:14assessment. This is something we are working
- 10:16on and it's almost ready, should be available very soon.
- 10:22But what we basically did in this is we made them do lead
- 10:26code problems and not just like OK, solve this lead code
- 10:32problem, but actually using confidence scores that they
- 10:36provide with their answer, how confident they were and
- 10:42providing them with feedbacks if needed.
- 10:44If they ask for hints, we provided them with hints, but
- 10:47what we were doing is every hint or feedback would cost them
- 10:52something. They knew that there's a cost,
- 10:54there's a budget, but they didn't know explicitly that they
- 10:58were being tested on their budget management.
- 11:00That's why it's called stealth assessment because we
- 11:03explicitly, we are not making them aware of this situation.
- 11:09So this is a different paper that we are working on right
- 11:11now. I have to take a step back a
- 11:14little bit because this paper was inspired by another paper
- 11:19where we tested the models for Dunning Kruger effect, which is
- 11:23a very well known phenomenon. But there are a lot of
- 11:27controversies around that. Some accepted, some don't accept
- 11:30it, but we still wanted to see how because they learn from
- 11:34text, do they show similar behaviour or not right.
- 11:38So in in that paper we introduced the model confidence
- 11:43core with the answers to see how well their their confidence and
- 11:48the competence basically aligning.
- 11:51This can inspire the other paper.
- 11:53And the confidence score is just once they've done a task, they
- 11:57say, we think that this task is complete and we give it a number
- 12:02from 1:00 to 10:00. So we make LLM do this.
- 12:05We ask LLMS like, hey, so you solve this problem once you
- 12:10solve this, how confident you are out of one to 10 or 0 to one
- 12:16that you you did very well. So we had two different types of
- 12:20confidence metrics. So we were asking for absolute
- 12:23confidence and relative confidence.
- 12:26So the absolute confidence is how confident the model is in
- 12:29itself that it did a good job, right.
- 12:33And these relative confidence is because we tell the model that,
- 12:37hey, this is a test that we are doing between multiple models.
- 12:41How well do you think you did compared to the other models
- 12:45when they don't know what other models are doing?
- 12:47They have no idea. They just have information how
- 12:52good the model itself is. Especially in case of GPT 4, we
- 12:56could see that the model was very aware that it is one of the
- 12:59best model out there. So that was kind of interesting
- 13:02to see. I think all of these different
- 13:06LLMS have no problem with their confidence and that is one thing
- 13:11that they do not lack. That's what we thought that that
- 13:14was going to happen. But some models were kind of in
- 13:18a way aware or even less confident than they should have
- 13:22been. Like models like Cloudy was not
- 13:26confident even when the dancers were right.
- 13:29So it'll try to lay lay back a little bit and say that it
- 13:34doesn't feel very confident. But so I think it's trained in a
- 13:38way to not act way too confident maybe.
- 13:44But GPD 4 on the other hand, it's totally different story.
- 13:46It's so confident it it knows that I am the best model out
- 13:50there. And it will say it's.
- 13:53Yeah, yeah, yeah. That's classic.
- 13:56Now I've heard there are problems when you get into the
- 14:00scenarios of trying to rate things like one through 10.
- 14:04This has been on the evaluation of like LLMS as a judge.
- 14:10So in LLM rating another LL Ms output and saying is this
- 14:16correct And give it a score between like one through 10 on
- 14:19its correctness. And the problem there is that
- 14:24one through 9 for an LLM are basically all the same thing.
- 14:28And so really it should be binary.
- 14:30It should just be that zero to one.
- 14:32Did you see any of those correlations?
- 14:35Yeah, so we did two papers like this.
- 14:39So 1st paper, actually we had one to 10, but then we thought
- 14:45based on our professor's output, he recommended that we switch to
- 14:490 to one and see if that helps. And we did see a difference
- 14:54because if we felt like it was much more accurate because it
- 14:58was thinking more probabilistically, which wasn't
- 15:01the case with one to 10, it would probably most likely give
- 15:049 or 9.5 with GPT 4 especially and even GB is 3.5 actually.
- 15:11But when we switch to the 0 to one, it'll actually try to say
- 15:180.980.92 or even sometimes go down all the way to 0.77.
- 15:24So we introduced feedback. Basically this feedback confirms
- 15:28that hey, your answer was wrong. So we wanted to see how well it
- 15:32aligns for the next question like is it going to reduce the
- 15:36confidence which we started to see especially in case of that
- 15:4002/1? So you were, let me just see if
- 15:44I understand what the experiment was.
- 15:46You were getting output and the LLM was scoring the confidence
- 15:52of it being right and then you would give it explicit feedback
- 15:57on that was right or that was wrong.
- 15:59Well then, And then you would ask it again, what's your
- 16:01confidence of it being right or wrong or you would have it
- 16:04regenerate. So think of two different cases.
- 16:07So there's feedback case and no feedback case, which both are
- 16:11independent to each other. So one case, we don't give them
- 16:14any feedback. We don't tell them if they were
- 16:16wrong or right at all. We just ask them the question,
- 16:19ask them to write their confidence for that answer that
- 16:23they just provided. In the other case, what we do is
- 16:27we tell them that hey, this time you were wrong, but it already
- 16:31gave us let's say 98% confidence.
- 16:34But now we ask them like how confident do you feel that you
- 16:38are going to do better in the next question?
- 16:40Then do this show that they went down on the confidence or not?
- 16:44And in most cases, especially with models like GPT 4 Cloud A,
- 16:49we would see that it would start to align the confidence and drop
- 16:52it to like 77%, right? So when they get to the next
- 16:58question and see the question and they answer it.
- 17:01Now in some cases when the questions are difficult because
- 17:03we had varying difficulty level of questions, right?
- 17:07So this way we could see if they are actually aligned, trying to
- 17:12align the confidence score with the how accurate the answer is
- 17:15or not. And so when you're asking it for
- 17:20its confidence on the next question, it hadn't seen, no.
- 17:25It doesn't. See the.
- 17:25Next question now. OK.
- 17:27And then later, one thing that is fascinating to me there is
- 17:33that it almost like knew that the questions were harder and it
- 17:40had less confidence in it. Is that what I'm understanding?
- 17:43Yeah, well, when it starts to mess up, when it starts to give
- 17:47wrong answers, I think it starts to realise that the questions
- 17:50are getting difficult now and the level is changing.
- 17:54But we don't tell them that, hey, you are in level 2 or Level
- 17:573. It's all based on the question.
- 17:59So it does start to understand. And in some cases it just knows
- 18:03because it was probably trained on the exact question, right.
- 18:07But, but there is a lot of misinformation too.
- 18:10So we we kind of used data that would have a lot of
- 18:16misinformation and make things difficult forever.
- 18:18And so the data picking was done in a way that it it would be
- 18:25robust. Yeah, yeah.
- 18:27All right. So tell me some other takeaways
- 18:29from this. And this was just one of the
- 18:31papers, right? You, how many papers have you
- 18:33written, by the way? You've written a tonne.
- 18:36So the auction paper is one of the paper which is already
- 18:40published and the the model confidence score, the one to 10
- 18:45is also published an information journal.
- 18:48Actually in that paper, we used multiple models, not just one.
- 18:52We used a lot of open source models too.
- 18:55And then because of the feedback that we got and like people who
- 19:01do LLMS and like based on the understanding, we were like, OK,
- 19:07we need to do another one. And we ended up working on
- 19:11another paper that used only GPT 4 model because some of these
- 19:16models were not great enough to be tested for specifically to
- 19:21the USMLE related questions. That's what we worked on and we
- 19:24used zero to one in in that. And we have couple more papers
- 19:32that that's coming. The stealth assessment is one
- 19:36that's coming up very soon. There's another paper that the
- 19:41extension of the auction paper that we are, we are kind of
- 19:45working on that right now and trying to see if we can use more
- 19:51advanced features that we have like since they have become a
- 19:55multi model now. So we are trying to work on
- 19:58those things too, so. Oh cool, so are would you be
- 20:02feeding in photos of items and that type of thing?
- 20:06That's that's the plan and to see how well it adjusts based on
- 20:10the picture. If we change the make it not not
- 20:16as much attractive, does it actually drop the value or not?
- 20:20So those kind of things we are still in discussion with my
- 20:22professor how we can work on that paper because it hasn't
- 20:28completely, completely started yet.
- 20:30We do know that we want to work on it and we are making sure
- 20:33that we have the prereq done before we actually get into it.
- 20:39Yeah. And do you have thoughts in mind
- 20:42that where you're going to go next and how you're because if
- 20:46if I'm understanding your motives, you really want to see
- 20:50like how aware are these things? How can they understand?
- 20:56Like how much subtleties can they understand?
- 20:59And can we test for these different subtleties that they
- 21:02understand? So have you thought about other
- 21:05experiments on how to probe that?
- 21:09Now I'm thinking to move more into the applications and
- 21:13actually making them do an extensive task because a lot of
- 21:19the issues right now is using an LLM in production, right.
- 21:24We see a lot of issues and I have my own start up to where we
- 21:27see a lot of issues because of LLMS. So we, we are trying to
- 21:32now get into research of that so that we can improve our
- 21:37production LLMS, right. So that's where I'm going next.
- 21:41And especially using multimodal is multimodal and multi agent is
- 21:47what I'm looking into because a lot of the mistakes that NLLM
- 21:52makes with their output can be possibly improved using a
- 21:56different LLM, a different agent workflow right let's say.
- 22:02You explain that real fast. Yeah, yeah, sure.
- 22:05So let's say I'm trying to extract some information from a
- 22:12document, right? If I use just one LLM to do
- 22:18that, it's probably going to just skim through it and it's
- 22:22not going to do a great job. But when we use multiple agents
- 22:26and we make them take, hey, you will take care of this part, you
- 22:31will take care of this part, you will take care of this part and
- 22:34create a whole workflow. This could potentially improve
- 22:38how well the model will provide the results.
- 22:42And not just that, not just having let's say 10 different
- 22:46models to it, but having other models do cross check, making
- 22:50sure that the output given by the model is actually what is
- 22:54required by the user. So one model doesn't need to
- 22:58know exact motive. So let's say I need to extract
- 23:02all those information in Jason format, right?
- 23:05Because that's one of the thing that we do a lot, right?
- 23:08Extracting information from a picture or a document.
- 23:13And we want everything in Jason format.
- 23:16If LLM is completely focused to just extract and also give the
- 23:21Jason file, there's a good chance it might mess up because
- 23:25of the speed and hallucination and all that.
- 23:29So many things are there that could happen and make the output
- 23:34not as expected. But let's say if I ask multiple
- 23:38models to extract that information, have another model
- 23:41horse that information, another model that actually ends up
- 23:44giving the actual result that I'm looking for, and that model
- 23:48is fine-tuned or trained on exactly how I want the data to
- 23:54be for me. So this should, and actually
- 23:59Andrew Angie has even talked about it, that this actually
- 24:02does improve the performance of the model by a lot.
- 24:06And it does increase the cost, yes, but models are becoming
- 24:11cheaper and cheaper. So I think this is something
- 24:16that many startups or anyone working on NLMS with for
- 24:21application would be OK with if they're actually getting a
- 24:24reliable result. So my goal is now to focus on
- 24:27reliability of the model and how well they can understand the
- 24:32task to create that workflow. Well, it seems like there are
- 24:37many ways people are trying to create agent architectures right
- 24:44now because it is such a Greenfield technology, right?
- 24:47You just get to explore completely.
- 24:52Have you seen different architectures that work best?
- 24:56Like you were just saying Like if you give a an agent a task
- 25:01and it doesn't need to know about any of the other tasks, it
- 25:04just has to do that that works. Or if you're having multiple
- 25:07agents cross checking and validating and then one that is
- 25:11the final fine-tuned agent to really make sure that it comes
- 25:16out proper. That seems like one agent
- 25:19architecture that you've seen work.
- 25:21Have you seen other ones? So there are some libraries, I
- 25:27should say that are already out there.
- 25:29I think QAI is one of them. Another one would be the auto
- 25:34GPTI believe that came out a while ago.
- 25:36And there's there's few more. I think Microsoft has their some
- 25:40own version of it. So I have been testing some of
- 25:44them and my team is also working on testing some of these to see
- 25:48if they actually will get the job done.
- 25:50Or is is it actually not enough? So we are working on finding A
- 25:54use case that we could that we could have that we can also
- 25:59publish, right? And it's complicated enough that
- 26:02would actually make sense for multi agent to work on and not
- 26:06something like just summary, right?
- 26:09That that's very simple. So I want to work on something
- 26:12bit more complicated, but not at the same time.
- 26:14Like I think when GPT four came out, they had taxed GPT.
- 26:19Something that people would like to monetize that's already
- 26:22there. People are working on it.
- 26:24Not something like that, but something that would help just
- 26:27in general, like something related to document parsing is
- 26:33is what I'm looking into, but not exactly how I plan to do it.
- 26:38That's something we are still experimenting and trying to
- 26:40understand first and then we get to the actual application and
- 26:47building that application and basically publishing how we got
- 26:52to that level. How how did we actually achieve
- 26:54it? Did we have to do a lot of fine
- 26:56tuning? Did we have to just create a
- 26:59workflow with prompts So we need to work on that?
- 27:05Yeah. The the other piece that you
- 27:07mentioned like just getting a bunch of LLM calls and making
- 27:12sure to cross validate or get the consensus from a few
- 27:16different LLMS before it moves on to the next stage.
- 27:20And you have pros and cons for each of these, which I I'm sure
- 27:23you will address where it's like, yeah, you can make 10
- 27:27different LLM calls before it goes to the next stage.
- 27:30But that you have to think about price at this moment in time.
- 27:34As you mentioned, maybe later we don't need to think about the
- 27:37price, but for now you do have to kind of keep that in mind.
- 27:41The fine tuning piece, I think is a perfect example of when to
- 27:45actually fine tune when you want it to come out in Jason or when
- 27:49you want like Jason Validator. That's like one of the few times
- 27:55that fine tuning is brilliant. I've also heard about
- 27:59simulation, I think, where you just ask it to do what, or you
- 28:06ask it to like simulate what it thinks it should do.
- 28:10And so then it can give you like, all right, here's here's
- 28:16me simulating the task and you get, you get that going on.
- 28:23But I'm not well versed enough in the agent architecture to
- 28:28really like fully understand all the different ways that you can
- 28:33leverage these these agents. I'll talk a little bit about
- 28:37this one. I'm I'm still trying to learn
- 28:39this myself. Actually, we have a PhD student
- 28:43in our team who is amazing at these kind of workflows
- 28:47specially. So I wish she was here with me
- 28:50to answer this, but I will try to get to this a little bit
- 28:52based on my understanding, let's say auto GPT per SE, as much as
- 28:58I know what it does is it prompts itself.
- 29:00How would you do this? And then based on on those
- 29:05prompts, it creates multiple agents, right?
- 29:08Yes, this could help. But when we think of a
- 29:11production level LLM, we can't be doing that every time, right?
- 29:15Because it's going to have a lot of trial and error to get things
- 29:18done. It may think get things done
- 29:20right, but it's going to cost us a lot.
- 29:22But what I want to focus on with my paper is how would you do
- 29:29that? Fine tuning of not just the LLM,
- 29:32but like fine tuning of creation of those models, creation of
- 29:36those workflow for your use case.
- 29:39So focusing on that instead of just having prompts, creating
- 29:45prompts, and just assigning the prompts to each LLM, if that
- 29:51makes sense. Yeah.
- 29:52And I've heard that you have much more success when you make
- 29:56it very, very like pointed or almost like focused and closed
- 30:07system. You don't want to give it the
- 30:09ability to come up with whatever plan it wants.
- 30:11You want to really make it closed and have clear guardrails
- 30:18on it. Yeah.
- 30:19For now, that's what we are actually doing with our
- 30:22production LLM that we have, but I don't think that's just enough
- 30:28to make it even more reliable. Well, I would say 80 to 90% of
- 30:33the cases it does come up with reliable output.
- 30:37But the problem right now is one thing an open AI, open AI model
- 30:42will change and then it just messes up everything that we
- 30:45have planned for. So that that's what we I want to
- 30:48be able to fix with the with the research that I'm going to work
- 30:53on. It doesn't have to be open AI,
- 30:54it could be any model. And how do we make sure that we
- 30:59can get this process done more quickly is also one of my goal
- 31:04using any open source LM for said.
- 31:07Because if we are splitting task into multiple agents, we don't
- 31:11probably need GPD 4 level or GPD 4 O level agents.
- 31:17We could probably work just with Llama 7, right?
- 31:21And. We'll allow us to 7 billion,
- 31:24sorry. Yeah, yeah.
- 31:28So I'm trying to wrap my head around this and think about how
- 31:35that would work so that you can be model agnostic.
- 31:40And like, have you found success in that?
- 31:44Because it feels like the abstraction layer sometimes, you
- 31:47always have to be weary of the model that the underlying model
- 31:52and the capabilities that it it has.
- 31:55We do need to test 100% before thinking, OK, I'm going to go
- 32:00with this model because not all models are same.
- 32:04Like every model has their own capabilities, right?
- 32:08So it does seem like OK, GPT 4 is the answer to pretty much
- 32:12everything, except it messes up when we start to actually like
- 32:18put it in production. But first, it's bit expensive.
- 32:25It may not be that expensive for just few tokens or queries that
- 32:31you do. But when you're thinking about a
- 32:33production level LLM, it starts to get very expensive.
- 32:37So that's why for a smaller level task like when we're,
- 32:41let's just talk about document parsing for say, if I want to
- 32:44just parse a document, I, I don't have to have an LLM do
- 32:49everything pre processing we could do with OpenCV and other
- 32:54libraries, right? Then we can just maybe extract
- 32:58using Tensorflow like some kind of model that's our pre trained
- 33:02model, right? And once we extract, then we
- 33:05actually start to create a workflow with analytis to get to
- 33:10our results. So we don't have to have a very
- 33:15capable model, but a very capable workflow.
- 33:18This agent workflow that we have needs to be fine tune to our
- 33:24actual necessity, like what I actually want out of that
- 33:28document because I may not need everything out of that document.
- 33:32But at the same time, if I ask, hey, GPT 4, can you just get
- 33:38this from this document? And it's probably going to not
- 33:42always give that exact result when you just prompted to do
- 33:45that. So you're looking at it more in
- 33:49terms of pipelines and how you can create a robust pipeline as
- 33:53opposed to a robust prompt. Yeah.
- 33:57Yeah, makes. Sense So now my now my focus has
- 33:59shifted more towards getting to that level because I think
- 34:05that's where most like important results would come out of LLM
- 34:11because if you can't just use this in production, then there's
- 34:16almost no use, right? Yeah.
- 34:19Even if it does do all this stuff that we do as humans, or
- 34:24if it is as aware as we are and it has confidence scores and it
- 34:28knows it's going to get something wrong or right, that
- 34:33all doesn't really matter if at the end of the day you can't use
- 34:36it in production. Exactly.
- 34:38Exactly. Yeah, well, this has been
- 34:41awesome, dude. I appreciate you coming on here
- 34:42and chatting with me. And as always, I love talking
- 34:47about evaluation. And so I like the different spin
- 34:51that you bring to it, looking at the capabilities of the models
- 34:55themselves as opposed to the system or the benchmarks and
- 35:00hearing about your next steps for testing agents and
- 35:05evaluating the agents and looking at the agentic workflows
- 35:09as pipelines is super cool. Hopefully, once you've done
- 35:14that, you can also let us know how that goes and what some of
- 35:17the findings are. Once you get that paper out to
- 35:20I'll make sure to read it and give a little review and
- 35:25probably post about it. Sure.
- 35:27Thank you.