Latest / Agentic Conversations (formally mlops.community) / Designing for Forward Compatibility in Gen AI // Rohit Agarwal // #189
Transcript
- 0:00So I'm Rohit Agarwal and the founder of Port Kira I, which is
- 0:04an LLM OPS company and not too much of a coffee aficionado, but
- 0:09I think I prefer my South Indian philtre coffee.
- 0:12That's my drug. Welcome back everyone.
- 0:16This is Dimitrios, your host, and we are here for another ML
- 0:20OPS community podcast. Today we're talking with none
- 0:23other than my man Rohit, who has helped me so much along the way.
- 0:26As you will hear throughout this episode, he's currently working
- 0:30on Port Key. Before that he was doing stuff
- 0:33in the LM space, in the DevOps space.
- 0:36You can hear when he talks how fundamentally different he looks
- 0:41at working with LMS as a software engineer.
- 0:45He's coming with that. Background.
- 0:46He's coming with that, hey, things need to be production
- 0:49grade if we want to serve them to the public and how can we get
- 0:54there with LLM's? How can we make sure that we?
- 0:58Think about all of the different error scenarios or the worst
- 1:03case scenarios. Those edge cases you could say.
- 1:06I had a blast talking with him. He is.
- 1:10He gave me two ideas that I'm chewing on now, and I think it's
- 1:15fascinating. It's funny because he's like,
- 1:16you've probably thought about this, but I'm putting a name to
- 1:19it. One is the API Gateway, and I'm
- 1:23excited to hear what everyone else thinks.
- 1:25When it comes to the AI Gateway, it's almost like this.
- 1:29Since it gateway, for lack of a better word, I think they did a
- 1:32great job naming it where everything goes through that,
- 1:36whether it is a an LLM call or whether it's no.
- 1:42Basically all of your LLM calls are going through this gateway
- 1:45to make sure that it's being routed to the right model, but
- 1:49also that it's getting the right prompt.
- 1:51So he goes through the four pillars that an API Gateway
- 1:54should have. Took me a minute to wrap my mind
- 1:57around all four pillars, but I really liked.
- 2:00What he's thinking about when he thinks about the AI gateway.
- 2:05So let me know what you think about that.
- 2:08The other piece that I want to mention and call out it was
- 2:11towards the end. He talks about forward
- 2:13compatibility and. This idea that.
- 2:19People are a little bit scared to work on something because
- 2:23they don't know if in a month you're gonna get a new open
- 2:27source model that comes out that renders everything that you're
- 2:29working on obsolete or potentially open AI is going to
- 2:32come out with a fine tuning and then ah, shoot, like I don't
- 2:35need to be working on fine tuning llama anymore, whatever
- 2:38it may be, but that. Kind of FOMO of the future and
- 2:43what's going to happen can lead to analysis paralysis.
- 2:47And you get a little bit paralysed because you don't know
- 2:51what's going to happen and then you're not able to take
- 2:54advantage of what you have right now at your fingertips.
- 2:58So his idea of, hey, we need to make sure that when we're
- 3:01building our systems, we are thinking about the potential
- 3:05futures. And I really like how he talked
- 3:08about decoupling. Our code from these API calls
- 3:14and what actually gets out. And so this goes back to the AI
- 3:18gateway. Let me know what you think.
- 3:20As always, love hearing from you and if you would like to help us
- 3:26out. It would mean the world to me if
- 3:27you share this with just one friend and let them know that
- 3:32you think they would enjoy this episode.
- 3:35That's all for me. See you later. good to have you
- 3:45here, man. The same here Dimitri was.
- 3:48I think we've been chatting on and off for almost, what, four
- 3:51or five months. So you sort of followed our
- 3:54entire journey. So it's been fun.
- 3:57Yeah. And one thing about the chats
- 3:59that we have that I always appreciate from you is, hey,
- 4:02you're quick to help anything that I need in the community.
- 4:06You're always giving me a hand whether that was the first LM
- 4:10and production report that we did where I was fully blocked
- 4:13and I got on a call with you and you.
- 4:16Absolutely. Unblocked me.
- 4:17I cannot say how much of A heaven sent you were because you
- 4:21went through that data man and it was obvious that you've been
- 4:24playing around with data for ages.
- 4:27You were able to bucket everything.
- 4:29And a lot of the insights that I put in the report came from the
- 4:34Excel sheets that you shared with me.
- 4:36So I appreciate that a tonne. And then also just the stuff
- 4:40that you're working on is in the hot seat right now, right?
- 4:44Like where you sit in the stack, It's in this new.
- 4:47Piece of the AI world where I don't think we were necessarily
- 4:53dealing with it back in the day when it was the predictive ML as
- 4:59some people like to call it or traditional ML.
- 5:02And now with the LM's, we do have this whole new area that
- 5:08you're exploring and I love getting insights from you when
- 5:11we talk on how you're looking at this area.
- 5:15And so I think that's a good segue into.
- 5:19What have you been working on for the past?
- 5:23X amount of time. I know it's been like a year or
- 5:26a little under a year. How long you been working on
- 5:28this inside the, I've been working on this almost six
- 5:31months now, but been in this space, the generative space the
- 5:35last three years. So I think we started off
- 5:38building. So I was at Fresh Works.
- 5:41We're building a customer support product and we were
- 5:43trying to incorporate AI across multiple areas there.
- 5:49That's when I think I've worked on GPD 2A little bit with our
- 5:52data science and machine learning team.
- 5:54Then saw the entire transition to the earliest closed source,
- 5:59the closed model of GPD 3 which was Davinci.
- 6:02And then saw the next two years building a AI writing assistant
- 6:06with pepper type dot AI. And then in those two years, I
- 6:10think the maximum learning was that the technology is truly
- 6:14magical which we're seeing right now.
- 6:16There's just so many use cases across different verticals that
- 6:18are possible. But then if you were really to
- 6:22launch a production grade tool using the APIs that Open AI or
- 6:26anthropic or others provided, then you needed this entire
- 6:30tooling layer in place. And I think that becomes
- 6:33extremely, extremely critical at the moment.
- 6:37And what is the tooling layer, I mean what are they and what are
- 6:40you seeing in the space and especially like where you're
- 6:43playing and and you've created port key and like what does the
- 6:47landscape look like? Absolutely.
- 6:50I think if I were to almost and from the very beginning we've
- 6:54looked at it as let's draw Adls from the traditional engineering
- 6:58world. So you used to have servers,
- 7:01used to have databases, and then on top of these servers you
- 7:04would have some sort of a server management layer, a database
- 7:09management layer. On top of that you had this
- 7:11entire DevOps layer. So to manage your entire DevOps,
- 7:16there were lots of tools in different brackets and these
- 7:19kept on getting more and more detailed, more and more niche as
- 7:24developers went deeper into applications.
- 7:27Can I stop you right there? So you're saying like a?
- 7:32Something like you would have the cloud, you have your A WS,
- 7:34but then you also have your Kubernetes exactly sits on top
- 7:38of it. And then all of a sudden, on top
- 7:40of Kubernetes, you have Ansible that is for networking and
- 7:45you've got all this fun stuff that goes with Kubernetes.
- 7:48Yes, yes, exactly right. And then you have on top of
- 7:51Ansible, you had these other plugins, you had open source
- 7:55libraries. To just even do a blue-green
- 7:59deployment, companies would use something like Spinnaker.
- 8:02So this is a bunch of these tools that existed for you to
- 8:05just manage your existing systems and then you would build
- 8:08your application on top of it. And I think the main thing that
- 8:13enabled was people could build complex applications.
- 8:16So think about it, right, The pieces of the puzzle probably
- 8:20existed even in 2011, 2012 or even before that.
- 8:24But then all of these complex SAS applications coming out
- 8:26after that because a strong foundational DevOps tooling
- 8:30layer sort of evolved. Yeah, you didn't need to spend
- 8:35as much time monitoring servers on managing servers.
- 8:37You could rely on, you know, an AWS or GCP to do that.
- 8:41And then when you really thought about saying you I need to scale
- 8:44my application, do I need to do it manually?
- 8:47Kubernetes came in and helped out and then Kubernetes became a
- 8:50pain. And then you build Ansible on
- 8:52top. It's basically standing on the
- 8:53shoulders of giants. And then enabling these really
- 8:56complex use cases to be built on top of what essentially is
- 9:00still, you know, at the very basic edge, it's still a compute
- 9:06unit. But then how do you exploit that
- 9:09compute unit? Became this entire SAS BI would
- 9:12say. Uh-huh.
- 9:13Yeah. And so you're seeing that like
- 9:15you're drawing a parallel to right now, and the compute unit
- 9:19is no longer a cloud resource. It's a foundational model,
- 9:24exactly, yes. So you would almost imagine a
- 9:26compute so in place. And this is very loosely drawn.
- 9:29I'm sure the purists will vulture me on this, but let's
- 9:34take a compute unit as a foundational model.
- 9:36You want a quick way to look up these outputs of this compute
- 9:41unit, which is an embedding, which is where you need our
- 9:44vector database. So those two become your two
- 9:47core components. You have a model, and these
- 9:49could be multiple types of models, and then you have a
- 9:52vector database on top of this. You will need something to
- 9:56really manage the deployment, etc of your own model.
- 10:00If you're doing or if you're just using an open air
- 10:03anthropic, then you don't need it, you just need to use the
- 10:06APIs, right? So then there is this one single
- 10:09layer of management deployment, tuning your own specific model,
- 10:15which is optional obviously. Now on top of this stack which
- 10:19is almost readily available today to all developers since
- 10:22this new layer which is evolving, right.
- 10:25So in the traditional mill world and I hit to call it traditional
- 10:28because it's probably just three years, four years old, but then
- 10:31existed the ML OPS layer which were all of these amazing
- 10:34companies like Wits and Biases and Arias and Mosaic etcetera,
- 10:38Databricks. Now there's a new layer evolving
- 10:41for generative applications which is more the and you know I
- 10:44think the jury is still out on is it LLM OPS or FMO OPS.
- 10:48But yes, there is this entire layer that needs to evolve that
- 10:52enables companies to build beyond chat with your PDF kind
- 10:56of application. So I think not dissing on chat
- 10:58with your PDF, but then there's so much more you can do with
- 11:01foundational models that hasn't been explored till now.
- 11:05So you have this entire OPS layer that needs to come up.
- 11:09OK, so. Yes.
- 11:13Exactly that the idea of. Drawing the parallel between.
- 11:20What we were doing in. Essentially the DevOps world or
- 11:24going from cloud to Kubernetes to a much more sophisticated
- 11:28Kubernetes ecosystem. And then that allows people to
- 11:35not spend time fiddling with the resources and spend more time
- 11:39building the products that are bulletproof and they're not
- 11:42going to go down every other day because of scaling issues or
- 11:46whatnot. This is exactly what you're
- 11:49saying. Right now we've got GPT and
- 11:52we've got these wrappers that are coming out that you can have
- 11:56your chat with your data, which is a really cool hello world.
- 11:59But you're looking forward to where are we going from here?
- 12:03What's the next step that we can create much more complicated
- 12:07applications with this that we do not have to worry about?
- 12:11Hey, is this going to go down? We have these production ready
- 12:14things and there are still quite a lot of hang ups.
- 12:18When it comes to using. ChatGPT at a high scale, right?
- 12:25Or even any of these models. And so if you're using open
- 12:30source, you have your own can of worms that you got to get into
- 12:34and maybe we can go into that. Like what are some of these
- 12:38hangups that you've seen and then how do you feel like those
- 12:41are being combated now? So if you look at it in the
- 12:45closed source models, if you're using Open AI, the the biggest
- 12:50challenge almost everybody faces the error rates.
- 12:53In fact in our benchmarks across and we do about 3 million API
- 12:57requests a day, we're doing about a 5% error rate on the
- 13:01opening I based API itself, which is which is crazy because
- 13:05five out of 100 requests are going to fail and then you need
- 13:09to build the systems in place to be able for it to either retry
- 13:13or fall back. And there's so many other
- 13:14options that you need to do and it's madness, right?
- 13:17Who? Which engineer in 2023 is
- 13:19expecting a 5% error rate, But that's fair.
- 13:22I mean, you're you're. Interested is so much.
- 13:25Yeah Oh my That's outrageous. Exactly.
- 13:30And I think people are now beginning to deploy tools to
- 13:34production and then users come back and say, hey, it didn't
- 13:37work for me because five out of 100 users are having a bad
- 13:40experience every single time. It's just yeah, it's insane.
- 13:43And if you look at the open source models, I think, and I've
- 13:48heard, I've been to so many conferences these last two
- 13:50months, almost every enterprise is like his scaling.
- 13:53This is really hard. The compute resources it starts
- 13:56to utilise is just crazy and unless you have very solid
- 14:01defined use cases and a consistent traffic pattern, it's
- 14:06very hard to handle the spikes and the troughs, right?
- 14:09I think it's almost akin to saying let me host my own server
- 14:12farm in today's world without any tools available.
- 14:15And I think it's the exact same problems of here.
- 14:18I have spiky traffic, my model goes down.
- 14:21I don't think I'm getting the best performance.
- 14:23I don't think it's more most efficient.
- 14:26It's all of those same problems which I think nobody wants to
- 14:29deal with. OI think on both ends.
- 14:32At the very base level, just deploying a model reliably is a
- 14:38challenge. And then you go above a little
- 14:41bit more saying, OK, how am I supposed to cash this out?
- 14:45Because caching doesn't work the same way as it did in the older
- 14:48world. So I need to build a new method
- 14:50of caching and that's where semantic caching came up or I
- 14:55have multiple models that I need to keep switching between.
- 14:58So how do I build a quick model router?
- 15:01And so, you know, problems keep stacking up.
- 15:04And I think in my brief stint, almost in five months, it's been
- 15:08that once you solve a problem, the next one emerges and the
- 15:12next one emerges. So it's just a string of things
- 15:15that need to be sort of solved for you to build a solid
- 15:19production level application. Yeah.
- 15:23Yeah. The, the bottlenecks are real
- 15:25and you're facing them. You're kind of forging this new
- 15:28path right now. And so I I would love to hear as
- 15:33you're going through these 3 million requests per day or as
- 15:37you're working with customers. You know you spent a lot of time
- 15:41on the report with me and we have a lot of use cases that we
- 15:47highlighted from the survey, but that was now dare I say three
- 15:52months ago and potentially all that data is stale considering
- 15:56how fast things move, right. But I would love to hear what
- 15:59are you seeing in the wild as far as use cases go as far as
- 16:04like what customers are doing and how is the?
- 16:10Use case as you're like breaking through these bottlenecks.
- 16:13How is the complexity of the apps that people are able to
- 16:18build? Evolving, right?
- 16:21I think so. I always look at it from 2
- 16:25frames of mind, right. So you have the introduction
- 16:28application. So they've been people have
- 16:30experimented for a while, they've figured out the best
- 16:33parts, they figured out value and then we're seeing stuff in
- 16:36production. And then there's still things
- 16:38that are in the experimentation phase.
- 16:39So let's probably talk about both a little bit, right?
- 16:42So in the production phases, I have seen three kinds of
- 16:46applications and it's almost everything that I've seen fits
- 16:50into these three applications, right?
- 16:52One is you either have a summary summarization type application,
- 16:55which is here is an active PDF. Give me a summary.
- 16:59Here's my financial report. Give me a summary, Here's a
- 17:02YouTube video. Give me a summary.
- 17:03So those are I think very basic examples.
- 17:05But then going deeper into meeting summaries, convert the
- 17:09summary into an action item list for me.
- 17:12Can you also put it into my To Do List?
- 17:14So those are things that are becoming Philips, you know,
- 17:17summarization is a concept really popular.
- 17:20The second one is this Q&A. And I think this is the most
- 17:23popular use case right now. So if you look at RAG, RAG is
- 17:27probably the defining production feature in almost every software
- 17:31application that exists today. So be it.
- 17:33Customer support, data inquiry, sales, internal IT use cases,
- 17:40almost every software that exists is just hustling to add
- 17:44rag to their applications. And I think the key advantage
- 17:48people are seeing is now you can have.
- 17:51There was always this utopian world shown by chatbot companies
- 17:55earlier on saying that can I just chat with all of this
- 17:58information, all of this knowledge I have stored and for
- 18:01the first time it's becoming possible and to a very large
- 18:04extent accurately possible. This is also the one use case
- 18:08that is not prone to hallucination too much because
- 18:11if you give all of the context to a foundational model then end
- 18:15U returning really great answers.
- 18:17So that's where I've seen people find a lot of ROI and people are
- 18:22willing to pay for tools like this as well.
- 18:25So I think that's the Q and A use case.
- 18:27Rag use case is probably the most popular right now.
- 18:31And the third kind of use cases, I almost categorise them as
- 18:34generative use cases, which is what the word even started,
- 18:38right? So let me a blog post brainstorm
- 18:41the pros and cons of this decision.
- 18:44Here's an e-mail. Can you change the dawn?
- 18:47Can you fix the grammar? I think 1 surprising thing which
- 18:51is I'd love to tell you is that among all of the customers I
- 18:54talked to fix my grammar or fix my tool seemed to be the most
- 18:58useful use cases. And you would imagine here these
- 19:00are like super primary and Grammarly would do it etc.
- 19:04But I think these two use cases see the highest usage amongst.
- 19:10You know, if you launch 10 features and you have these two,
- 19:12these two will probably get used the most, which is very
- 19:15interesting. Yeah, And especially I think
- 19:18that works so nicely for people who English isn't their first
- 19:22language. Yeah, And so you can feel more
- 19:24confident in what you're doing. And knowing that you've got the
- 19:29right tone. For me, it's horrible.
- 19:32I should probably use it because my tone is so bad all the time.
- 19:37But I just am informal. A step below informal, always.
- 19:42You can never expect any formalities out of me.
- 19:44And if I do. Say anything formally, like you
- 19:49should probably report it as somebody's hijacked my account,
- 19:52because it doesn't really work. But I I do see the value of
- 19:57that, the brainstorming, the talking with the different
- 20:00things. I you did gloss over this, but.
- 20:04It's the idea of agents and hey, take the take the meeting notes
- 20:10and then convert it into A to do list.
- 20:13Put it on to my To Do List type thing.
- 20:16It feels like agents are still a little bit flaky.
- 20:20I know there's so much energy going into it.
- 20:24How have you been experiencing them?
- 20:27What have you been working with to try and like help that?
- 20:31Or do you not even touch it like well explain to me your relation
- 20:35with agents? Yeah, I think agents is a
- 20:38another. Phenomenal tech.
- 20:41I wouldn't even call it tech, right.
- 20:42It's more a framework right now. So this framework is almost at
- 20:45the same accuracy level as GP3 was maybe in January 2021.
- 20:50So it's about 70% accurate because essentially you're
- 20:54propagating the error down every step.
- 20:56So the more steps in the branches the agent takes, the
- 21:00more error rate it's prone to. So I think that's the reason we
- 21:04haven't seen agents in production almost at all.
- 21:07But it's one of those tech where a lot of experimentation is
- 21:10happening because everybody's expecting these individual
- 21:13pieces to come down to, I mean the accuracy of the individual
- 21:17pieces to become really high. So if you're nearing though, if
- 21:22all of the accuracy of the individual individual steps
- 21:25trends to be 99.9% and more. Then you can have an agent
- 21:29successfully perform tasks. In areas where accuracy that
- 21:33much is more important. So you know here's a code piece
- 21:36right a unit test case. Try it.
- 21:38If it fails, try again where you can have a recurring use case.
- 21:42We are starting to see agents come up.
- 21:44I think code interpreter is probably the best example of an
- 21:47agent an open adjust. Releasing it out to the world
- 21:51gave people a lot of ideas on how you can really play with
- 21:54agents in production. Saying we're going to start to
- 21:57see a lot more of agents, a lot more of chains, a lot more of
- 22:00merging factual data APIs with probabilistic data nodes And if
- 22:07you see I think. Both Lamma index and Lang chain
- 22:10which are probably the primary orchestration libraries today
- 22:13they are focusing on drag. In the direction of agents, so
- 22:19they like hey today it's RAG but very soon it's going to be
- 22:22agents. So you sort of every company is
- 22:24also building up to that. So it's like information
- 22:27retrieval, just Q&A and actions on top.
- 22:30So you have Q&A with actions and then this if you can do it multi
- 22:34step then it's an agent implementation in production.
- 22:38I think that will be the path for.
- 22:40At least enterprises, companies that are really playing with
- 22:43this with real world users and not just hobbyists who are
- 22:48experimenting with with this tech today.
- 22:51Yeah. I wonder, man, I wonder where we
- 22:54are in the like S curve of our agents going to be able to get
- 23:00to that point where we can reliably use them.
- 23:03And if so, when? Is it a few months out or is it
- 23:07a few years out or is it a decade out?
- 23:09You know, that's the big question because everything that
- 23:13you're saying is, is very true. If you're getting this 5%, if we
- 23:17go back to what you're getting on those 3 million API calls and
- 23:21you're at 5% as soon as you want to do like 2-3 steps, that 5% is
- 23:27much higher than 5% error rate. And so you can't predictably
- 23:32rely on anything. And I don't know, do you see
- 23:35that 5% going to .01% anytime soon?
- 23:40That's the big question. I think it is going there and
- 23:45with the launch of fine tuning in, this is all very recent
- 23:48right now it's almost a new architecture stack is evolving
- 23:53which is. Let's not use a generic model to
- 23:56do everything. Let's try to train very specific
- 24:00models on very specific tasks, which will then be high
- 24:04accuracy, low latency. And I think this is something
- 24:07that I'm very excited about like will there be a worker be queen
- 24:11bee concept where you have a queen bee that orchestrates
- 24:14these smaller? Extremely high accuracy models
- 24:18which are cheaper to run but then only do one task.
- 24:22And then if you have this orchestration worked out really
- 24:25well. Then is when the agent comes
- 24:28out. So I think it's in the.
- 24:30In the evolution of when an agent becomes useful, you need
- 24:34this base infra to be sorted out first.
- 24:37Yeah, it's like I'm having deja vu, man.
- 24:40All of a sudden we're back to small models.
- 24:42What the hell happened? We went through the boom and
- 24:46now, Oh yeah, the these large language models are cool, but
- 24:49small large language models are actually where it's at.
- 24:54That's true. And you know, if you think about
- 24:56it, these small language models might still not be small.
- 24:59They might still be individual, you know, 20 billion, 70 billion
- 25:03models, which are still fairly large, but because we've seen,
- 25:08you know, 1 trillion parameter models, so a 70 billion model
- 25:12feels smaller. It's also much faster, cheaper
- 25:14to maintain, but then you could probably have.
- 25:17Ten of these models fine-tuned for really specific tasks and
- 25:21they outperform the best model any day.
- 25:24In fact, there are studies that came out that said.
- 25:28I think the number one use case for open source models today
- 25:31ends up being. Ohh what's this I mean?
- 25:36N to SQL. And so many companies have now
- 25:39tried fine tuning Lamma 2 on an Alto SQL, saying that hey, it
- 25:44performs better than GBD 4 or any other analytic SQL model
- 25:48that's out there. Which is fantastic because now
- 25:51individual companies can train their natural language queries
- 25:55to SQL on their own data. On a really small, fast open
- 25:59source model and get accuracy levels that are nearing that
- 26:049899% mark, which is when agents now become super useful, right?
- 26:08Because then you can say. The code is my query converted
- 26:12to SQL reliably get the data from my DB reliably.
- 26:16And then convert it to an inside, that's useful for me.
- 26:19So I think all these steps, the individual accuracy levels,
- 26:23there are multiple I think research wings at play to
- 26:26improve the accuracy of each of the individual steps.
- 26:29I would, I would say it's probably.
- 26:32I think six months out. But given that everything moves
- 26:35so quickly, it might be sooner. Ohh, I like it.
- 26:40I like you given a date. That's bold.
- 26:42Man. That is a a lot more than I
- 26:44would go off and say. But let's talk a little bit more
- 26:48about just a lay of the land as far as where you're sitting with
- 26:53Porky and what you're doing, what you're seeing as far as the
- 26:59other tools around you. And below you in the stack, I'm
- 27:04going back to that market map as the reference guide as what we
- 27:10created. And again, there's the
- 27:12foundational model, there's the vector database, there's the
- 27:14sticks or the orchestration layer like the LUMA index or the
- 27:19link chain or Haystack, all that fun stuff.
- 27:22And then there's the other piece where I think you play and so
- 27:26give us the breakdown on that. Yeah, absolutely.
- 27:29So I think. We decided from from our
- 27:32experience, the thing we're good at is when you want to take up A
- 27:36to production. So you've done experimenting,
- 27:39taking into production, and now you want to really find value
- 27:42once you go to production? Is where you need an op stack
- 27:46that helps you with four major things, right?
- 27:49And this is what we've come up with so far.
- 27:50I'm sure this changes every month, but right now we say
- 27:53first you need observability. You need visibility into how
- 27:56your systems really performing. So you need the classic logging,
- 28:00tracing, monitoring and that's the observability stack that's
- 28:04really important. The second piece is, are you
- 28:08also saying though observability of the data too or are you not
- 28:11going that far? You're saying, hey DevOps
- 28:13observability like APM type? Things even of the data, yeah.
- 28:17So I think in this case I think they become merged because you
- 28:21want to observe the latency, the cost and the accuracy.
- 28:25So I think in previous DeVos worlds, latency and cost would
- 28:29almost imply accuracy because the the API calls always truthy,
- 28:34so if it returns the 200 means it's a positive response.
- 28:38So in fact fun story, sometime back we were discussing that
- 28:41maybe we need to invent a new HTTP code which is a 224 or 25.
- 28:46I don't know what it is but it's basically saying the API
- 28:48returned successfully but the data may be false.
- 28:52That's a new HTTP code that almost needs to exist now
- 28:55because. APIs no longer adjust successor
- 28:58error. It's everything in between, yes.
- 29:01Oh, interesting. But just going back to a little
- 29:05bit, it's not necessarily looking at the data streams or
- 29:11the, you're not observing the data flows, it's more just the
- 29:17data and how it's in there, yes, on the prompt specifically.
- 29:21That's true. That's true.
- 29:22Yes. Yes.
- 29:22OK. So once the model is ready, so I
- 29:25think there will be observability.
- 29:26When you're deploying a model and you want to measure the, you
- 29:30want to observe a model that's very different.
- 29:33This is more about observing all of the calls that you're making
- 29:36to the model and then making sure they're all, what's the
- 29:39cost, latency and price of it. Yes.
- 29:42Yeah. I think it's observability.
- 29:44Very different layer. It's not observability on the
- 29:47base Foundational Model itself. OK, cool.
- 29:50So that's one. The second piece is you need a
- 29:53way to be able to connect to multiple of these models and try
- 29:57them out as simply as possible. So when a Mistral launches and
- 30:02you're doing LAMA, you shouldn't have to completely rewrite your
- 30:05systems to see. OK, let me now try, Mr But can
- 30:09you do a 5% AB test with Mistral?
- 30:12Tested out and see if it really works for your audience or not
- 30:15with the same prompts or throw it in new prompts or what does
- 30:19that look like? Depends, right?
- 30:21With some of the cases you could try the same prompt itself.
- 30:24In some cases you have to change the format of the prompt and
- 30:27some case you have to change the entire structure of the prompt
- 30:30is also to rewrite the prompt. So I think in all three cases
- 30:32you need a system that allows you to do that transition from
- 30:36one to the other, test out, rollback these all systems,
- 30:40right. So that's the second piece.
- 30:42Where we calling it? That's the AI gateway.
- 30:46Which enables you to do all of this, Yeah.
- 30:50Hey everyone, my name is Aparna, founder of Verizon, and the best
- 30:53way to stay up to date with ML OPS is by subscribing to this
- 30:56podcast. The third piece is the prompt
- 31:03management and experimentation. I don't know how far this goes,
- 31:06but today almost every company that's interacting with alms,
- 31:10they have a prompt management stack.
- 31:12So how do you define your prompt library?
- 31:14How do you define experiments on them?
- 31:16Etc. The last piece of security and
- 31:19compliance, which is how do you make sure none of your data is
- 31:22getting leaked? You have so much important data
- 31:26that's being put in the prompt or in the vector database.
- 31:29How is it not leaked? How do you stay compliant with
- 31:32your sock too, your GPRS? So that entire stack, right.
- 31:36And this is what we're calling the complete full stack LLM OPS
- 31:41and that's the ecosystem that's evolving.
- 31:43And if I were to tell you where it's placed, you have
- 31:46foundational models if you're doing.
- 31:48And so do you have the deployment layers.
- 31:51Then you have the orchestration layer where you're writing code
- 31:53essentially on top of it. And this orchestration layer and
- 31:57the LLM oops layer now probably need to work together.
- 32:02O which is where you've seen a lot of like Lang chain is doing
- 32:05Lang Smith which is yeah, coherent, right?
- 32:08You have the orchestration layer and then you have the LLM OPS
- 32:11layer. Similarly, I think a lot more
- 32:14needs to be done in the LLM OPS layer, which is where port key
- 32:16placed. Yeah?
- 32:18So if I'm understanding this correctly, and I like these four
- 32:23pillars that you're talking about, hey, we need
- 32:25observability. We need to understand is it
- 32:27working and if it is working, there's almost that element of
- 32:32evaluation comes into it. Yeah.
- 32:34How well is it working? It's not just yes or no.
- 32:38There's a big grey area here. And so we have to figure out
- 32:41what that entails. That's the first pillar, the
- 32:45second pillar you mentioned. And you're going to have to
- 32:48remind me because I want to go through these and I remember the
- 32:521st and the last one, of course, that's how the mind works.
- 32:54I think the last one, let me see if I if I got that right.
- 32:57But the last one is something along the lines of where, where?
- 33:05OK, now I don't even remember the last time.
- 33:08Yeah, I think last one was security and compliance.
- 33:10There we go. That one I I knew it was
- 33:12important, especially because my friend Diego has been hitting me
- 33:16up with all of this fun stuff where they're talking about how,
- 33:21you know, panda packages or just regular like and packages that
- 33:29normal people will be using have been wrought with spyware or
- 33:33whatnot and how the compliance is a big thing that gets
- 33:37overlooked. And the other piece to that is
- 33:41exactly what you're saying on that you have all these GDPR
- 33:44compliance, whatever. But then you have, hey, if I'm
- 33:47going to be using one of these models, how do I make sure that
- 33:52it's not spitting out this data later on?
- 33:55And how do I make sure that the right people have access to the
- 33:59right data and not anymore or any less?
- 34:03And it feels like with these large language models, it's a
- 34:07bit of a crapshoot right now. So that's a hard problem that I
- 34:10would love to dig into. But let me hear the two in the
- 34:12middle too. What were the other two pillars?
- 34:14That you had was so one is prompt management, so prompt
- 34:17management and experimentation, and the other is the AI gateway.
- 34:22So which is basically. Like flexing the multiple LMS
- 34:25and making sure you are the best of you know you can fork out to
- 34:30more Lums than one and then even keep trying out Ulms coming back
- 34:36etc. And the API Gateway sounds like
- 34:39it could get really expensive really fast.
- 34:44So the AI gateway is almost something we're saying becomes
- 34:47the central piece of any LLM product.
- 34:51So if you're building an application that uses SLMS, at
- 34:54some point in time you will have to build an AI gateway which is
- 34:57almost your gateway to the entire adlem world.
- 35:02And this can be a really fast proxy which introduces really
- 35:07low latency, scales very well, but then allows you to load
- 35:11balance, setup fallbacks, do testing.
- 35:14Connects to your monitoring stack.
- 35:18Make sure there's a firewall attached to it so you know all
- 35:20of those things. Again, traditionally going from
- 35:23if I talk about traditional engineering, engine X was almost
- 35:27a requirement when you went to production.
- 35:29Or going API gateway or a cloud flare.
- 35:32These were all things that were almost marked as checklist items
- 35:36saying if you need to go to production, have a firewall in
- 35:39place, have an engine X server in place.
- 35:42This is where an AI gateway will also come to place where if you
- 35:45go to production with an AI model.
- 35:47Having the AI Gateway in place, yeah, yeah, that makes a tonne
- 35:53of sense. So that AI gateway just points
- 35:57the different prompts or the different requests to the right
- 36:02models and it allows you to quickly experiment, rapidly
- 36:07iterate depending on whatever models come out or the the model
- 36:11of the month basically or if you're having these fall over or
- 36:14failover. I can't remember how you put it
- 36:17those requests. Then you're getting a bit of
- 36:21redundancy and you're getting that back up to know that,
- 36:24alright, if I am getting the whatever timeout error from Open
- 36:29AI, yeah, my service is not going to be affected because we
- 36:33can now hit Claude or we can go and we can hit our Llama model
- 36:39that we have up and running. Absolutely, exactly.
- 36:44In fact, most people what I've seen is they would have a load
- 36:48balancer set up between Open API and Azure Open AI because
- 36:51they're essentially the same model and you get more rate
- 36:54limits there than or you've set of fallbacks from say a more
- 36:58costlier model to achieve a model whenever for some reason
- 37:02the costlier model is off. So that is where a lot of this
- 37:05comes into play. I think more than anything we
- 37:08talked about the 5% error rate. We're now seeing that if you put
- 37:12a strong evaluation engine in place and set up these retries,
- 37:16load balancing and fallbacks. With a solid AI gateway in
- 37:20place, you reduce that error rate almost 2.02%, which is
- 37:24phenomenal, right from 5% to 102%.
- 37:28And this is just data we were crunching and I think we're
- 37:31going to release all of this data out in the public saying
- 37:34and it's not just Portia and you could do this yourself, but then
- 37:38you can reduce that 5% error rate significantly which trends
- 37:42to the point you were making earlier which is how do you make
- 37:45agents successful is when you have a you have something like
- 37:48this in place. You have strong evaluations in
- 37:50place and then you can start to trend that error rate near 0 and
- 37:56make agents really, really successful.
- 37:59Well, that that was one of the questions that I wanted to get
- 38:03to was you mentioned the worker bee and the queen bee type model
- 38:08here. Is this a bit of foreshadowing
- 38:12for that? Do you feel like, hey, with the
- 38:15AI gateway, we're going to be able to first hit the big model
- 38:20and make sure that we know which one it is and then that big
- 38:23model can use the AI gateway, it can leverage it and say, boom,
- 38:27now we know which model to go to net?
- 38:29Exactly, yes, and I think this will be on a on a triad of cost,
- 38:33accuracy and latency, because in a lot of use cases you can't
- 38:38have a lot of latency as well, so you might want.
- 38:40It's OK with a little less accuracy, but I want it to not
- 38:44cost me so much or not be so not take so much time.
- 38:49So it's going to be like a interesting mix of all of these
- 38:52three which gives you the best output and the best user
- 38:55experience. It may not always be about
- 38:57accuracy, yeah, yeah. What are you optimising for?
- 39:01Yeah, and recognising that you can have it fast, cheap or easy,
- 39:08but you can't have all three. Yeah, I mean there's just not,
- 39:12yeah, there's those trade-offs And so you know that.
- 39:16Alright, well, if it's coming from this request, we're going
- 39:19to be optimising for speed. If it's coming from this
- 39:21request, we're going to be optimising for accuracy
- 39:23etcetera, etcetera. So that makes complete sense.
- 39:27Let's dive into this security and compliance aspect.
- 39:31What were some of the hard problems that you solved with
- 39:35the security and compliance and how did you go about that?
- 39:39Sure. I wouldn't say we've solved a
- 39:41lot of problems because there's just a tonne of things to be
- 39:44done in security and compliance. And I think we might just end up
- 39:47partnering with some of these companies who are only focused
- 39:50on security compliance. We've done the basics, so you
- 39:54need to have. You know Pi anonymizer at your
- 39:59end. You need to make sure that none
- 40:01of the sensitive data crosses your boundary layer.
- 40:04So how do you do that? So we implemented a π
- 40:07anonymization scheme, and that's extremely hard because you have
- 40:10to implement that in a compliant manner.
- 40:12Again, you can always call GPD 3 and ask it to anonymize.
- 40:15It will do that, but then implementing the anonymizer in a
- 40:19compliant manner is the hard problem.
- 40:21Yeah, that's not sock to. Exactly there is not socked to
- 40:26compliant. Exactly so that is, that's that.
- 40:29Then how do you solve issues around data residency?
- 40:32So if you need to be GDPR, but opener is only in the US, then
- 40:36how do you really prepare for data residency?
- 40:40Which means can you use Open AI as a stateless server which
- 40:44isn't storing any information and the information is always
- 40:47stored in the new server. So the data does go out, but
- 40:51none of the sensitive data goes out.
- 40:54No PII ever goes out, it just processes.
- 40:57A bunch of text comes back and then you're able to derive value
- 41:01from it at the other end. So.
- 41:04I think those would be the two key pieces, the third being
- 41:07stopping DDoS attacks. So we will implement it some of
- 41:11Cloudflare solutions so that you don't get Ddosed.
- 41:14The problem with DDoS that we've heard with customers is that.
- 41:17A lot of times their key gets compromised because of a GitHub
- 41:21repo or something, and then somebody just makes a lot of
- 41:24calls and you know. It's a direct cost problem to
- 41:29you because now you've probably spent $1000 in in a day which
- 41:34you really didn't intend to because somebody got a hand of
- 41:36your key. O we've launched, you know, we
- 41:39launched something called Virtual Keys that allows you to
- 41:42store your open air anthropic keys in a secret vault.
- 41:46We will give you these virtual keys almost like virtual credit
- 41:49cards setup. Spend limits on it distributed
- 41:52to developers. You could even do a hackathon,
- 41:54give out 10 credits to everybody.
- 41:57Nice. And then?
- 41:59The key management happens at the port killer, and it's so
- 42:03much simpler because you can always decommission a key, you
- 42:05can remove a key, replace a key. Rotation is easier because now
- 42:09we've sort of built an entire layer for it.
- 42:12So I think those are the three things that are that's something
- 42:15that we've done, but I can see a lot of applications around.
- 42:19And I'd love to talk to startups about how do you do access
- 42:22control and permissioning, especially with vector
- 42:25databases. I think today no vector database
- 42:27really looks at permissioning really closely.
- 42:30So data leakage is a sure short possibility.
- 42:34I can essentially do a prompt engineering.
- 42:39To get data from a vector database I wasn't supposed to
- 42:42retrieve. So how do you put those cheques
- 42:45and balances in place? So my permissions, I mean, I
- 42:48don't exploit my permissions. So those are things that are
- 42:51becoming important. So you know, leakage is a
- 42:53problem. Prompt injections are a problem.
- 42:57So there's I think a bunch of things that companies are really
- 43:00interesting problems that companies are solving.
- 43:02We've probably done the basics, which absolutely need to be
- 43:05done, but we're looking to partner with some of these
- 43:08companies to do more. Yeah.
- 43:12It's funny because it reminds me of a lot of the talk and about a
- 43:16year, year and a half ago, the idea of the data mesh got really
- 43:22popular. Yep.
- 43:23And treating data as products. And that was a way to combat the
- 43:29these data access problems. And you had the consumers and
- 43:32you had the producers, et cetera, et cetera.
- 43:35Yeah. And I've heard horror stories of
- 43:38people joining an enterprise and not having the right access for
- 43:43data or just for systems, even six months after they've been
- 43:48working at the enterprise. And so taking all that into
- 43:53account and then recognising now we're just going to kind of let
- 43:58that data loose with the LM, it could be a recipe for disaster,
- 44:03right? Exactly.
- 44:05Exactly. Imagine you take your
- 44:07confidential internal data and fine tune a model on it just to
- 44:11get great benchmark results. You do?
- 44:14But then I am probably a new joinee and I am now able to
- 44:17access every information about the company because the model
- 44:20already has seen all that information.
- 44:22So that's just a nightmare and you can't really.
- 44:25I haven't seen a good enough solution right now that can put
- 44:28that can control the output of an LLM and say, hey this is not
- 44:33data that you have access to because there is no data control
- 44:36within another level. Yeah, it's almost like you need
- 44:40to do the reinforcement learning with human feedback on top of
- 44:46the fine-tuned model. Yeah, it will just be your like
- 44:50compliance layer and say as an AI with your security
- 44:55credentials you cannot, I cannot tell you that type of thing.
- 44:58Exactly. Exactly.
- 45:00And I don't think that's going to be an easy problem to do
- 45:02because there's this hundreds of permissions that the AS got to
- 45:06learn about. Yeah, 100% man, that is wild.
- 45:10That that's really like, it makes you think twice about the
- 45:14use case that you're trying to solve for.
- 45:17And this one comes down to what is the worst that could happen,
- 45:23right? Like, ohh, yeah, we've got this
- 45:25chat with our data and we think everything's fine.
- 45:28But what's the worst that can happen if all this data is now
- 45:31free to anyone who is prompting The model is that maybe that's
- 45:36really bad or maybe it's not. So really thinking through that
- 45:41isn't a fascinating one. And then also the idea of like
- 45:44having these digital keys. I like that too, because it's
- 45:48like you're giving out Brex cards for the open API keys
- 45:52almost. Exactly, Yeah.
- 45:54Yep, that's cool. So there is another thing that I
- 45:58wanted to touch on with you, which is the idea of forward
- 46:01compatibility. I know that you mentioned you
- 46:05were thinking a lot about this. I'm not super clear on what it
- 46:08is, so please explain it to me like I'm 5.
- 46:11Absolutely. So I'm sure you've already
- 46:15thought about it in some form of fashion, but I think the term
- 46:18forward compatibility, let's look at it right.
- 46:20So whenever you're designing any system, you always worry about
- 46:23backward compatibility. So anything I design now should
- 46:27be supported on every other system that my users are going
- 46:30to see it on, right? So it has to be compatible with
- 46:32browsers and machines and whatnot.
- 46:35Yeah, I think with. With AI, the pace at which it's
- 46:39moving, one constant fear I hear from enterprises is that.
- 46:44You know, any investment we make might just get wasted two months
- 46:49from now. So should I be even fine tuning
- 46:51my model now? Should I even build my own
- 46:53foundational model? So, And in that conundrum
- 46:57almost, there's inaction. So you can't take a decision,
- 47:01you can't move forward because you're like hey the there's no,
- 47:03the dust hasn't settled and I can't move fast enough to really
- 47:08launch anything into production, which is where a lot of
- 47:11enterprises seem to be they want to invest, they are investing,
- 47:14but then they they're constantly caught on.
- 47:17You know, we'll, we'll keep chasing a trend that changes too
- 47:20fast for our own likeliness. Yeah.
- 47:23And I think that's where the concept of forward compatibility
- 47:25comes in, where we're saying that.
- 47:28You probably need to have a system in between your
- 47:31application and generative AI that allows you to keep up with
- 47:37the new models, the new databases and the new frameworks
- 47:42that come into play. So.
- 47:44So how were you able to? So let's take this example,
- 47:48right, GPD launched 0613. They said, hey, this is the
- 47:52latest and greatest model we have.
- 47:54Go try it out and that's it, right?
- 47:57But then how does an enterprise really try it out?
- 47:59They're not used to change management by just switching API
- 48:02endpoints. They have a testing procedure,
- 48:05they have user focus groups and whatnot.
- 48:07Tonnes of things to do. O We're seeing this is where
- 48:10probably a smart AI gateway can come into place, where now the
- 48:14enterprise goes and says OK. G's non 0613.
- 48:18We're seeing a good enough success rate with the previous
- 48:21version, but now we want to test this out.
- 48:24So they say, OK, let's route 5% of our traffic.
- 48:28In a very dark mode, we're sampling some traffic and
- 48:31sending that out to GPD 613. The result that comes back is
- 48:36evaluated with stuff that is being shown to the user, which
- 48:40is from the older model. You do a quick evaluation over
- 48:44the course of a day, decide if this is worth shipping or not.
- 48:47So it's almost like a private benchmark that you're running in
- 48:50real time. Once you're satisfied, which is
- 48:54almost like a CICD test, you've ascertained that nothing has
- 48:58regressed. You can then say, OK, let's do a
- 49:005% rolling release to my users. So 5% of my users see the newer
- 49:06model, 95% see the older model. When you're happy, you can ramp
- 49:10it up to 100% and now this entire orchestration can then be
- 49:14managed by an AI gateway. And the only way this is
- 49:17possible is if you decouple your AI gateway from your code, so
- 49:22you can continue to have lane chain lamma index your own code
- 49:26that is making these calls to alms.
- 49:28But then you have something in between that lets you very
- 49:32quickly swap out and swap in components.
- 49:35O. If you're using Lamma Lamma 70B,
- 49:37you're fine-tuned. It can you also very quickly
- 49:40find Tune a Mistral. On the family.
- 49:43Tested out. Launch it in a phased manner to
- 49:47your customers and that's I think.
- 49:50What we're talking about as forward compatibility.
- 49:53Wow, Yes, that makes 100% sense. And the idea of that fear is
- 50:02real. I have heard people talk about
- 50:04it too. It's like by the time I actually
- 50:07get my the Mistral fine-tuned is they're not going to be a new
- 50:11model that is the flavour of the month.
- 50:13And I don't even want to mess around with minstrel or how do I
- 50:17know which? Do I Do I find Tune Llama or do
- 50:20I find tune Mistral? Do I find tune Falcon?
- 50:24And the ability to say, you know what, I'm going to try all of
- 50:29them and see if I can do it real quick and then see which ones
- 50:33are giving me the best preliminary results.
- 50:36And then we double down on that one.
- 50:38Yep. And so you said something there
- 50:42that's that's also interesting that I would love for you to
- 50:44dive into more, which is decoupling the AI gateway from
- 50:49the code. Can you explain that more?
- 50:53Yeah. Sure.
- 50:54So I think the way to getting to this stage of forward
- 50:59compatibility would be let's not call.
- 51:04Let's not hardcode the open API call within my code.
- 51:08O within my code I should decouple it to say OK.
- 51:13I need to make an LLM call. With this prompt ID with this
- 51:17data that I have and expect an answer.
- 51:20That's it. The AIR gateway can then
- 51:23transform this prompt data and expected API call into the best
- 51:29possible model that's out there based on the rules I've defined.
- 51:33And then on the way back again transform the response into a
- 51:36consistent format that the code understands.
- 51:38O. Now my code never needs to
- 51:40change when I'm switching between models, when I'm
- 51:43switching between rooms. And that exists on a very thin
- 51:47fast layer, which is the gateway I see.
- 51:53And it's almost like you can add in what we were talking about
- 51:57earlier on what are you optimising for.
- 52:00And so that the model or that call knows, OK, we're optimising
- 52:05for speed, we're going to go for this smaller model, we're
- 52:08optimising for cost, we're going to go for the open source model
- 52:11etcetera, etcetera. And you don't have to put that
- 52:16specifically in the code, you just put pointers to the AI
- 52:20gateway and the AI gateway knows what to do with it.
- 52:23So it's basically the AI gateway is starting to make sense for me
- 52:26now. The AI gateway is like a catch
- 52:29all for whatever you're doing. Nothing goes through your walled
- 52:37garden. Nothing can make it through to
- 52:41the LM, whatever LM it is, unless it goes through the API
- 52:45Gateway. Yeah, Yep, exactly.
- 52:50And it makes sense why you would want to put the security and
- 52:54compliance layer there also. Yes, true.
- 52:58Because then it's like, hey, make sure that nothing ever hits
- 53:02the LM that I don't want to. Exactly, yeah.
- 53:07From once it hits the LM, it's kind of too late.
- 53:10Then it goes straight to output. It doesn't go back through the
- 53:13AI gateway. So it also goes back through the
- 53:17I gateway so you can ensure that no data leaves your walled
- 53:20garden that you didn't intend to leave.
- 53:23And whatever comes back from the AI can then be evaluated, tested
- 53:28on. Checked for moderation.
- 53:31All of that and then send back. So it's basically just on both
- 53:35sides. You're making sure that.
- 53:38We've picked the best prompt, the best model and send the
- 53:43request out and then on the way back in we've tested everything
- 53:47and made sure this is the best response that's possible and
- 53:50then send it back to the user. The magic is in how fast can you
- 53:54do it and how accurately can you do it and that is where I think.
- 54:01That's where we are most excited about saying how do you build
- 54:05the best AI gateway? And essentially you can almost
- 54:09think of how does this connect to a firewall that somebody else
- 54:12is building? How does this connect to?
- 54:14Maybe we have our own observability there, yes, but
- 54:17you want to connect this to a data dog and here I want to do
- 54:20all of my monitoring data log. Perfect.
- 54:22The gateway connects to Data Dog as well.
- 54:25So that then evolves as the one product enterprises will use.
- 54:29If they want to be confident about deploying LMS in
- 54:32production, that's it. Yes, alright, Fascinating.
- 54:38And then I guess the fun part there too is thinking about all
- 54:42of the possibilities that you now have if you're able to.
- 54:47Say, whenever I use the Mistral model, I have specific prompts,
- 54:54and the API Gateway knows what prompts work best for Minstrel,
- 54:57and so it takes that into account as it throws the data or
- 55:03the whatever my like call is. And if I'm using 3.5, then cool,
- 55:10I I have my specific prompts for that too.
- 55:13If I'm using four, I have my specific prompts.
- 55:16If I'm using cloud, whatever it may be, and you don't really
- 55:20have to in the code, specify any of that because the API gateway
- 55:26knows. Alright cool, we're routing this
- 55:28based on whatever conditions we need.
- 55:32We're routing it to Claude, so we know this is the prompt that
- 55:37we're going to use for this type of scenario.
- 55:39Exactly, exactly, yes. Yes, dude, I love it.
- 55:44I I knew you were working on some cool shit.
- 55:46I didn't realise it was that cool.
- 55:48And I had seen the idea of this API Gateway, because I think it
- 55:55came up in one of the threads in Slack, right?
- 55:58And that idea seemed like something that people were very
- 56:02much on board with. So that's awesome.
- 56:05Before we jump man, I want to know what was one of the hardest
- 56:11design decisions that you've had to make since creating import
- 56:15key. Yeah.
- 56:17Ohh. I would say it's something that
- 56:20we're still debating, is the. Is going open source or not?
- 56:24It's not a design decision almost.
- 56:26I think it's more a company design decision.
- 56:30Do you want to do it open source or not?
- 56:32And I think we've. We did a lot of thinking.
- 56:36We brainstormed with Shaggy about it, tell us the pros and
- 56:39cons of open sourcing this or not.
- 56:42I think we ended up deciding that hey, the AI gateway is
- 56:45probably one of the pieces that we should open source and we
- 56:48have gone ahead and open sourced.
- 56:50We've not really gone ahead and announced saying our AI gateways
- 56:54open source, but Rubias is the AI gateway that we've opened up
- 56:58that's got transforms to so many different AI models out there.
- 57:02It has caching. Retries, fall backs, all of
- 57:06these capabilities built in. And we'd love for the community
- 57:09to come in, look at it, build their own gateways, following
- 57:13those principles or contribute back to it, etc.
- 57:16But that's been really hard for. We're not a nonprofit
- 57:21organisation, so how do you decide what to open source?
- 57:24What makes sense and not just for OK, because the trend is to
- 57:28open source will open source something, but what?
- 57:30Is it meaningful enough that we open source into the world?
- 57:33And then what is meaningful enough that we keep it internal?
- 57:38So yeah, I don't know if that answers your question, but that
- 57:40was probably a very long and hard discussion internally.
- 57:45Yeah, it. It's fascinating to me thinking
- 57:47about that because yeah, at the end of the day, a man's gotta
- 57:52eat. And you wanna make sure that if
- 57:56you're open sourcing something, it's providing value to people.
- 57:59But then you're not cannibalising the business by
- 58:02open sourcing something or you don't open source too much.
- 58:06And if someone's going to pay for your product, what is that
- 58:11extra value add that you're going to be offering to the
- 58:17different customers? So I feel you, man, I'm sure
- 58:21it's something that you still are thinking about and you're
- 58:25trying to navigate your ways and it doesn't help that everything
- 58:29is so new and everything is changing and and there's a new
- 58:32tool that's coming out in the stack every other day.
- 58:35And so it's like where do we fit where like that identity crisis
- 58:41almost and recognising if you are an open source player or if
- 58:44you're a a closed source play and how that looks.
- 58:48Absolutely. Yep.
- 58:50Yep. That's true.
- 58:52We're ahead, dude. Thank you so much for coming on
- 58:54here and explaining all of this to me.
- 58:56I enjoy every time that we talk you know this.
- 59:00I always appreciate all the help you've given me in the community
- 59:03and helping me understand things from a fundamentally different
- 59:07level. I also cannot thank you enough
- 59:10for the help you did on the report and hopefully we're going
- 59:15to make another one of these with the evaluation report and
- 59:17that's right up your alley. Stuff that you're working on
- 59:20right now. For everybody out there that is
- 59:22listening, check out Port Key, show some love.
- 59:25And the open source project was called What again?
- 59:28It's called Rubius. You can just search for Rubius.
- 59:31Yeah, RUBUS on GitHub, Rubias, here we go.
- 59:36So go check that out, play with it, have some fun with it and
- 59:40we'll talk to you later, man. Absolutely.
- 59:42Always a pleasure speaking with them.
- 59:48Hey, I'm Vishnu. I'm a data scientist at first
- 59:50hand and I definitely think that you should subscribe to the ML
- 59:54OPS Coffee Sessions podcast. It's the best podcast out there
- 59:58to stay on top of what ML OPS actually is to talk to the true
- 1:00:01thought leaders in the space. And oh by the way, Demetrius is
- 1:00:05absolutely hilarious. What a weird guy.
- 1:00:07You should definitely subscribe to the podcast.