Latest / Agentic Conversations (formally mlops.community) / Using Large Language Models at AngelList // Thibaut Labarre // #171
Transcript
- 0:00My name's Tibo. I'm an engineering lead at
- 0:02AngelList and I don't drink coffee.
- 0:05I drink liquid death exclusively.
- 0:08This is my go to drink so. Hello and welcome to another ML
- 0:13OPS Community podcast. I am your host Dimitrios, and
- 0:15today I'm joined by none other than Mr. Ryan Russell.
- 0:20How you doing, dude? Doing all right.
- 0:22It's been a been a minute, but yeah, glad to be here.
- 0:25You graduated from guest to co-host and now?
- 0:31You were such a good Co host the first time we had you on.
- 0:33I had to have you back and I am very happy that I did.
- 0:37We explored just about everything when it comes to
- 0:41using Open AI. Models, building them into your
- 0:46product with. To go in this conversation, did
- 0:50you have any main takeaways that you want to share with us?
- 0:54I think they're similar to what you said but I think a lot of
- 0:57it, you know I'm an infrastructure person in general
- 1:00there's over engineering crap is my job.
- 1:01No, I I I was. I'm always intrigued to hear how
- 1:05today again with the hype around these LM models and especially
- 1:09as like a as a service being provided by so many different
- 1:12companies such as Open AI, how people are building around them
- 1:16and how they're extracting value from them because it's I think,
- 1:20right. The value is more than just
- 1:21wrapping it up in vision software.
- 1:24There's a lot that goes into it. Yeah, It was interesting how
- 1:26Tebow went through all that and talked about those challenges
- 1:31and the things that he had to do to make specifically relay his
- 1:35product for Angel list. Kind of a viable solution and
- 1:38really bring value out of that. Yeah, so he breaks down relay
- 1:43what it is. They just released it today on
- 1:45the day of this recording, which by the time this comes out will
- 1:48be like a month ago. But.
- 1:51I was fascinated with. His dedication to figuring out
- 1:57if. A feature.
- 2:00Is actually viable? And if it's worth pursuing?
- 2:05And not getting caught up in the over engineering like you were
- 2:10saying and so him going from zero to 1 on the two different
- 2:15use cases that he talked about I thought were awesome to see.
- 2:19And every time we asked them all these things about well what
- 2:23about if do you want to use a new model maybe you want to try
- 2:26a different API's like anthropic or cohere.
- 2:30He's like, yeah, but we've got so many different features that
- 2:34we want to in. We want to create.
- 2:37Why would I waste my time trying to figure out a new model when I
- 2:42can spend my time? Creating new features with the
- 2:46model that I already know works quite well.
- 2:49And I mean, I, I we questioned with it, right, challenged a bit
- 2:52on the, the scale, right, like what is the upper limit And
- 2:54there's definitely risk when you tie yourself to a third party
- 2:58vendor, there's risk when you tie yourself to a managed cloud
- 3:00service as well, right. I loved hearing how he was
- 3:03mitigating those risks, how they thought through.
- 3:05It wasn't just like, Oh yeah, I didn't really think about that.
- 3:07I was like, no, we thought through this process.
- 3:09We thought about it beforehand. We made a deliberate decision to
- 3:12proceed the way we did and I appreciated that.
- 3:16Again, that's that like narrow focus on this is what we're
- 3:19trying to deliver. Here's the value we want to add.
- 3:21We're not worried about this limit right now, but we'll get
- 3:25there. Maybe we'll worry about it when
- 3:26it's a little bit more pressing. And I think it's brilliant that
- 3:30they're just sticking to their guns and trying to.
- 3:34Tackle the low hanging fruit before they.
- 3:37Add complexity to the scenario and as he was saying, yeah,
- 3:42we're going to look at fine tuning or creating, potentially
- 3:45creating our own large language model and going after all of
- 3:49that. But first, let's just tackle
- 3:52these use cases that we know we can use Open AI for and we know
- 3:56it brings a huge value add to the end user.
- 3:59So hats off to him for that. I think we should just go ahead
- 4:03and get right into the conversation.
- 4:05But before we do, I want to mention to everyone.
- 4:08It would be a huge help if you have not already hit, follow or
- 4:13subscribe or like or rated. This podcast means the world to
- 4:18us if you do. And also that one thing that
- 4:22would help us the most would be if you share this podcast with
- 4:25one friend so that we continue to spread the good word of the
- 4:31ML OPS community. And without further ado,
- 4:48That you're a huge fan of Isaac. What brings that about Isaac
- 4:55Asimov? Like some of the best books I've
- 4:58read as a kid, actually, really early on.
- 5:00And UNCLE gave me foundation and I just devoured the series, like
- 5:04all the prequels, all the sequels.
- 5:05So yeah, really big fan. And I think his vision is still
- 5:09relevant today, especially as we see all the advances in AI
- 5:13machine learning. Did you watch the series?
- 5:15Yep. On Apple TV.
- 5:17Yeah. I think you liked it.
- 5:19Yeah, yeah, it's different from the book.
- 5:22But honestly, like, you know, for me, like going back into
- 5:24this universe is just just just amazing.
- 5:27It's like a dream come true. What captured your imagination
- 5:30the most? I think the portrayal of Leon,
- 5:33like the, you know, the Emperor, and like the way they render
- 5:36like the three generations living together.
- 5:38I think that's always like, interesting.
- 5:40Like, really well done. Yeah.
- 5:42And so for those who don't know maybe what it what is it that we
- 5:47are talking about right now? The Foundation series, this was
- 5:49a book that was published in the 80s, right?
- 5:51Or was it even? Yeah, maybe if you're in earlier
- 5:54than that, I think little earlier, you need to ask.
- 5:57Yeah, like some. Very sci-fi book, but it
- 6:02explores a lot of these existential questions.
- 6:04And yeah, Asimov is the one who created the Three Laws of
- 6:08Robotics, right? The robots should obey orders
- 6:13that they should not harm any human.
- 6:17And you know what I should have? Probably you'd find.
- 6:22That was kind of the confusing part.
- 6:24Is that? Instantly.
- 6:28It's not clear like the whole thing about these books that is
- 6:32so brilliant is how he explores the grey area.
- 6:35That's right. Not my.
- 6:37My biggest takeaway is that it's yeah, you can have these three
- 6:41laws. But at the end of the day,
- 6:44there's a lot of room for interpretation, and especially
- 6:47depending on the events and depending on how reality plays
- 6:51itself out, you can get yourself into sticky situations.
- 6:56That's right. It's also the question of like
- 6:58saving one person, you know by maybe harming another one.
- 7:02Like with Call should the robot make?
- 7:04And especially as it scaled to all of humanity.
- 7:06Right, that was the third law, right?
- 7:07You have robots got to protect some existence so long as it
- 7:11doesn't violate the first two laws, right?
- 7:12That's. Perfect.
- 7:13Well, awesome. I didn't think we were going to
- 7:15take that turn, but let's let's get into this, man.
- 7:19So you're working at Angel List right now.
- 7:21Y'all are doing some pretty wild stuff when it comes to AI and
- 7:25ML. It's probably worth just giving
- 7:28us a bit of background on on what the ML journey has been
- 7:33like and then how it's changed since the emergence of ChatGPT
- 7:39and all that fun stuff. Yeah, for sure.
- 7:41So I joined a list about like three years ago, and this was
- 7:45for me a dream job. Like Angel invested on the
- 7:48platform for a few years. And yeah, getting to work on my
- 7:53hobby, it was a lot of fun. And my background was working on
- 7:59natural language processing at Amazon, basically parsing all
- 8:02customer feedback, right, so that we could package it for PMS
- 8:06throughout the company to to use to improve their products or
- 8:09improve experiences. And so naturally I gravitated
- 8:12towards problems that allowed me to, you know, put some machine
- 8:16learning in place at Andrew Lists.
- 8:18And so one of the early problems was the ability to classify news
- 8:22articles so that we could actually route them to the
- 8:25investor dashboards for any companies that they've invested
- 8:28in. And so as you can imagine, I
- 8:30built a simple classifier, label the bunch of articles and had
- 8:34this running pretty smoothly to media a month or two to deploy
- 8:37and get out the door. And so that was like step one,
- 8:40Like, you know, pretty basic, run-of-the-mill machine learning
- 8:44use cases. Another thing is, for my own
- 8:48coding work, this was the early days for GitHub Copilot.
- 8:52Like they had just launched, I think you know, an open beta
- 8:55that was free to use. And it was maybe one of the
- 8:59engineers on the team trying it out and having fun with the
- 9:02outputs and realising that it actually helped me write unit
- 9:05tests a lot faster than I could before.
- 9:07So it was the early days, but yeah, it was.
- 9:10You could see glimpses of where we are today.
- 9:13You glossed over something there that I think is interesting, and
- 9:17you said, yeah, it took like a month or two to deploy when it
- 9:20came to the. Your first project, the hit.
- 9:24Were you walking into an already mature organisation?
- 9:27Break down what it looks like at Angel List.
- 9:31Yeah, for machine learning, right.
- 9:33Yeah. So I was probably maybe the like
- 9:36the 1st engineer on the team to have some experience working
- 9:40with machine learning. And so yeah, it was I think not
- 9:43a mature organisation from that perspective at all.
- 9:46Like there were no data scientists.
- 9:47Like there were no, you know research scientists.
- 9:49Like no one focused on machine learning as a core competency.
- 9:53And I think the team had explored use cases, maybe off
- 9:57the shelf APIs that you could call for for some use cases that
- 10:01under the hood used machine learning models, but nothing
- 10:05that had been trained specifically for annual list use
- 10:07cases. So yeah, it was pretty new.
- 10:09What's great about this company is it's like willing to try
- 10:12things out and really gives a lot of autonomy to all employees
- 10:16on the team, right. Like when we join, we're told
- 10:18hey, you're the, you're the founder for your one person
- 10:20startup, right? And we trust you.
- 10:22We hire high judgement people and like you go to you're saying
- 10:25you don't need to, you know ask for too many permissions to try
- 10:28things out. And so I think that that clicked
- 10:30and that allowed me to experiment, get things out the
- 10:33door and so two months, I mean in retrospect it's maybe a bit
- 10:37long, but I think it's a lot shorter than what it could have
- 10:40been at another organisation and I had to go through you know, a
- 10:44lot of approval processes and you know getting sign off like
- 10:48before starting the project. It's interesting always to hear
- 10:50when someone comes into a company and like data science is
- 10:54not, is not existent. I've been there, I've been, I
- 10:56feel like, you know, I've been in companies where it's just
- 10:57kind of like it's gorilla data science, right.
- 10:59You're just you're the only person who might have an idea of
- 11:01what's how to do something. And then you're it's up to you.
- 11:04Also build whatever you're going to build.
- 11:07You have to now manage sort of a platform, right for this thing
- 11:09you have to be you're now the owner of this.
- 11:11So how does that look like for you going into again a company,
- 11:17not very much data science. You don't have machine learning
- 11:20engineers. How is that now?
- 11:21How is that when it got there? Like what is that that journey
- 11:23look like to actually building out something that can be useful
- 11:26in an AI sense? I had a bit of a head start
- 11:28because there was very familiar with the AW services that
- 11:32supported you know, machine learning and text specification.
- 11:35I used Comprehend, I trained the custom model there and so a lot
- 11:39of the infrastructure was ready for me to apply to the problem.
- 11:44I also picked a textbook problem so like the complexity was
- 11:49pretty low. We're talking news article
- 11:50classification, so that was also maybe a bit of a a hack to get
- 11:54to a working solution faster. But yeah, eventually end up
- 11:59maintaining this over its life cycle and like onboarding more
- 12:02engineers to work in the in in the same framework to apply
- 12:06these technologies to other problems.
- 12:07And so I think we've really built a lot of competency around
- 12:11this but more from a practitioners perspective like
- 12:14we haven't spent too much time fine tuning what was available.
- 12:18We really have leveraged off the shelf services.
- 12:21So I think that made the maintenance and operations of
- 12:25the systems a lot easier than than otherwise.
- 12:29And do you feel like it cause? That's something I think those
- 12:33trade-offs are things that people think about a lot, where
- 12:38it's like, yeah, we can just get up and running, leapfrog,
- 12:42basically go from zero to one really quick.
- 12:45That it. But then you also are giving up
- 12:48a lot, right? That's the trade off is that you
- 12:51don't get to necessarily be very opinionated because everything
- 12:54that you're using makes those choices for you.
- 12:57And in your experience, it's been good enough to just go with
- 13:02everything off the shelf and take it and figure out how you
- 13:05can work within those constraints.
- 13:07Honestly, it was not good enough.
- 13:09I mean it was good enough for a period of time but there were
- 13:12like core limitations like things that just didn't you know
- 13:16like work for us and like 2 examples like 1 comprehend when
- 13:20you deploy your model like you have to scale it to I think the
- 13:24lowest priced point custom model that you can deploy is like
- 13:28$1000 per month. And basically they give you one
- 13:32server and you can scale it up or down like there's no server
- 13:35less solution to that and $1000 worth, pretty expensive for what
- 13:38we were doing. And so that wasn't great.
- 13:42And the second thing was we needed to go a little bit deeper
- 13:46into the news articles themselves.
- 13:47We needed to understand, for example, if there was an
- 13:49acquisition, who is the acquirer, who was the inquiry,
- 13:52right. And that does not come as like a
- 13:54default text classifier off the shelf.
- 13:57And so there were limitations and we actually were able to
- 14:01kind of deprecate the whole thing and rewrite the whole
- 14:04system in a day. And I'm not kidding like in one
- 14:07day by leveraging large language models like Open AI.
- 14:11So basically a prompt, no fine tuning, just asking to classify
- 14:15those articles according to the categories defined.
- 14:18Maybe one or two. You know, like future arts
- 14:20examples like basically like replaced and dramatically
- 14:25simplified like what I had spent two months building and allowed
- 14:29us to go even deeper to do things like ohh, now we want to
- 14:31know who the acquirer is, who the acquirer is.
- 14:34We also don't care about raises from VC funds.
- 14:37We only care about when the company raises.
- 14:39And all of that was super straightforward to write as
- 14:41just, you know, prompt improvements.
- 14:44And then that was with GPT 3, right?
- 14:47And when, you know, 3.5 came along and then GPT four came
- 14:51along, like burst system just got better, you know, with us
- 14:55and doing 0 work and it was cheaper also because now we
- 14:58weren't paying for that one server to keep running all the
- 15:01time, we were just paying per per prompt, per request.
- 15:04And so, yeah, that's just how the world has shifted a little
- 15:08bit and how now we are actually empowering a lot more people to
- 15:13basically train similar models for similar use cases, right,
- 15:16without with a way lighter infrastructure actually to do
- 15:19this work. So yeah, you went from cloud
- 15:22managed. Write a WS's solution to.
- 15:25Now you're just purely vendor third party option, right?
- 15:28Essentially, I'm sure there's a still in there, but you've now
- 15:31just built your system around open AIS chat model pretty much.
- 15:36Yeah, that's right. OK.
- 15:39And I am assuming that you're having to do something.
- 15:44Because Open AI doesn't know about the most up-to-date
- 15:49acquisitions or funding rounds, et cetera, et cetera.
- 15:52So are you doing some kind of? Retrieval augmented generations
- 15:58or how does that look? So you basically feed the news
- 16:02article in the context, right? So it it is provided with like
- 16:05the recent current data. And like Arminius case is really
- 16:09data extraction. Which means that we're just
- 16:12asking you, hey, given this news article, what are the key pieces
- 16:16of information? What are the named entities?
- 16:18Who's the acquirer? Who's the inquiry?
- 16:20Yeah, open the iBooks. Like, awesome for these kinds of
- 16:23use cases. And we can also double check
- 16:25that whatever we've extracted is actually in the source, right?
- 16:27So like preventing hallucination is easy with use cases like this
- 16:31one. How are you doing that?
- 16:33I imagine you're not just like double checking human wise.
- 16:36We still have some human in the loop processes, especially for
- 16:40like news articles that we published to our sites.
- 16:43Like doing a little bit of duping like picking the best
- 16:45article is still something that we do manually, but over time we
- 16:49could also get rid of that once we're confident enough in our
- 16:53models. And like in practise they've
- 16:55performed like amazingly well, like for those data retrieval
- 16:59tasks, I think like GPT 4, is that be 99% accurate, right?
- 17:04Like, I mean it's like human accuracy, right?
- 17:06Because humans make mistakes as well.
- 17:08So right now we we trusted for actually most of the basic tasks
- 17:14in the process, right? And we start trusting it with
- 17:17higher and higher complexity tasks that we send it its way.
- 17:22Do so if I if I'm understanding this correctly, it's basically
- 17:25like you are having a programme scour the Internet for the most.
- 17:32Up to date news and then when you get something that at some
- 17:37point so how do you first classify it that it's relevant
- 17:42to what is happening on Angel list Just if it has a mention of
- 17:44a company pretty much we actually the problem is pretty
- 17:47basic is like is this relevant to a company raising money
- 17:51exiting or you know having a product launch.
- 17:54And then from there we ask if it's an exit, is it an
- 17:58acquisition? And if it's an acquisition,
- 17:59who's the acquirer and who's the acquirer?
- 18:01And that gives us what we want like structure.
- 18:05It has like nice like Jason blobs that we attach to our data
- 18:08model. I imagine you have had to.
- 18:12Fight for why this is actually valuable, like a value add to
- 18:17the Angelis product. I'm guessing that it.
- 18:21At the core, it's making the investors who are on Angel list.
- 18:26Be more informed. But have you thought about how
- 18:30to actually quantify that? Like do you have metrics around,
- 18:34hey, you know, these open API calls are costing us XML, but we
- 18:38see that the engagement has gone up this much, which can signify
- 18:42more investors spending on Angel list or something like that.
- 18:46So this functionality was actually something that we were
- 18:51paying people to do, like we actually were working with
- 18:54contractors to do some of the manual classification before,
- 18:57right? So I did not have to make the
- 19:00business case for the need for this feature.
- 19:02It's actually one of the top requested feature from
- 19:04investors, right? Obviously, you've put money, a
- 19:06lot of money into a company like you want to know how it's doing,
- 19:09you know what's going on with it.
- 19:11So we don't have a formal, I think, ROI analysis of how
- 19:16accurate classification of company news and assignments to
- 19:20investments gives us in terms of engagement on the site.
- 19:22But we know we need this feature, and we know that we are
- 19:26now able to do it way cheaper than we were able to do it
- 19:29before. Because, yeah, Open AI costs are
- 19:31a fraction of like the contractor costs that, you know,
- 19:35we were paying before. I was thinking about something.
- 19:39This is kind of a challenge question.
- 19:40You might want to cut this out later, but.
- 19:43Alright, that's a great way to start it, yeah.
- 19:46This is what I'm going to say. So there's there's a lot of talk
- 19:49around, you know, obviously there's a lot of hype around
- 19:51these. Open AI's solution?
- 19:54We've seen a lot of models, large language models, come out
- 19:57since and kind of resent themselves right to the public.
- 19:59There's a lot of, I think there's some discourse around
- 20:02how valuable it is to build applications that literally just
- 20:06kind of wrap what these vendors are providing and that the real
- 20:11value is actually like data, the data that's being used, right,
- 20:14that's like the actual value is. So I think going off of
- 20:16Demetrius question a little bit in terms of the ROI, the value
- 20:19add, right, you're spending X amount obviously on on open AIS,
- 20:23you know the API side of things provide this as a service.
- 20:27From a long term perspective, how do you think this product
- 20:31could evolve to be even more valuable or you know what is the
- 20:34next, what's the next value add if you can talk about that?
- 20:37Yeah, I mean it's a great question and this is definitely,
- 20:40these are areas that we're exploring.
- 20:41What I was describing with the news article classification use
- 20:44case was basically the first lightbulb moment of wow, this
- 20:47stuff we were doing manually. And with a lot of effort we can
- 20:51actually replace it with, you know, simpler and more
- 20:53straightforward solutions really quickly.
- 20:56And that led to. Where else can we apply this and
- 20:59what else can we do with this technology?
- 21:01And so the point about using a lot of the data and a lot of the
- 21:07information that's available to train custom models or basically
- 21:12on top of the base foundation models like train maybe focused
- 21:17layers that are dedicated to a subset of our data.
- 21:20For example, maybe the subset that's relevant to a single
- 21:23customer, so we can start having them interact with their
- 21:26information, let's say all your investments.
- 21:28For example, and start interrogating, interrogating it
- 21:31just like you would have a general conversation with Shaft,
- 21:33right? Like what if you could say what
- 21:35investments did I make in this industry, right, in the space
- 21:38industry that we're at the seed level and how have now raised
- 21:43the series be like that is a request that reasonably could be
- 21:47answered by a model that's trained on all the investments
- 21:49that you've made. And so, yeah, these are areas
- 21:52that we're exploring in like the part of the company that I'm
- 21:56working on, but it's obviously really caught on and like.
- 21:59Everyone's now thinking through how can we simplify, how can we
- 22:02automate, and how can we improve the experiences that we're
- 22:05building with these new tools, Right.
- 22:08It's become a building block, really.
- 22:10OK, I like that answer. Good.
- 22:11It seems like it's kind of this race now around there's a lot
- 22:13around the hype right around building any kind of experience,
- 22:18I'll call it, around large language models.
- 22:20And so I think a lot of companies right now want to be
- 22:24part of that, right. Do you think there's value in
- 22:27companies taking their own data and reading their own
- 22:30foundational models to build these types of solutions off of?
- 22:32Or do you think that it's better to just take something off the
- 22:35shelf as pre trained foundation model and tune it to the needs
- 22:39of whatever it is you're industry is or whatever your
- 22:43problem is? Yeah, the.
- 22:46And sort of from my perspective is that I think the return on
- 22:49investment is obvious and really straightforward with just taking
- 22:53off the shelf models and applying it to all those areas
- 22:56that require human input today, right, like from the most basic
- 23:00ones like and going up to the more and more complex ones over
- 23:02time, right. And so I think this is probably
- 23:05our biggest investment, like maybe the 70% bet right now is
- 23:08like, yes, let's focus on those. We know, we clearly know what
- 23:11you need to do. These are the workflows that
- 23:13we've operated right every day and like if we can reduce the
- 23:16costs over time. For this like we can accelerate
- 23:18the pace of you know, investments going into companies
- 23:21and increase the rate of innovation, right.
- 23:23That's really a primary goal. But we still want to reserve
- 23:26like 30% of our time to explore and see what else can be built,
- 23:30what are the new capabilities that can be unlocked with these
- 23:34technologies. And that's where those new
- 23:36experiences where we leverage the data that we already have
- 23:39like on behalf of our customers basically package it in a way
- 23:42that allows novel capabilities that they've never seen before.
- 23:45I think that's maybe the more exciting.
- 23:47The next step and obviously requires maybe a heavier lift,
- 23:52right like accessing the off the shelf APIs.
- 23:54One day you get a working news article classifier I think to
- 23:58train your own data. Like there are a few companies
- 24:01out there that are helping and building the tooling to allow
- 24:04you to do that right on top of the lemma models like the open
- 24:08models. So these are.
- 24:10Still on the prototype and, you know, hackathon stage?
- 24:13Yeah, for us. But we see a lot of potential
- 24:16there and we definitely want to, you know, see how far we can
- 24:18take. Those, the way that you're
- 24:20looking at it is let's figure out what's the easiest that we
- 24:24can do because we have this new. Incredibly powerful tool that we
- 24:30can use. And so everything that we can
- 24:34hit with this tool, let's go for it.
- 24:36And then we can graduate to the more complex scenarios and
- 24:40figure out how to go about that. But there's just so much surface
- 24:44area that we can cover with the. Tool that we have currently that
- 24:50we can do that and the other piece that I really like about
- 24:52what you're doing is you're not. Saying.
- 24:59AI is our product. It's you have a clear product
- 25:03already, you're just enhancing it with a I and what I've seen
- 25:06as the best user experiences with these different AI
- 25:11capabilities that have come out. It's not reimagining a new tool
- 25:16that has a I at the centre, it's I have my tool now, how can I
- 25:20augment my tool with AI? And it really feels like that's
- 25:24how you're looking at it. And I like that, what I also AM.
- 25:29Pretty curious about because you mentioned that the culture at
- 25:32Angel List is. People told you come in, you're
- 25:36like a one person startup. Go and get after it.
- 25:39You have to really be thinking about.
- 25:42How to create something from this?
- 25:45Mentality of alright, if I'm going to bring a new product
- 25:49into fruition, what am I going to create?
- 25:53How is it going to look and so? It feels like you need to.
- 26:00Be very strong on the product side too.
- 26:04How have you thought through that?
- 26:06Have you? Evolved in your way of justice
- 26:10being a machine learning engineer and then now thinking,
- 26:13OK, if I'm going to implement these new features, what do I
- 26:17need to think about? Yeah, it's a great question.
- 26:19So we work as obviously work as a team, right.
- 26:22So you're maybe the founder for your one person startup, but
- 26:25it's OK to work with cofounder and you can make it a two person
- 26:30startup. And so we have like amazing
- 26:32product managers that are really helping shape those visions and
- 26:37flag like. You know, bake like the most
- 26:41important releases that we can build for, for the company or
- 26:45for customers. I'd say also it's expected that
- 26:48as an engineer we come in as product engineers first and
- 26:51foremost, right? And you're expected to wear a
- 26:53lot of hats, like you're expected to be able to go
- 26:56through the full stack, be able to build as like the front end
- 26:59as well as the back end, like for your your feature, right?
- 27:02Like the entire slice of the product.
- 27:04And you're also expected to be able to go and talk to the
- 27:08different. The user is either external or
- 27:11internal for what you're building and shipping.
- 27:14And so, yeah, I think a culture that really emphasises that
- 27:17ultimately, like we we like to say that because promotion at
- 27:21Angel List is when you leave the company to start your own
- 27:23company, right? And so a lot of people who come
- 27:25in are either past founders or people who want to become
- 27:28founders. And so any experience they can
- 27:30get, you know, doing everything is, you know, experience that
- 27:34people find valuable. Everyone.
- 27:38My name is Aparna, founder of Verizon, and the best way to
- 27:40stay up to date with ML OPS is by subscribing to this podcast.
- 27:46And so then there is around on Angel list.
- 27:49They raise their seed round. Yeah.
- 27:53Talk with the products. Yeah, yeah, It's so cool
- 27:56thinking about that whole life cycle.
- 27:59You all just put out a new tool recently, right?
- 28:02Today I think. And today we'll timestamp
- 28:05because this probably won't go out for another month.
- 28:08So July 20th, tell us about what you put out and what the process
- 28:13was of like creating that. Yeah.
- 28:16So I talk about new particle classification as the first use
- 28:19case. And we quickly found that we
- 28:21could apply the same technology to the investment documents that
- 28:24are flowing through our platform to extract things like what the
- 28:27company is being invested in, like who's the investor, what's
- 28:32the amount that's being invested, what are all the
- 28:34terms, you know, is there a cap, like what's the valuation?
- 28:37And this is technology that we first applied internally to the
- 28:43flow of incoming documents, so we could help.
- 28:46Relations, you know, move faster, so they didn't have to
- 28:48review and read through like entire documents all the time.
- 28:52And we actually found that the models were super accurate,
- 28:57right? Look for data retrieval.
- 28:58Again, it's easy also to double check that whatever data is
- 29:01retrieved is actually in the document and we could match it
- 29:04against the data that's entered on our platform.
- 29:07When an investor actually submits a deal, they're able to
- 29:12add the key terms that they're investing in, and our technology
- 29:16was there. Would double check from the
- 29:18document that what's in the document actually matches what
- 29:21the investor expects. And so we naturally have the
- 29:25training set or a validation set to say that or extraction
- 29:29actually matches what is being inputted into our system and
- 29:34when it doesn't actually your extraction is correct and what
- 29:37was put in the system was wrong and so we could go back.
- 29:39It's actually a super valuable service and tell them, hey, you
- 29:42know there's a difference in the document from what you are
- 29:45expecting. You know your investment to be
- 29:47and. So from there, we actually
- 29:49decided to build a product dedicated to opening this
- 29:52capability to any investor, any fund manager or any investor
- 29:58LP's in the fund to analyse their own documents.
- 30:02And so that's a product called AngelList Relay that we shipped
- 30:06and opened to the public. There's a free tier, so you can
- 30:08go and try it like on five investment documents per month
- 30:13or five company updates per month.
- 30:14And what the tool does is essentially like with 0.
- 30:19Effort on your part. You just send or forward emails
- 30:23with the documents or the company updates that you're
- 30:25receiving and Relay will parse those, extract all the key
- 30:28terms, organise them by companies, right, and build a
- 30:31dashboard for you of all your investments, the terms at which
- 30:34you've invested. And then if you get company
- 30:36updates from those companies, will add them in the dashboard,
- 30:39you know, alongside the investment terms, so you can
- 30:41track how your companies are doing over time.
- 30:43And so, yeah, that's the product release from just like 2 days
- 30:47ago. Ohh so.
- 30:50I think if I'm understanding this correctly.
- 30:54I invest in a seed round and the company, I invest in 10
- 30:58different companies in their seed round right.
- 31:00And these companies all it's too much work for me to stay on top
- 31:05of everything that these companies are doing.
- 31:07But every now and again, hopefully they raise another
- 31:10round or they are giving me investor updates again,
- 31:13hopefully depending on the. Companies, I've, I've seen it
- 31:18all. But the idea here is that these
- 31:22companies when they give their investor updates, I can just
- 31:26forward that update to you or I or I can upload it to Relay and
- 31:32you will keep track of it And you will say, hey, will, you
- 31:34invested at this much AR and it was this valuation.
- 31:39Now they're saying that they have this much AR and they've
- 31:43got these many customers. And so you get to see the
- 31:46progress. That's exactly right.
- 31:48Yeah. And you can even give them your
- 31:50relay e-mail address so that they send the company updates
- 31:52directly to your dashboard. And we do this automatically.
- 31:55It doesn't matter what the format of the company update is
- 31:57like. Well, you know, parse it and
- 31:58structure it and extract the key information.
- 32:01And since we're relying on large language models like, we
- 32:04actually can figure things out, like if they talk about monthly
- 32:08burn, we can extrapolate it to like the yearly burn.
- 32:11Like if they talk about maybe negative values, it's easy to
- 32:16mark that as such. Click on the dashboard and if
- 32:20they're not sending updates like you can easily tell as well
- 32:23because again it's anchored on the investment documents that
- 32:25you've sent early on. And you can see this company has
- 32:28not sent us any updates in the last six months since our
- 32:31investment there. Maybe we should double check,
- 32:33you know, see what's up. So.
- 32:36What's going on over there? OK, so.
- 32:39Break it down. What exactly are you doing on
- 32:42the back end? How does the tech look?
- 32:45Yeah, so it's. Pretty much like what we've
- 32:47built internally for our own document classification and
- 32:51extraction use cases that we've packaged right on top of emails
- 32:55being sent away. So we have a really solid
- 32:58document infrastructure that allows us to store, securely
- 33:03store and analyse this information.
- 33:06And we've developed prompts that we run like Basically a
- 33:10cascading set of prompts like. We use length chain as the
- 33:13library to structure this and. The document comes in, we
- 33:18classify it, then from the classification we determine
- 33:20whether it's one of the documents where we support terms
- 33:23extraction. If we do, we apply like a pretty
- 33:27advanced prompt, like one that took us a lot of iterations to
- 33:29get right to parse all the key terms and key information and
- 33:33even maybe sometimes analyse the legal language for the
- 33:37documents. To flag anything that looks off
- 33:39for you know, probably would require an action on the
- 33:41investors part. And once that's all done, it
- 33:44becomes metadata that's attached to the customer's document.
- 33:47And that they can then retrieve in their portal sounds pretty
- 33:51straightforward because it actually is like from a
- 33:53technology perspective. And really the magic is in
- 33:58having fine-tuned those prompts with a lot of iterations to get
- 34:03the perfect output like what we expect customer like an investor
- 34:07to want to see when they send. You then you post when you were
- 34:11looking at the prompting to like figure out what the best prompts
- 34:14are. I know there's a bunch out there
- 34:17on that layer, like the prompt. Player to figure out how.
- 34:21How can we know which prompts are the best?
- 34:23Prompt Player, I think, is actually one of those companies,
- 34:25right? There's a company called
- 34:27promptly. That's.
- 34:28True, we've tried a few things. We also have like an internal
- 34:32system that actually supports all of our operations.
- 34:36That makes it really easy actually, to keep a human in the
- 34:39loop in this process where you upload the document, you apply
- 34:42the prompt to it, get the data, and then you can review the
- 34:45output then and there. And so yeah, I think for now
- 34:49it's still a bit artisanal. For, you know, it's like
- 34:52basically people doing some manual work we don't have.
- 34:58Fully structured regression testing capability in the sense
- 35:01that you could, you know, rerun a bunch of documents that we
- 35:04know should give this output and see if your new prompt leads to
- 35:08the same output. But this is in the works.
- 35:10Like these are definitely capabilities that we want for
- 35:12our system. It might come out that's like
- 35:15maybe an expensive test suite, but it's probably worth it that
- 35:18scale to make sure that we keep. Wretched.
- 35:22Seeing the quality up, not introducing any regression in
- 35:25the quality of our parsing O Tibo.
- 35:28Should I just become a prompt engineer?
- 35:30Is that what I should do for a living now?
- 35:32So it's a good question. The main call out from my part
- 35:36is actually that there's still a lot of plumbing, a lot of
- 35:40engineering work around the prompts, right?
- 35:42To get, for example, the documents you know formatted in
- 35:44the right way to standardise them, to extract the text from
- 35:47them. Like.
- 35:48That's a lot of steps until you can actually apply the prompt
- 35:51to. The document and even then some
- 35:53of the documents are super long, so you need chunking little.
- 35:57Working with length chain is not just prompt engineering, it's
- 36:00also like engineering data pipelines.
- 36:04And so I think there's still a lot of work to be done that's
- 36:07not prompt engineering. Another strategic move or or
- 36:12stands as a company is that a lot of the prompt engineering
- 36:14can be done by the people who know the business the best or
- 36:18the domain the best, right. So if the lawyers on the team
- 36:21can actually. Help tune and improve the
- 36:24prompts, right? That's ideal for us because this
- 36:27is where we get the highest leverage.
- 36:29And since prompts are natural language, like, it's actually,
- 36:33the barriers are gone. It's possible for anyone on the
- 36:36company to write a prompt and, you know, keep it, trading on it
- 36:40to get the output that they're expecting.
- 36:42And so we're also investing heavily in putting prompt
- 36:47engineering in the hands of operations and you know, the
- 36:52lawyers. The team, for them to be able to
- 36:55help us move faster, right, so that engineers can focus on
- 36:58what's the prompts are in a good space, deploying them in
- 37:02production and running them at scale.
- 37:04So I want to kind of hit on this a bit because interesting
- 37:07things, it's something I believed in for a lot of years.
- 37:09So like, I think obviously a human in the loop is important
- 37:13for this process, right? It's important for your guys's
- 37:16whole development life cycle and you're trying to work towards an
- 37:21automated regression test system to be able to, OK, can I, can I
- 37:25deploy without with less human intervention?
- 37:28But do you foresee no human intervention?
- 37:31And I preface this with like going back like 5 or so years
- 37:34when Auto ML was the big thing, right?
- 37:36Where everybody's all the rage about, hey, I could just throw
- 37:38some data things, little bit the ball for you, all the
- 37:41hyperparameter tuning for you and everything.
- 37:43So do you foresee that eventually we're not going to
- 37:46need a human in the loop in this process potentially?
- 37:50Like the process of drafting the prompts.
- 37:52And yes, like is prompt engineering going to be an
- 37:54automated thing? Pretty much.
- 37:56Yeah, I mean, if if you read Asimov, like, you know,
- 38:00eventually that's really where humanity gets at some points.
- 38:03And so, yeah, I think there's definitely.
- 38:07A long term vision where this is true and this, you know,
- 38:09happens. I think there is still quite a
- 38:12few. Definitely months, maybe years
- 38:15of really exciting work for for people, you know, for us to do
- 38:19before we get there. And we also need to still.
- 38:24Distil what actually is needed. You know what the customers
- 38:28want, what's terms like are relevant and important to parse
- 38:32from these documents. You know what's how do you see
- 38:35if there's a pay to play clause in an investment document,
- 38:38right. These are concepts that
- 38:41obviously I think at some point could be inferred automatically.
- 38:46But for now we're still doing the goal setting.
- 38:48You know, I haven't seen models that actually tell you.
- 38:51This is what you should do, you know, in a way that is directly
- 38:54usable and so still a few years of exciting work in this space
- 38:58for for us humans. So I wonder about when it comes
- 39:02back to the architecture of what you've built and.
- 39:07Having full confidence in the output, what are you doing to
- 39:11make sure that? There's not hallucinations that
- 39:15sneak through. Yeah.
- 39:16So for us in the problem set that we've tackled and actually
- 39:20deployed in production, it is possible to just double check
- 39:23that the extracted text is actually present in the
- 39:26document, right. So we always have ground truth
- 39:30that we can go back to. We were talking about how data
- 39:33is important in a given space. And I think it's still relevant
- 39:35and true for using large language models or foundational
- 39:39models because as I said like early on, we actually have a
- 39:43tonne of documents that have flowed through our platform for.
- 39:47Past investments and that are matched to the structured data
- 39:50in our database, right where we are, the system of record and
- 39:54that data has been double, triple checked by the user, by
- 39:58our team like the operations team and so that made for a very
- 40:02convenient. Like a test set, right.
- 40:04So we can write the prompt and check that what it extracts
- 40:07actually matches what's in our system and do that at scale,
- 40:11like with a lot of examples. And that's helped us build great
- 40:14prompts and also the confidence that the model is actually
- 40:17performing amazingly well. I think we're at the current
- 40:23stage, we're claiming, you know, 99% accuracy in Relay.
- 40:27This has BeenVerified like with all of the back testing that
- 40:30we've done on on previous documents so.
- 40:33I think both. These cases that you've talked
- 40:35about? You are in a great position
- 40:37because if things do go off the rails, you're not going to like
- 40:42kill anyone like in autonomous driving.
- 40:44I think in the Relay one it's probably more.
- 40:48Important that you do have that cross check with your database
- 40:51because it's money at play, right?
- 40:54And so maybe people in. Be getting an update that says
- 41:00they need to pay money and really they don't need to or
- 41:03whatever that may be. So it's good to have that there.
- 41:05But again, when I think about like the.
- 41:09Risk. On this use case, it is, it's a
- 41:13little bit lower down. When you think about something
- 41:16like Ohh well, is it the healthcare use case or is it an
- 41:20autonomous driving use case? And those are a lot more.
- 41:25Scary when you're just leaving it all up to a computer to
- 41:29figure out. And so I like that you've been
- 41:32able to figure out how can we incorporate this into our
- 41:36product as much as possible and. I imagine it's not all flowers
- 41:43and tie dye with the hippies. Peace and love.
- 41:45What have the challenges been, right?
- 41:47Like, there's gotta have been some snags that you ran into.
- 41:51Yeah, it's actually funny. It's really more around scaling
- 41:55or calls to Open AI. Like honestly, like the the
- 41:58biggest struggle for me has been spending time trying to figure
- 42:02out how to get access to GPT 4 to GPT 432K, how to get higher
- 42:07rate limits so that we can handle the volume right of
- 42:10documents that we want to parse. And it's funny because it's like
- 42:16a lot of it is trying to find the right point of contact at
- 42:20Open AI and getting a response other questions like that.
- 42:23And we, yeah, we found, you know, eventually found partners
- 42:28that could help us with this. We also found that we could
- 42:31leverage Azure directly. They posed exactly the same
- 42:36endpoints and it's actually a lot more flexible from you know
- 42:40scaling perspective and it's maybe a little bit closer to
- 42:42what we were familiar with, right, Like a cloud environment
- 42:46where you provision resources and you can increase rate limits
- 42:49with a simple request and you can track your usage in a way
- 42:53that's maybe a little more stable and structured.
- 42:56And so we now have calls going to both Azure and Open AI
- 43:02directly and like we're able to increase our rate commits by
- 43:06having that routing happening between the two.
- 43:08And we're also exploring deploying our own train models
- 43:13on top of these tasks. So I think costs are way lower
- 43:17than we had people doing this work.
- 43:19So we're already saving money by doing this and we expect the
- 43:22cost of intelligence to keep going down over time.
- 43:26And so we bet heavily that we wanted to 1st go with breadth,
- 43:30try to apply this to as many use cases as possible.
- 43:33Not thinking too hard about optimization just yet, but we
- 43:36obviously need to get there. The ability to maybe train their
- 43:40own model, deploy it on dedicated hardware so we can
- 43:43scale according to our needs, I think is an interesting next
- 43:46step for us, something that we're looking forward to.
- 43:49So is that like your upper limit then?
- 43:51Is that you're scaling upper limit?
- 43:52Is the third party vendor you're?
- 43:56That's your OK so that's what you're deaf.
- 43:58Yeah. I was gonna ask that it's from a
- 44:00challenge perspective. Do you think then there's that's
- 44:03why there needs to be investment in other models besides you know
- 44:06what opening eyes providing you do you do you find that there
- 44:09can be value and maybe we should diversify our model portfolio in
- 44:12terms of what we're using and use different models to even
- 44:16open that up and or I don't know kind of be flexible that way.
- 44:20Yeah, makes perfect sense and I believe so like pretty strongly.
- 44:24I think again ownership of the models themselves, you know
- 44:27would grant us more flexibility, right.
- 44:29We were talking about the 30% use case, this investment and
- 44:32maybe longer term capabilities where we're training bespoke
- 44:37models for each customer on their platform.
- 44:40From a technical perspective, it is doable, not super cheap, but
- 44:43it's not super expensive either. But it's only possible if we own
- 44:47the keys to the model layers, right.
- 44:50So if we own the base model, maybe have a layer that's
- 44:52specific to Angel list as a whole, like the investment, you
- 44:55know, ecosystem and then on top of that maybe a really small
- 44:58sliver that's constantly retrained for your own specific
- 45:02customer data. We in order to build something
- 45:05like this, we need control over how the models are trained,
- 45:07right. So there's some appetite to
- 45:10actually build up a competency in this space, right, and have
- 45:15on premise like trained internally trained models that
- 45:19we can work with. But as far as models that are?
- 45:24More or less the same idea of open AI.
- 45:27You haven't thought about going with like a coher or anthropic
- 45:31or anything like that. Like for us, having to integrate
- 45:34with another model would just, you know, increase the
- 45:36complexity of our system, right? And we figured that it was maybe
- 45:40not required to pay that cost just yet because we're not
- 45:43hitting any roadblocks with Open AI.
- 45:45It does what we need, right? So we're not in a space where
- 45:48we're going to save pennies by trying maybe a different
- 45:51provider just yet. And maybe another thing is
- 45:54there's a tiny bit of a relationship with Open AI,
- 45:57right? Like I guess Sam Altman spoke at
- 46:00the last Angeles Confidential conference.
- 46:02And so you know, and I'll say from personal experience, Open
- 46:08AI has been the top quality model.
- 46:11So we decided to just go use it for now, learn as much as we
- 46:15could in the space with the best in class capability, right.
- 46:19And then there's a moment in time when we're going to switch
- 46:21to cost optimization. And then I think it might be
- 46:24reasonable us to explore other approaches.
- 46:28Yeah, I I do like that idea. It's like, let's not get
- 46:32distracted with anything except for how can we bring AI into our
- 46:38product and how can we make sure that it's valuable And all of
- 46:42the other stuff. We can figure that out once
- 46:45we've proven out this first assumption, which is, does this
- 46:49actually make a difference? That's exactly right, Yeah.
- 46:53Well, I admire the focus on that because I am the opposite
- 46:57sometimes. So do you feel like there are
- 47:01ethical concerns that we should be thinking about when it comes
- 47:04to using AI and money? You talked about like the
- 47:09comparison with maybe the, you know, healthcare space or maybe
- 47:12self driving, right. I think the key here is that
- 47:16ultimately at the end of the day, like the legal documents
- 47:19are the source of truth, right? So there's ever a question with,
- 47:23you know, what the allocation in the deal should be or how much a
- 47:27certain person owns in that deal.
- 47:28You can always refer back to the the documents, right, the legal
- 47:32documents. And so I think from here, like
- 47:34in our space, as you said, like this is an industry that's like
- 47:38a perfect fit for these models because we're talking about
- 47:41text. It's all text, right?
- 47:43A lot of legal text. So it's also pretty structured,
- 47:46right? It's not completely free form.
- 47:49And yeah, the outcome, like the worst case scenario is, you
- 47:54know, just something where something looks off and you go
- 47:56double check the document and like you use that as the guiding
- 48:00truth. And so it saves A tonne of time
- 48:02from people, humans reading through a lot of text that's
- 48:07really repetitive. And as I said, humans also make
- 48:11mistakes. And we found that actually the
- 48:13models are more accurate and make fewer mistakes than when
- 48:17you have people even like experts reading through those
- 48:20documents, right? Sometimes you just go maybe too
- 48:22fast or you skip paragraph that had the information that you
- 48:25needed. The model won't do that right.
- 48:28It will look at everything in the document and consistently
- 48:31output the same results from that analysis.
- 48:35Yes. So here's another one that I
- 48:37totally forgot that I wanted to ask you and but when it comes to
- 48:40prompts, have you noticed that? When Open AI releases a model
- 48:45update, it breaks some of your prompts or you have to go and
- 48:49rework them. This happened to us, so it was
- 48:53temporary though like I I need to clarify that this was like
- 48:56the move to the June model basically.
- 48:58Yet there was maybe an 8 hour period where things were broken.
- 49:03So technically like our API calls were either failing or
- 49:06maybe using the wrong model and that got fixed and now we're
- 49:11back to where things were before.
- 49:12We also found that maybe some prompts are actually working
- 49:15better than they used to. I know there's a lot of noise
- 49:18out there about, you know how there's a regression in the
- 49:20quality of the output from from GT4, especially for things
- 49:24around code. We're not parsing code like
- 49:26we're doing legal document reading and entity extraction,
- 49:30and for those, use cases like this has been a continuous March
- 49:33towards better accuracy with simpler prompts.
- 49:38Yeah. The part about maybe operational
- 49:41excellence like still being a work in progress is something
- 49:45that like does ring true to me, like the models like or open
- 49:51API's can't go down, right. And so we've built some
- 49:55resilient systems that can retry until they're back up.
- 49:58It's less true now than it was three months ago.
- 50:01But yeah, I'll just say that having worked now with Azure
- 50:04Open AI and Open AI APIs directly like Azure is actually
- 50:07more robust and has been more consistent in its responses.
- 50:12But the underlying models are the same.
- 50:14And so right now we're load balancing between the two, but
- 50:17we actually are glad that we have a fall back if the main
- 50:19models, you know, start breaking or like not responding anymore.
- 50:23Yeah, yeah. Maybe another incentive to grow
- 50:26and build in house, right. So that like we're not dependent
- 50:29on third parties availability. That's said.
- 50:32Again, plus priorities. Yeah, that comes with its own
- 50:37challenges. Would you start building your
- 50:38own stuff? Right.
- 50:39Then we might also hit operational excellence issues,
- 50:43so. Exactly.
- 50:45Exactly. We'll do.
- 50:46This has been awesome. I really appreciate you coming
- 50:48on here and giving us a little peek.
- 50:51Behind what's happening at Angel List and how you all are using
- 50:55this and how you've been up, been able to get up and running
- 50:58so quickly, it's fascinating to hear the story and I think we'll
- 51:03end it there. Sounds good.
- 51:06Yeah. Hey, I'm Vishnu.
- 51:13I'm a data scientist at first hand and I definitely think that
- 51:16you should subscribe to the ML OPS Coffee Sessions podcast.
- 51:20It's the best podcast out there to stay on top of what ML OPS
- 51:23actually is to talk to the true thought leaders in the space.
- 51:27And oh by the way, Demetrius is absolutely hilarious.
- 51:30What a weird guy. You should definitely subscribe
- 51:32to the podcast.