Hey, Matt. It's great seeing you again. Big fan of the work. Love the jokes on Twitter. So it's really nice catching up again after following you for so long.
Appreciate it. So today we are going to talk about your brand new book, published by O'Reilly, which is just coming out, entitled AI Engineering: Building AI Applications with Foundation Models, which I must say is incredible work. So I spent a good portion of last weekend reading it, and I thought it was amazing. Absolutely a must-read for anyone that's curious about the AI field. And in particular, what I found really interesting is that there's plenty for technical folks. There's math, there's in-the-weeds kind of details, but equally, I found it very approachable for non-technical people, which is very hard to do.
So again, really enjoyed it. Congrats. And to jump to the punchline, people should absolutely get the book. And what we're going to try today is give people a little bit of a flavor for what's in it. So obviously, we're not going to cover everything because it's 500 pages of goodness. But hopefully that will give people some kind of overview. Does that sound good?
Yeah, thank you so much. And everyone, listen to Matt. He knows what he's talking about. So appreciate it.
All right, so let's jump into it. So at the beginning of the book, you make the point that while AI adoption seems new, it's built upon techniques that have been around for a while, like language models, some of which came in the 1950s, and then retrieval techniques. But at the same time, it feels like a new field. So what is new about AI engineering, and how is that different from more traditional machine learning and MLOps techniques?
Yeah, I think that's a great question, and I get asked that question a lot. It's like, okay, what is AI engineering? Is it another marketing term? How is it different from my traditional ML engineering? So there's a lot of overlap between these two roles. And I think at a lot of companies, even people with the same title can have very different functionalities. So I think any definition is a little bit fuzzy and really depends on where you work and what you're working on.
But in general, I think of machine learning engineering as when you have to build the models yourself. Before the availability of large language models or foundation models that anyone can access, if you wanted to build ML applications, you would need to build the models yourself, and only a few organizations could do that. But nowadays, anyone who wants to leverage AI to build applications can just leverage one of those amazing available models to do so. It just makes it so much more accessible.
Another thing is that before, I had thought that a small improvement of AI capabilities could lead to a small increase in the number of available applications. We have known for a long time that if we put more data and more compute, we'd get better models, right? But still, when ChatGPT came out, we were shocked. At least I was in a group chat with a bunch of my friends, and we were really shocked. The reason is that we were shocked that just a small improvement in capabilities can lead to so many applications.
At the same time, we have so many new ideas, and it's so easy for people to build applications. Just like the energy, the community is growing exponentially. It's a really, really exciting time. There are a lot of new things with that. One is that evaluation has become so much harder. Before, with a lot of traditional ML, we have, okay, if we do spam detection, we know that the output should be spam or not spam. If the model's output is not spam and the real email is spam, then we know that the prediction is incorrect.
But now, if you ask the models, you say, hey, summarize a book, and the summary looks quite reasonable, coherent, you don't know if it's a good summary or not. You might actually have to read the book to find out yourself. And also, the more intelligent AI becomes, the harder it is to evaluate it. So, for example, for math problems, I think that most of us can tell if the solution to a first-grade math question is wrong or not. At least I hope that most of us, with a lot of complaining about education going on, I'm not sure if that's still the case.