Latest / Talk Python To Me / #528: Python apps with LLM building blocks
Transcript
- 0:00Michael Kennedy: In this episode, I'm talking with Vincent Wormerdam about treating LLMs as just another API in your
- 0:05Michael Kennedy: Python app with clear boundaries, small focused endpoints, and good monitoring. We'll dig into
- 0:11Michael Kennedy: patterns for wrapping these calls, caching and inspecting responses, and deciding where an LLM
- 0:17Michael Kennedy: API actually earns its keep in your architecture. This is Talk Python To Me, episode 528,
- 0:23Michael Kennedy: recorded October 23rd, 2025.
- 0:44Michael Kennedy: Welcome to Talk Python To Me, the number one podcast for Python developers and data scientists.
- 0:48Michael Kennedy: This is your host, Michael Kennedy. I'm a PSF fellow who's been coding for over 25 years.
- 0:54Michael Kennedy: Let's connect on social media.
- 0:55Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 0:59Michael Kennedy: The social links are all in the show notes.
- 1:02Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:06Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:10Michael Kennedy: That's right.
- 1:10Michael Kennedy: We live stream the raw, uncut version of each episode on YouTube.
- 1:15Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:20Michael Kennedy: And be sure to subscribe and press the bell so you'll get notified anytime we're recording.
- 1:24Michael Kennedy: This episode is brought to you by Sentry.
- 1:27Michael Kennedy: Don't let those errors go unnoticed.
- 1:28Michael Kennedy: Use Sentry like we do here at Talk Python.
- 1:30Michael Kennedy: Sign up at talkpython.fm/sentry.
- 1:34Michael Kennedy: And it's brought to you by NordStellar.
- 1:36Michael Kennedy: NordStellar is a threat exposure management platform
- 1:40Michael Kennedy: from the Nord security family,
- 1:41Michael Kennedy: the folks behind NordVPN
- 1:43Michael Kennedy: that combines dark web intelligence,
- 1:45Michael Kennedy: session hijacking prevention,
- 1:47Michael Kennedy: brand and domain abuse detection,
- 1:50Michael Kennedy: and external attack surface management.
- 1:52Michael Kennedy: Learn more and get started keeping your team safe
- 1:54Michael Kennedy: at talkpython.fm/nordstellar. Hey, welcome to Talk Python To Me. Hi. Welcome back. Pleasure
- 2:01Vincent Warmerdam: to be here. Yeah, it's been like, this is our second Talk Python interview, I think. We've
- 2:06Vincent Warmerdam: interacted before also on socials and all that, but like, yeah, second time. Yay. Happy to be here.
- 2:10Michael Kennedy: Yeah. Yeah. It's very exciting to have you back. I, you know, I'm trying to remember, I did an
- 2:15Michael Kennedy: blog post on
- 2:18Michael Kennedy: the most popular episodes
- 2:20Michael Kennedy: of last year.
- 2:22Michael Kennedy: I think, if I do recall correctly...
- 2:25Vincent Warmerdam: Yeah, the
- 2:26Vincent Warmerdam: number one last year was our
- 2:28Vincent Warmerdam: interaction, I think, on Spade.
- 2:29Michael Kennedy: That's not terrible, is it?
- 2:31Michael Kennedy: Yeah, it was a bragging right for a day.
- 2:34Michael Kennedy: Yeah, it's pretty cool. So your episode
- 2:36Michael Kennedy: and double bragging
- 2:38Michael Kennedy: rights as your episode was released
- 2:40Michael Kennedy: in, I don't know when that was,
- 2:42Michael Kennedy: something like October or something, almost exactly
- 2:44Michael Kennedy: a year ago to the day. And still it was the number one most downloaded for the whole year. So
- 2:50Michael Kennedy: fantastic. And I think that might be an indication of where we're going to another very exciting
- 2:56Vincent Warmerdam: topic, you know? Yeah. Like ML and AI only went up, right? So, so.
- 3:03Michael Kennedy: You know what? I would love to get your thoughts on this. I, I'm seeing out on the internet and I
- 3:08Michael Kennedy: want to put this up as kind of a, to counter this, this thought or whatever. But, but I'm seeing a
- 3:13Michael Kennedy: lot of people get really frustrated that AI is a thing. You know, OpenAI just released their Atlas
- 3:21Michael Kennedy: browser, which I'm not super excited about, but it's like their version of what an AI browser
- 3:26Michael Kennedy: wrapping Chromium looks like, you know what I mean? And it's fine. But the comments in Ars Technica,
- 3:32Michael Kennedy: which are usually pretty balanced, are just like people losing it over the fact that it has AI.
- 3:37Michael Kennedy: Are people tired of this stuff? Or why do you think that's the reaction, I guess, is really what I
- 3:42Vincent Warmerdam: want to ask you i mean i guess i have like a couple of perspectives but like i do like i think i could
- 3:47Vincent Warmerdam: say like we are all tired that like every tech product out there is trying its best to find a
- 3:52Vincent Warmerdam: way to put ai in the product like oh any any gmail any calendar app let's put ai in there and it
- 3:58Vincent Warmerdam: gets a bit tiring like i wouldn't be too surprised if like fire hoses and refrigerators also come with
- 4:02Michael Kennedy: ai features these days like it feels a bit nuts i know it's like what what is my refrigerating ai for
- 4:09Vincent Warmerdam: Yeah, or like soccer ball of whatever object, like it feels like people are overdoing the AI thing. So okay, that can be like legitimate source of frustration. But then it also becomes a little bit personal, because I can also imagine if you put like, your heart and soul into like being a good engineer, and like you want to take the internet serious, like you consider it something is somewhat sacred, because it helped you so much in your career, then I definitely can also imagine like, Oh, my God, please don't turn that into a slop. Like I built a career on that. So that might be the source of all these things. I guess like my main way of dealing with it,
- 4:39Vincent Warmerdam: is more along the lines of like, okay, like, this genie is not going to go back into the
- 4:43Vincent Warmerdam: ball in a way. But if we're able to do more things with these LLMs, if they're able to
- 4:47Vincent Warmerdam: automate more boilerplate and that sort of thing, then it seems that then I can try and
- 4:52Vincent Warmerdam: get better at natural intelligence as well, instead of this artificial intelligence. So
- 4:56Vincent Warmerdam: like, okay, I can vibe code all these things now. So the bottleneck is just do I have good
- 5:01Vincent Warmerdam: ideas? And maybe I should invest in good ideas. And oh, maybe I can actually learn about
- 5:06Vincent Warmerdam: JavaScript, but then I should not focus on the syntax, but it shouldn't focus maybe on
- 5:09Vincent Warmerdam: the browser and like how does CSS work and oh I should actually maybe do a little bit of stuff
- 5:15Vincent Warmerdam: with flashcards just so I know the syntax just enough so I can review okay like I try to be very
- 5:19Michael Kennedy: conscious about it that way that's kind of my approach more and I it's easy to get really lazy
- 5:24Michael Kennedy: right and just push the button and say do the next thing and not use it as an opportunity like oh it
- 5:28Michael Kennedy: did something I didn't know let me have a conversation and try to understand the uh I
- 5:33Vincent Warmerdam: didn't know I think the key word here is you want to be deliberate about it like I think if you can
- 5:37Vincent Warmerdam: sort of say like okay i'm deliberate about the way i use this stuff and i'm also learning as i'm doing
- 5:41Vincent Warmerdam: this like one thing i really like to do is i just give give like some sort of bonkers front-end task
- 5:46Vincent Warmerdam: to the llm that i have no idea how i would solve it and then study the output like that's the thing
- 5:50Vincent Warmerdam: i actually do once in a while um but yeah i mean i do get it that like people have mixed emotions
- 5:56Vincent Warmerdam: about it and that's totally cool and fine it's just that for me in my situation this is how i
- 6:01Michael Kennedy: deal with it yeah i think that's fair i think also i i definitely have long since been tired of like
- 6:07Michael Kennedy: every email app having to rewrite this with AI
- 6:10Michael Kennedy: and it usually destroys the email.
- 6:12Michael Kennedy: You know, like removes all the formatting.
- 6:14Michael Kennedy: And then you just, you know,
- 6:15Michael Kennedy: there's always the cartoon of like,
- 6:17Michael Kennedy: I wrote an email as bullet points.
- 6:19Michael Kennedy: I asked AI to expand it.
- 6:20Michael Kennedy: I sent it to you.
- 6:21Michael Kennedy: You're like, what a long email.
- 6:23Michael Kennedy: I'm gonna ask AI to summarize this.
- 6:25Michael Kennedy: We should have just sent the bullet points.
- 6:27Vincent Warmerdam: - Yeah, I mean, I do fear the amount of slop though.
- 6:30Vincent Warmerdam: Like I do, it almost feels like every good tech YouTuber,
- 6:33Vincent Warmerdam: there aren't a lot of good tech YouTubers anymore
- 6:35Vincent Warmerdam: they're all doing AI stuff instead of doing like actual really great programming. There's still a
- 6:40Vincent Warmerdam: few. Anthony writes code is like a really good one still. Like he's awesome. Definitely follow
- 6:45Vincent Warmerdam: him if you want to learn Python. He does cool stuff. But yeah, the main thing, I guess from my
- 6:51Vincent Warmerdam: like selfish perspective, YouTube used to be better because nowadays it's all about the AI and you've
- 6:55Vincent Warmerdam: always got this thumbnail of a guy pulling his hair out like, oh my God, this changes everything.
- 6:59Vincent Warmerdam: Yeah. I would love to see a video that's maybe not that.
- 7:03Michael Kennedy: Have you heard that there's an AI bubble that's going to burst?
- 7:05Vincent Warmerdam: um yeah well we'll see exactly how far i think so actually i mean we can speculate like i i can
- 7:12Vincent Warmerdam: argue that it's been over invested i can also argue there's still so much potential the one
- 7:16Vincent Warmerdam: thing i will say though um we have Claude kinds of tools and like we're all looking forward to like
- 7:21Vincent Warmerdam: the vibe coding oh it's never been easier and that sort of thing but i would have expected an explosion
- 7:24Vincent Warmerdam: of awesome apps to be going along with it and it doesn't necessarily feel like we have much better
- 7:29Vincent Warmerdam: software even though we supposedly have way better tools so something about that is making me a little
- 7:34Vincent Warmerdam: a bit suspicious, but it might also just be that the apps that are being built that I'm not the
- 7:38Vincent Warmerdam: target audience for, because I can imagine that. Because let's say you have something awesome for
- 7:42Vincent Warmerdam: dentists, they can still be an awesome crud app that you could build with Claude, but I'm not a
- 7:46Michael Kennedy: dentist. So, you know, wow, there's a lot of new cool dentistry management apps. You're right.
- 7:53Vincent Warmerdam: If a dentist can outprogram, right? Like I do believe in the story that, oh, as a dentist,
- 7:58Vincent Warmerdam: you might be best equipped to write an app for dentists, right? And if they're now more empowered
- 8:02Vincent Warmerdam: to maybe do some stuff with code.
- 8:04Vincent Warmerdam: I mean, there's a story there
- 8:06Vincent Warmerdam: that every single niche profession
- 8:07Vincent Warmerdam: will have someone who can do enough clod
- 8:10Vincent Warmerdam: to make the app for that profession.
- 8:12Michael Kennedy: Yeah.
- 8:13Vincent Warmerdam: Well, time will tell.
- 8:13Michael Kennedy: It used to be that you have to have a programming skill
- 8:16Michael Kennedy: and a little bit of, let's say, dentistry experience
- 8:19Michael Kennedy: to build the right sort of specialized vertical.
- 8:21Michael Kennedy: And now I think it maybe is reversed.
- 8:23Michael Kennedy: You need a lot of dentistry
- 8:25Michael Kennedy: and a little bit of coding skill to go along with an AI.
- 8:28Vincent Warmerdam: Yeah.
- 8:29Vincent Warmerdam: The character sheet used to be 80 points here, 20 points there.
- 8:32Vincent Warmerdam: and now it's 80 points there and 20 points here.
- 8:34Michael Kennedy: Yes, exactly.
- 8:35Michael Kennedy: That's exactly what I was thinking.
- 8:36Michael Kennedy: Like, I think maybe that's actually shifted
- 8:38Michael Kennedy: until you said that.
- 8:39Michael Kennedy: I've never really thought about it,
- 8:40Michael Kennedy: but it just may be.
- 8:41Michael Kennedy: I do want to point out for people listening,
- 8:44Michael Kennedy: we're not going to really talk too much
- 8:47Michael Kennedy: about like using agentic tools to write code for us.
- 8:51Michael Kennedy: Like we have been speculating
- 8:52Michael Kennedy: about this theoretical dentist.
- 8:55Michael Kennedy: But what instead we're going to do
- 8:56Michael Kennedy: is we're going to talk to you, Vincent,
- 8:59Michael Kennedy: about how can I use an LLM
- 9:01Michael Kennedy: like a library or an API to add functionality, features, behaviors to an existing data science
- 9:08Michael Kennedy: tool or to an existing web app or whatever it is we're building, right?
- 9:12Vincent Warmerdam: Yes.
- 9:13Vincent Warmerdam: So also people might probably know it, but I made a course for Talk Python, of course,
- 9:18Vincent Warmerdam: and we're going to talk about some of those details.
- 9:21Vincent Warmerdam: But the idea for that course was not necessarily like, how can I use LLMs to build me software?
- 9:26Vincent Warmerdam: It's more, oh, how can I build software that also uses LLMs under the hood?
- 9:29Vincent Warmerdam: Like if I have an app that makes a summary, how can I make sure the summary is reliable?
- 9:33Vincent Warmerdam: And basically get the ball rolling on those building blocks.
- 9:36Vincent Warmerdam: That's what that course is about.
- 9:37Vincent Warmerdam: That's also probably going to be the main bones of this topic as opposed to a dentist
- 9:41Vincent Warmerdam: Bob and his ambitions to make a new tech startup.
- 9:44Michael Kennedy: Exactly.
- 9:45Michael Kennedy: We're going to grow new teeth if we just could get the software right.
- 9:47Michael Kennedy: Now, yeah.
- 9:48Michael Kennedy: So how do you do that?
- 9:49Michael Kennedy: And we're going to talk about that before.
- 9:51Michael Kennedy: I just want to give you a chance before we really dive too far into the details of how
- 9:56Michael Kennedy: we make that work is just, you know, give people a sense of what you've been up to lately.
- 10:00Michael Kennedy: You've done a lot of cool stuff with CalmCode.io.
- 10:04Michael Kennedy: I can see your YouTube game is growing strong here.
- 10:08Michael Kennedy: And you've been doing a lot of data science at Marimo.
- 10:11Michael Kennedy: Yeah, what's...
- 10:12Vincent Warmerdam: Right.
- 10:12Vincent Warmerdam: Yeah, so we haven't spoken in a year, so maybe we should catch up.
- 10:16Vincent Warmerdam: So long story short, CalmCode is still a project that I maintain.
- 10:19Vincent Warmerdam: It's basically 99% free educational content on Python.
- 10:24Vincent Warmerdam: that thing is just going to maintain itself.
- 10:27Vincent Warmerdam: Super happy to keep maintaining it.
- 10:29Vincent Warmerdam: The main thing I'm doing with that nowadays
- 10:30Vincent Warmerdam: is just every two months I switch cloud providers
- 10:32Vincent Warmerdam: just because I can,
- 10:33Vincent Warmerdam: and then I can sort of see what it's like on the other side.
- 10:36Vincent Warmerdam: So that's the thing that I do.
- 10:37Vincent Warmerdam: From Calm Cult, though,
- 10:38Vincent Warmerdam: I figured I might also start a YouTube channel,
- 10:40Vincent Warmerdam: and that ended up being a YouTube channel
- 10:41Vincent Warmerdam: where I still talk about Python stuff,
- 10:43Vincent Warmerdam: but I mainly talk about these fancy ergonomic keyboards
- 10:46Vincent Warmerdam: because I had a couple of RSI issues.
- 10:47Vincent Warmerdam: In a year's time,
- 10:48Vincent Warmerdam: I went from 100 subscribers to 5,000 something,
- 10:51Vincent Warmerdam: so this thing kind of took off.
- 10:53Vincent Warmerdam: That's awesome.
- 10:53Vincent Warmerdam: I actually have sponsors now.
- 10:55Vincent Warmerdam: So I actually have a couple of companies in Asia sending me their custom boards for me to review.
- 11:00Vincent Warmerdam: So that's been a really fun journey.
- 11:02Vincent Warmerdam: But since last time we spoke, I also switched employers.
- 11:04Vincent Warmerdam: So people might have heard of Jupyter before.
- 11:07Vincent Warmerdam: That's an environment in Python where you can do interactive things.
- 11:10Vincent Warmerdam: And I work now for a company that makes Maremo, which is an alternative, a very likable one.
- 11:15Vincent Warmerdam: It does work completely differently.
- 11:17Vincent Warmerdam: One of the main things that attracts people to it is the fact that these kinds of notebooks are Python files under the hood.
- 11:23Vincent Warmerdam: They're also a little bit more interactive.
- 11:25Vincent Warmerdam: You can do more rapid prototyping with UI.
- 11:27Vincent Warmerdam: You can blend Python with it very nicely.
- 11:30Vincent Warmerdam: So I will say like all of my rapid prototyping, especially with LLMs, I do that in Marimo
- 11:34Vincent Warmerdam: nowadays just so you can blend Python with UIs very easily.
- 11:38Vincent Warmerdam: And there's demos on the site that people can go ahead and check out.
- 11:41Vincent Warmerdam: But that's also the second YouTube channel I made this year.
- 11:45Vincent Warmerdam: I do a lot of stuff for Marimo.
- 11:47Vincent Warmerdam: I'm a little bit more on the growth side of things than the hardcore engineering side of things.
- 11:51Vincent Warmerdam: I still make a lot of plugins for Marimo, of course, but that's a little bit more of what I do nowadays.
- 11:56Vincent Warmerdam: Making sure that people learn about Marimo.
- 12:00Vincent Warmerdam: You can do things in a notebook now that you couldn't think of before.
- 12:03Vincent Warmerdam: I write my command line apps in a notebook nowadays because it's actually not just because I can, but because it's convenient too.
- 12:09Vincent Warmerdam: So we'll talk a little bit about that later when we talk about LLMs, but that's effectively the short story of what I've been doing last year.
- 12:14Michael Kennedy: Nice. All right. I am a fan of Marimo.
- 12:18Michael Kennedy: Happy to hear it.
- 12:19Michael Kennedy: Yeah, yeah, yeah. I did a data science course this year, just enough Python and software engineering for data scientists. Like, you know, what could you bring from the software engineering side to like sort of make your, your data engineering, data science stuff a little more reliable. But I was right on the fence of should I, should I use this? Because it's, I think it's clearly better. But at the same time, I also want to use what people are using. So I didn't quite go for it. But I just, the UI is fantastic.
- 12:47Michael Kennedy: the reproducibility, reliability of it,
- 12:50Michael Kennedy: where it uses the abstract syntax tree
- 12:52Michael Kennedy: or concrete, whatever,
- 12:54Michael Kennedy: to understand relationships across cells
- 12:56Michael Kennedy: so they don't get out of sync, potentially.
- 12:57Michael Kennedy: Yeah, I think it's really nice.
- 12:59Michael Kennedy: I had Akshay on the show,
- 13:01Michael Kennedy: who you work with also,
- 13:02Michael Kennedy: to talk about it.
- 13:03Vincent Warmerdam: The one thing in Jupyter that's,
- 13:07Vincent Warmerdam: I mean, let me start by saying,
- 13:08Vincent Warmerdam: Jupyter is still a really cool project.
- 13:10Vincent Warmerdam: Like if I think back of the last decade,
- 13:12Vincent Warmerdam: like all the good that that project
- 13:13Vincent Warmerdam: has brought to my career,
- 13:14Vincent Warmerdam: not just directly as a user,
- 13:16Vincent Warmerdam: but also indirectly,
- 13:17Vincent Warmerdam: all the algorithms that got invented
- 13:19Vincent Warmerdam: simply because we had a good enough
- 13:21Vincent Warmerdam: interactive environment suddenly, which we never
- 13:23Vincent Warmerdam: had before, it's done wonders.
- 13:25Vincent Warmerdam: So we should definitely be thankful.
- 13:27Michael Kennedy: Yeah, I'm not bashing on it either.
- 13:29Vincent Warmerdam: Yeah, but I do always want to
- 13:31Vincent Warmerdam: make sure that I give credit where credit is due, because
- 13:33Vincent Warmerdam: the project had a lot of impact.
- 13:35Vincent Warmerdam: But there is this really annoying thing with Jupyter, though.
- 13:37Vincent Warmerdam: Besides, you can be a bit grumpy
- 13:39Vincent Warmerdam: about the file format, sure, but the one thing that's
- 13:41Vincent Warmerdam: very annoying is you can write down
- 13:43Vincent Warmerdam: X is equal to 10, and then
- 13:45Vincent Warmerdam: have all sorts of cells below it that depend on X,
- 13:47Vincent Warmerdam: You could then delete the cell and the notebook will not complain to you about it.
- 13:51Vincent Warmerdam: Even though if anyone else tries to rerun the notebook, X is gone, it won't run, and your notebook is broken and you can't share the thing anymore.
- 13:58Vincent Warmerdam: And nowadays, fast forward like many years later, and we've got stuff like uv now.
- 14:02Vincent Warmerdam: So we can add metadata to a Python file to add dependencies.
- 14:06Vincent Warmerdam: And oh, wait, because Marimo is a Python file, we can add dependencies to the notebook that makes it super reproducible.
- 14:11Vincent Warmerdam: There's just all this stuff that you can rethink now simply because we have a good notebook format that is still a Python file.
- 14:18Vincent Warmerdam: That's really the killer feature here.
- 14:20Vincent Warmerdam: We can talk more about it if you like, but I can talk for ages about this topic, just warning you.
- 14:25Vincent Warmerdam: One final thing, maybe also for the software engineering side of things, because you didn't mention it.
- 14:29Vincent Warmerdam: Just to give an example of something we added recently.
- 14:31Vincent Warmerdam: If you have a cell in Marimo and there's a function in there that starts with test underscore, we will automatically assume it's a pytest.
- 14:39Vincent Warmerdam: So you can actually add unit tests to your notebook as well.
- 14:41Vincent Warmerdam: And then if you say python notebook.py,
- 14:44Vincent Warmerdam: then pytest will just run all the tests for you,
- 14:47Vincent Warmerdam: even though you can also run the tests in line in your CI CD as well.
- 14:49Vincent Warmerdam: So there's all sorts of these Python specific things that we can add,
- 14:53Vincent Warmerdam: again, because it's just a Python file.
- 14:54Michael Kennedy: Yeah, it's sort of the second mover advantage or nth mover advantage
- 14:58Michael Kennedy: where n is greater than one, where you see, okay, that was awesome.
- 15:01Michael Kennedy: Maybe this was a little bit of a rough edge.
- 15:02Michael Kennedy: And what would we do to work around that or smooth it out, right?
- 15:06Vincent Warmerdam: Well, and also we're also lucky that we're born in the age of uv.
- 15:09Vincent Warmerdam: I got to say like a lot of like quality of life improvements to a notebook.
- 15:15Vincent Warmerdam: A lot of that is also due to the fact that uv is around.
- 15:17Vincent Warmerdam: That's definitely a huge help as well.
- 15:20Michael Kennedy: This portion of Talk Python To Me is brought to you by Sentry's Seer.
- 15:24Michael Kennedy: I'm excited to share a new tool from Sentry, Seer.
- 15:27Michael Kennedy: Seer is your AI driven pair programmer that finds,
- 15:31Michael Kennedy: diagnoses and fixes code issues in your Python app faster than ever.
- 15:35Michael Kennedy: If you're already using Sentry, you are already using Sentry, right?
- 15:39Michael Kennedy: Then using Seer is as simple as enabling a feature on your already existing project.
- 15:45Michael Kennedy: Seer taps into all the rich context Sentry has about an error.
- 15:48Michael Kennedy: Stack traces, logs, commit history, performance data, essentially everything.
- 15:53Michael Kennedy: Then it employs its agentic AI code capabilities to figure out what is wrong.
- 15:58Michael Kennedy: It's like having a senior developer pair programming with you on bug fixes.
- 16:02Michael Kennedy: SEER then proposes a solution, generating a patch for your code and even opening a GitHub pull request.
- 16:08Michael Kennedy: This leaves the developers in charge because it's up to them to actually approve the PR.
- 16:13Michael Kennedy: But it can reduce the time from error detection to fix dramatically.
- 16:18Michael Kennedy: Developers who've tried it found it can fix errors in one shot that would have taken them hours to debug.
- 16:24Michael Kennedy: SEER boasts a 94.5% accuracy in identifying root causes.
- 16:29Michael Kennedy: SEER also prioritizes actionable issues with an actionability score, so you know what to fix first.
- 16:36Michael Kennedy: This transforms Sentry errors into actionable fixes, turning a pile of error reports into an ordered to-do list.
- 16:44Michael Kennedy: If you could use an always-on-call AI agent to help track down errors and propose fixes before you even have time to read the notification, check out Sentry's SEER.
- 16:54Michael Kennedy: Just visit talkpython.fm/SEER, S-E-E-R.
- 16:58Michael Kennedy: The link is in your podcast player show notes.
- 17:01Michael Kennedy: Be sure to use our code, Talk Python.
- 17:03Michael Kennedy: One word, all caps.
- 17:05Michael Kennedy: Thank you, Dysentry, for supporting Talk Pythonemy.
- 17:08Michael Kennedy: I saw on, gosh, where was it?
- 17:10Michael Kennedy: Speaking of Reddit, I saw on slash R,
- 17:14Michael Kennedy: learn Python or slash R Python.
- 17:16Michael Kennedy: One of the slash R's with a Python substring.
- 17:19Michael Kennedy: Someone asks, what Python package manager would you use now?
- 17:23Michael Kennedy: And it's just like, how many times can you say uv?
- 17:27Michael Kennedy: The feedback comments.
- 17:29Michael Kennedy: I mean, it was someone new who wasn't unsure, right?
- 17:31Michael Kennedy: They've seen all the different ones.
- 17:33Michael Kennedy: And yeah.
- 17:34Vincent Warmerdam: I mean, the coolest comparison I've seen, I think it was a tweet someone posted.
- 17:38Vincent Warmerdam: But like, definitely, like, suppose you're in the data field right now.
- 17:41Vincent Warmerdam: Like, what are the tools 10 years ago?
- 17:42Vincent Warmerdam: What are the tools now?
- 17:43Vincent Warmerdam: It definitely does feel like, okay, before we had pip, now we have uv.
- 17:47Vincent Warmerdam: Before we had Pandas, now we have Polars.
- 17:50Vincent Warmerdam: Before we had Matplotlib, now we have Altair.
- 17:52Vincent Warmerdam: And before we had Jupyter, now we've got Marino.
- 17:53Vincent Warmerdam: You can kind of see a generational shift, not just on the notebook side of things,
- 17:57Vincent Warmerdam: but like on the package manager, on the data frame library,
- 18:00Vincent Warmerdam: we're all learning from the previous generation
- 18:02Vincent Warmerdam: and it kind of feels like.
- 18:03Michael Kennedy: Yeah, absolutely.
- 18:04Michael Kennedy: It's an amazing time.
- 18:06Michael Kennedy: Every single day in Python is just more exciting
- 18:08Michael Kennedy: than the day before.
- 18:09Vincent Warmerdam: Yeah.
- 18:10Vincent Warmerdam: Although I should also mention, especially with the Polars
- 18:12Vincent Warmerdam: thing, there's a fair bit of rust too.
- 18:14Vincent Warmerdam: That also makes a difference.
- 18:16Michael Kennedy: Yeah, yeah, of course.
- 18:17Michael Kennedy: So before Flyby, I mean, you talked a bit about your YouTube
- 18:22Michael Kennedy: channel, you review the economic keyboards.
- 18:25Michael Kennedy: you have for those people who are just listening, not watching your background is super nice.
- 18:30Michael Kennedy: Your bona fides are solid here, but you've got a bunch of different ones. And I personally also,
- 18:35Michael Kennedy: I don't know, you might even just kick me out of the club if I should do that.
- 18:38Michael Kennedy: That's the Microsoft Sculpt, right?
- 18:40Michael Kennedy: Microsoft Sculpt ergonomic. And I like it so much because I can take this little bottom thing off
- 18:44Michael Kennedy: and it's like razor thin if I could rotate and reverse and jam it in my backpack and take it
- 18:49Michael Kennedy: with me. But I've also had RSI issues for 25 years or something. And it was really bad. And I switched
- 18:55Michael Kennedy: I used to type them on like laptops and stuff.
- 18:56Michael Kennedy: And I switched to just something like this and I could type 10 hours a day and
- 19:01Michael Kennedy: there's no problem. Whereas before, if I,
- 19:02Michael Kennedy: if I were to force to type full on, on a laptop,
- 19:05Michael Kennedy: I would probably be like unable to work in a week. If not a week.
- 19:09Vincent Warmerdam: So we had an offsite in San Francisco. So I was there like two weeks ago,
- 19:13Vincent Warmerdam: a lot of fun, but like, I'm not going to bring like,
- 19:16Vincent Warmerdam: airport security is going to look at this and wonder what,
- 19:19Vincent Warmerdam: like what kind of weird alien device this is. Right. So I figured, okay,
- 19:22Vincent Warmerdam: I'll leave those at home and just bring my normal laptop. And after a week,
- 19:25Vincent Warmerdam: I'm feeling it in my wrist again.
- 19:27Vincent Warmerdam: It's not good.
- 19:27Vincent Warmerdam: Yeah, it's something that takes serious.
- 19:29Vincent Warmerdam: Although I will also say like
- 19:32Vincent Warmerdam: because the kid was sick and the wife was sick
- 19:34Vincent Warmerdam: so I wasn't able to do a whole lot of exercise at home.
- 19:37Vincent Warmerdam: Also do exercise.
- 19:37Vincent Warmerdam: That also totally helps.
- 19:39Vincent Warmerdam: If I had to like,
- 19:40Vincent Warmerdam: sure, buy an ergonomic keyboard if you like.
- 19:42Vincent Warmerdam: Programmatic keyboards, they're great.
- 19:44Vincent Warmerdam: But if you're going to do that as an excuse
- 19:45Vincent Warmerdam: not to do exercise, you're doing it wrong.
- 19:47Vincent Warmerdam: That's the one thing I do want to add to that.
- 19:48Michael Kennedy: There's lots of stretches you can do.
- 19:50Michael Kennedy: Taking breaks matters.
- 19:51Michael Kennedy: Exercise matters.
- 19:53Michael Kennedy: But I think those keyboards are an essential feature.
- 19:56Michael Kennedy: They do totally help.
- 19:58Vincent Warmerdam: And also, sometimes it's not so much a healing measure.
- 20:01Vincent Warmerdam: It's more of a preventative measure.
- 20:02Michael Kennedy: Yes, 100%.
- 20:04Michael Kennedy: And I would like to put this message out just to everyone listening who is young, absolutely indestructible.
- 20:11Michael Kennedy: Please.
- 20:12Michael Kennedy: I know they're a bit of a pain in the butt with the weird curviness.
- 20:15Michael Kennedy: It is so worth it to just say, I've never had any RSI issues.
- 20:21Michael Kennedy: I just use this weird keyboard and people make fun of me,
- 20:23Michael Kennedy: but I don't care.
- 20:23Michael Kennedy: You know, that is a better thing than like, I'm working on it.
- 20:27Michael Kennedy: Yeah.
- 20:27Michael Kennedy: Oh, my.
- 20:28Michael Kennedy: It hurts.
- 20:28Michael Kennedy: You know?
- 20:29Vincent Warmerdam: Well, another thing is also, especially now
- 20:31Vincent Warmerdam: we've got stuff like Claude, right?
- 20:32Vincent Warmerdam: I just want-- if I can point out like one thing on that front.
- 20:36Vincent Warmerdam: So these ergonomic keyboards, you can often
- 20:38Vincent Warmerdam: program them as you see fit.
- 20:39Vincent Warmerdam: So you can say, like, if I hit this key, it's K.
- 20:42Vincent Warmerdam: But if I hold it down, it becomes command,
- 20:43Vincent Warmerdam: or whatever you like.
- 20:45Vincent Warmerdam: But it also means that you can map macros or shortcuts.
- 20:47Vincent Warmerdam: So whenever I hit this button, an app called MacWhisperer boots
- 20:51Vincent Warmerdam: That's going to record my voice.
- 20:51Michael Kennedy: I love Mac Whisper.
- 20:53Vincent Warmerdam: Yeah.
- 20:53Vincent Warmerdam: And then there's alternative variants for it.
- 20:55Vincent Warmerdam: I'm sure you've got stuff for Linux as well.
- 20:56Vincent Warmerdam: But the main thing it does is just really good speech to text.
- 20:59Vincent Warmerdam: And then whenever I'm done talking,
- 21:01Vincent Warmerdam: it's just immediately going to paste whatever I'm in.
- 21:04Vincent Warmerdam: So, oh, that's actually very nice,
- 21:06Vincent Warmerdam: because now the keyboard shortcut is just me holding my thumb down
- 21:08Vincent Warmerdam: instead of some sort of weird claw I got to eject to my keyboard.
- 21:15Vincent Warmerdam: And suddenly, it doesn't necessarily become a convenience thing.
- 21:17Vincent Warmerdam: It also becomes kind of a power user thing.
- 21:20Vincent Warmerdam: Like you can really customize your computer experience
- 21:22Vincent Warmerdam: if you can really map everything to your keyboard
- 21:24Vincent Warmerdam: just the way that you like.
- 21:25Vincent Warmerdam: It's like having Vim, but for all the apps out there.
- 21:28Michael Kennedy: Okay, that's very neat.
- 21:29Michael Kennedy: Yeah, I've remapped Caps Lock to my Activate Mac Whisper.
- 21:34Michael Kennedy: So if I hit Caps Lock and hold this down,
- 21:35Michael Kennedy: then I can dictate.
- 21:36Michael Kennedy: And I know computers have had dictation for a long time,
- 21:38Michael Kennedy: but it's been really bad, right?
- 21:40Michael Kennedy: The built-in dictation to macOS or Windows isn't great,
- 21:44Michael Kennedy: especially when you try to talk acronyms like,
- 21:46Michael Kennedy: hey, do PyPI, and it's like...
- 21:47Michael Kennedy: Yeah, Mac Whisper.
- 21:48Vincent Warmerdam: No, but Mac Whisper, it's not like all the way there,
- 21:51Vincent Warmerdam: but I will say it surprised me in quality a few times, definitely.
- 21:55Michael Kennedy: Yeah, yeah.
- 21:56Michael Kennedy: And that app, you can go in and actually set replacements.
- 21:58Michael Kennedy: Like if you ever think you're going to write this, write that instead.
- 22:02Michael Kennedy: So I've done that with like Talk Python
- 22:04Michael Kennedy: because it always just turns it into a camel case combined.
- 22:08Michael Kennedy: I'm like, no, those are two separate words.
- 22:10Michael Kennedy: You know, whatever.
- 22:10Michael Kennedy: You can sort of customize it a bit.
- 22:12Vincent Warmerdam: Yeah, and I think my favorite one,
- 22:14Vincent Warmerdam: I think Mac Whisper actually gets this one wrong still,
- 22:17Vincent Warmerdam: But whenever I write scikit-learn, which is a very popular data science package, it always
- 22:22Vincent Warmerdam: translates it to psychologists learn.
- 22:26Vincent Warmerdam: Which, you know.
- 22:30Michael Kennedy: I never want you to ever write this series of words.
- 22:33Michael Kennedy: Because if I have to, I'll just type it all in time.
- 22:36Michael Kennedy: It's not my common thing.
- 22:39Vincent Warmerdam: It's one of these moments where actually I type scikit-learn often enough where it's
- 22:43Vincent Warmerdam: like almost becoming the issue.
- 22:44Vincent Warmerdam: So I'm like at the verge of adding these rules manually
- 22:47Vincent Warmerdam: for all these weird open source packages
- 22:48Vincent Warmerdam: that I interact with.
- 22:49Vincent Warmerdam: But yeah, it's take ergonomics serious people.
- 22:52Vincent Warmerdam: That's the one thing I wanna say.
- 22:53Vincent Warmerdam: You don't always have to buy a super expensive keyboard.
- 22:56Vincent Warmerdam: The, if you wanna explore like programmatic keyboards
- 22:59Vincent Warmerdam: because you can customize things, that's an excellent reason.
- 23:01Vincent Warmerdam: But like take a break and do exercises and just,
- 23:03Vincent Warmerdam: you know, be healthy.
- 23:05Vincent Warmerdam: That's the, that's the, that's how you win a marathon.
- 23:07Michael Kennedy: - Yes, that's for sure.
- 23:08Michael Kennedy: Now this is not the Vincent's keyboard review marathon,
- 23:12Michael Kennedy: But let's wrap it up with, if you could take any keyboard
- 23:17Michael Kennedy: hanging around on your wall there, which one would you use?
- 23:19Vincent Warmerdam: - Well, so there's four pairs of these,
- 23:22Vincent Warmerdam: so it's probably this one.
- 23:25Vincent Warmerdam: So there's a couple of other boards that are great too.
- 23:27Vincent Warmerdam: This board is not the board I would recommend to everyone,
- 23:29Vincent Warmerdam: but if you have serious RSI issues,
- 23:31Vincent Warmerdam: I do think the GloVe 80 is your best bet.
- 23:34Vincent Warmerdam: It's simple, in terms of the shape,
- 23:36Vincent Warmerdam: it is probably the most ergonomic shape for most hand sizes.
- 23:39Michael Kennedy: - Yeah, okay, awesome.
- 23:40Michael Kennedy: All right, well, let's switch over to talking about programming.
- 23:45Michael Kennedy: Yes.
- 23:45Michael Kennedy: LLMs with LLMs, not programming LLMs.
- 23:48Michael Kennedy: And I guess, like you already called out, you wrote this course called
- 23:52Michael Kennedy: LLM building blocks for Python.
- 23:54Michael Kennedy: Super fun course, really neat, it's pretty short and concise.
- 23:57Michael Kennedy: And it really talks about how can you reliably add some kind of LLM into your code.
- 24:04Michael Kennedy: I guess what you're talking about in this course really applies regardless of
- 24:08Michael Kennedy: whether it's a self-hosted one or it's OpenAI or Anthropic, right?
- 24:12Michael Kennedy: You can have, there's some,
- 24:13Michael Kennedy: some choices you can make on which LLM to use, right?
- 24:17Vincent Warmerdam: So the, like the main idea I had with the course was like,
- 24:22Vincent Warmerdam: an LLM is a building block at some point,
- 24:24Vincent Warmerdam: but it's very unlike a normal building block when you're dealing with code,
- 24:27Vincent Warmerdam: because normally with code,
- 24:29Vincent Warmerdam: you put something into a function and like one thing comes out.
- 24:32Vincent Warmerdam: But in this particular case, you put a thing into a function,
- 24:34Vincent Warmerdam: you have no idea upfront what's going to come out.
- 24:36Vincent Warmerdam: And not only that, but you put the same thing in twice
- 24:38Vincent Warmerdam: and something else might come out as well.
- 24:40Vincent Warmerdam: So that means that you're going to want to think about this tool
- 24:44Vincent Warmerdam: a bit more defensively.
- 24:45Vincent Warmerdam: It's a weird building block.
- 24:46Vincent Warmerdam: It's like you have to put a moat around it
- 24:48Vincent Warmerdam: because otherwise the building block is going to do stuff
- 24:49Vincent Warmerdam: you don't want it to do, almost.
- 24:52Vincent Warmerdam: And some of that is syntax.
- 24:53Vincent Warmerdam: Some of that is how do you think about these Lego bricks.
- 24:56Vincent Warmerdam: And some of it is also just what is good methodology in general
- 24:59Vincent Warmerdam: to statistically test if the thing is doing roughly what you want it to do.
- 25:03Vincent Warmerdam: Nice.
- 25:04Vincent Warmerdam: That's the gist of it.
- 25:06Michael Kennedy: Yeah, cool.
- 25:07Michael Kennedy: Yeah, I pulled out a couple of ideas, concepts, and tools
- 25:10Michael Kennedy: that you talked about throughout the course.
- 25:12Michael Kennedy: And you don't have to have taken the course
- 25:13Michael Kennedy: to have these things be useful.
- 25:15Michael Kennedy: I just thought it might be fun to riff on some of the things
- 25:18Michael Kennedy: you touched on here.
- 25:20Michael Kennedy: The main thing I think will be fun is--
- 25:22Vincent Warmerdam: it's been half a year, I think.
- 25:23Vincent Warmerdam: It will be fun how much of it is still intact.
- 25:25Vincent Warmerdam: I think most of it still definitely is.
- 25:27Vincent Warmerdam: But it might be fun to see if we can find anything
- 25:29Vincent Warmerdam: that might be dated, just to see if the world has moved on
- 25:33Vincent Warmerdam: quickly.
- 25:33Vincent Warmerdam: I think there's only one thing, but I'm just kind of curious.
- 25:36Vincent Warmerdam: Let's see.
- 25:37Michael Kennedy: Yeah, all right.
- 25:37Michael Kennedy: Well, let's keep our radar up for that.
- 25:40Michael Kennedy: It's definitely something that's more changing quicker
- 25:43Michael Kennedy: and has a higher likelihood of being dated.
- 25:46Michael Kennedy: But I think it holds up pretty well.
- 25:47Vincent Warmerdam: Yeah, okay.
- 25:49Vincent Warmerdam: One of the things I remember emphasizing is you want to do some stuff like caching.
- 25:53Vincent Warmerdam: So let's say you've got a function and you use an LLM for it.
- 25:56Vincent Warmerdam: And let's keep it simple.
- 25:58Vincent Warmerdam: Let's say we're just making summaries.
- 25:59Vincent Warmerdam: So talk Python episode paragraph goes in, single sentence is supposed to come out.
- 26:04Vincent Warmerdam: Something like that.
- 26:05Vincent Warmerdam: Okay, well, you might have a loop and you're going to do maybe one pass, try one LLM with
- 26:13Vincent Warmerdam: one type of setting, try another LLM with different type of settings to generate all
- 26:16Vincent Warmerdam: this data.
- 26:17Vincent Warmerdam: It would be a shame that you're going to use an LLM, which is kind of an expensive compute
- 26:22Vincent Warmerdam: thing, if you put the same input in by accident and then you incur the cost twice.
- 26:26Vincent Warmerdam: That would really stink.
- 26:27Vincent Warmerdam: So one of the things you always want to do is think a little bit about caching.
- 26:31Vincent Warmerdam: And there's a Python library called disk cache that I've always loved to use.
- 26:34Vincent Warmerdam: And I highly recommend people have a look at it.
- 26:36Vincent Warmerdam: I think Michael, you've also used it in one of your courses before.
- 26:39Vincent Warmerdam: The trick is we have to talk about this.
- 26:40Vincent Warmerdam: It's so good.
- 26:41Vincent Warmerdam: It is so good.
- 26:42Michael Kennedy: It is SQLite and is so good.
- 26:45Michael Kennedy: It is even better than SQLite.
- 26:47Michael Kennedy: It is unbelievably good.
- 26:48Michael Kennedy: And I have you to think I knew about it, but yeah, whatever.
- 26:52Michael Kennedy: And then after I saw you use it, I'm like, genius.
- 26:54Vincent Warmerdam: It is genius.
- 26:56Vincent Warmerdam: Yes.
- 26:56Vincent Warmerdam: No, so it's like having the Eliru disk cache.
- 27:00Vincent Warmerdam: But it's also on disk.
- 27:01Vincent Warmerdam: So if you were to restart Python, you still have everything in cache basically.
- 27:05Vincent Warmerdam: And it's a SQLite database, so you can always inspect all the stuff that's in there.
- 27:10Vincent Warmerdam: If you wanted to, you can also do fancy things like add time to live to every single object.
- 27:16Vincent Warmerdam: And this is something you could do in a Docker container for a web app.
- 27:19Vincent Warmerdam: But the main thing that's always nice when you're dealing with LLMs is you always want
- 27:23Vincent Warmerdam: to be able to say in hindsight, like, okay, how did this LLM compare to that one?
- 27:27Vincent Warmerdam: You want to compare outputs.
- 27:28Vincent Warmerdam: then just writing a little bit of a decorator on top of a function
- 27:32Vincent Warmerdam: is the way to put it in SQLite, and you're just done with that concern.
- 27:35Vincent Warmerdam: That is just amazing.
- 27:37Vincent Warmerdam: And we're using this cache directly.
- 27:40Vincent Warmerdam: If you're using LLM by Simon Willison from the command line,
- 27:43Vincent Warmerdam: there's also a mechanism there so that you can get it into SQLite
- 27:46Vincent Warmerdam: if you wanted to.
- 27:46Vincent Warmerdam: So that's also a feature you could consider.
- 27:49Michael Kennedy: But--
- 27:49Michael Kennedy: MARK MANDEL: Of course, he's going to put something in SQLite.
- 27:51Michael Kennedy: Like, he can write a library that doesn't put something in SQLite,
- 27:53Michael Kennedy: given his data set project.
- 27:55Michael Kennedy: MARK MANDEL: It's Simon Willison.
- 27:56Vincent Warmerdam: He'll put SQLite in SQLite if it's a Sunday.
- 27:58Vincent Warmerdam: Yeah.
- 28:01Vincent Warmerdam: But if you haven't used Discash before,
- 28:03Vincent Warmerdam: it definitely feels like one of these libraries
- 28:06Vincent Warmerdam: that because I have it in my back pocket,
- 28:07Vincent Warmerdam: it just feels like I can tackle more problems.
- 28:10Vincent Warmerdam: That's the short story of it.
- 28:11Vincent Warmerdam: And again, the course uses it in a very sort of basic fashion,
- 28:15Vincent Warmerdam: but knowing that everything you do in an LLM
- 28:19Vincent Warmerdam: only needs to happen once,
- 28:20Vincent Warmerdam: if you're interested in using it once,
- 28:22Vincent Warmerdam: that just saves you so much money.
- 28:24Michael Kennedy: Yeah, and it's so useful.
- 28:25Michael Kennedy: So one of the things you did in the course is you said,
- 28:27Michael Kennedy: All right, the key for the value that we're going to store is going to be the model, the model settings and the prompt as a tuple, right?
- 28:35Michael Kennedy: Something along those lines.
- 28:36Michael Kennedy: And then you use that as the key.
- 28:38Michael Kennedy: So if any of those variations change, does the model change?
- 28:41Michael Kennedy: Do the settings change?
- 28:42Michael Kennedy: Or like anything, that's a totally different request.
- 28:45Michael Kennedy: And then you just store the response.
- 28:46Michael Kennedy: And then boom, if you ask the exact same question of the same model with the same prompt with the same settings, why do you need to go and wait 10 seconds and burn money and environmental badness?
- 28:56Michael Kennedy: when you could literally within a microsecond
- 28:59Michael Kennedy: get the answer back.
- 29:00Vincent Warmerdam: Yeah, and there's also a fancy thing.
- 29:01Vincent Warmerdam: It's a trick you can do on top.
- 29:02Vincent Warmerdam: So sometimes you want to say,
- 29:04Vincent Warmerdam: well, there's a statistical thing also happening.
- 29:06Vincent Warmerdam: So sometimes I want to have one input
- 29:08Vincent Warmerdam: and actually store maybe 10 outputs
- 29:10Vincent Warmerdam: so I can look at all these outputs,
- 29:11Vincent Warmerdam: maybe annotate that later.
- 29:13Vincent Warmerdam: And the way you solve that
- 29:14Vincent Warmerdam: is you just add an integer to the tuple, basically.
- 29:17Vincent Warmerdam: And then you're also able to store many outputs
- 29:19Vincent Warmerdam: if you really like.
- 29:20Michael Kennedy: The sky's the limit.
- 29:21Michael Kennedy: The fourth one, the eighth one, whatever.
- 29:23Michael Kennedy: Yeah, that's flexible.
- 29:25Michael Kennedy: Yeah.
- 29:26Michael Kennedy: And it does a whole bunch of neat, neat things that are really, really wild.
- 29:29Michael Kennedy: Like, so it looks like just, Hey, I put this value into it.
- 29:32Michael Kennedy: Right.
- 29:32Michael Kennedy: And it stores it.
- 29:33Michael Kennedy: It's really powerful because across application executions.
- 29:37Michael Kennedy: So like maybe if you're caching that response in your notebook and what are
- 29:40Michael Kennedy: you doing some testing, if you come back later, you've start the notebook back up
- 29:44Michael Kennedy: or restart the kernel or whatever, like it's not like an LRU cache.
- 29:47Michael Kennedy: It remembers cause it's stored somewhere in like temporary storage in a local
- 29:51Michael Kennedy: SQLite file, which is amazing.
- 29:53Michael Kennedy: It also has interesting ideas.
- 29:56Michael Kennedy: I'm not sure really where they are,
- 29:58Michael Kennedy: but it has different kinds of caches as well.
- 30:00Michael Kennedy: So maybe you're storing a ton of stuff in there.
- 30:03Michael Kennedy: And so it'll do basically built-in sharding.
- 30:06Michael Kennedy: Oh, yeah.
- 30:06Michael Kennedy: Multiple SQLite files.
- 30:08Michael Kennedy: And it's really, really good.
- 30:10Michael Kennedy: This is a deep library.
- 30:11Michael Kennedy: This is not just, oh, yeah.
- 30:13Michael Kennedy: It's like LRU, but to desk.
- 30:15Vincent Warmerdam: So the cool thing about that library is it really does go deep.
- 30:18Vincent Warmerdam: But if you really just want to use it as a dictionary, you can.
- 30:22Vincent Warmerdam: That's the thing that I really love about it.
- 30:23Vincent Warmerdam: But for all intents and purposes, you just treat it as a dictionary, and you're good.
- 30:26Vincent Warmerdam: Or use it as a decorator on a function, and again, you're good.
- 30:31Vincent Warmerdam: So again, it's one of those little hacks where, oh, if you just know about the library,
- 30:36Vincent Warmerdam: you just become more productive at typical Python stuff.
- 30:39Vincent Warmerdam: Yeah.
- 30:39Michael Kennedy: I'll give you a place where I'm using it, actually.
- 30:41Michael Kennedy: I use it on some LLM stuff, like where I'm programming against an LLM, for exactly the
- 30:46Michael Kennedy: reason you did.
- 30:46Michael Kennedy: Because if you have the same inputs, don't ask the question again.
- 30:49Michael Kennedy: You just hear the answer.
- 30:50Michael Kennedy: It's real, real fast.
- 30:51Michael Kennedy: But if you go over to like Talk Python, let's see here.
- 30:55Michael Kennedy: Go over to the guests, for example, right?
- 30:56Michael Kennedy: So there's a bunch of guests.
- 30:58Michael Kennedy: And here we have Vincent.
- 30:59Michael Kennedy: Not that Vincent.
- 31:00Michael Kennedy: Not that Vincent.
- 31:01Michael Kennedy: There you are, that Vincent.
- 31:01Michael Kennedy: All these Vincents.
- 31:04Michael Kennedy: They're all over the...
- 31:05Michael Kennedy: I have like 560 guests or something.
- 31:07Michael Kennedy: There's a lot.
- 31:08Michael Kennedy: But in here, you'll notice that if you go into the view of the source on this thing,
- 31:13Michael Kennedy: like all over the place, anytime there's a picture,
- 31:16Michael Kennedy: it'll have this little cache-busting ID on the end.
- 31:20Michael Kennedy: And that's fine when it's served locally
- 31:22Michael Kennedy: because you can just look at the file
- 31:23Michael Kennedy: and go just the file still with the same cache at startup.
- 31:25Michael Kennedy: But if it comes from like an S3 blob storage,
- 31:29Michael Kennedy: you know, and the app restarts,
- 31:30Michael Kennedy: how do I know what that is?
- 31:31Michael Kennedy: Like it has to go,
- 31:33Michael Kennedy: it would have to re-download the entire content of the blob.
- 31:37Michael Kennedy: So check this out.
- 31:39Michael Kennedy: Yeah.
- 31:39Michael Kennedy: So I just added.
- 31:40Michael Kennedy: Yeah, yeah, yeah.
- 31:41Vincent Warmerdam: So this feels like there's something between the proper CDN
- 31:44Vincent Warmerdam: and then getting it from S3.
- 31:45Vincent Warmerdam: Like there are these moments
- 31:46Vincent Warmerdam: when you want to have something that's kind of in between.
- 31:48Michael Kennedy: And then disk cache could actually be a good solution for it.
- 31:51Michael Kennedy: Exactly.
- 31:52Michael Kennedy: So what the site does is it has a disk cache.
- 31:54Michael Kennedy: And anytime it says, hey, I want to refer to a resource that's external,
- 31:59Michael Kennedy: it'll download it once, compute the hash,
- 32:01Michael Kennedy: and then store it in the disk cache unless you change something behind it.
- 32:05Michael Kennedy: And so it's automatically using this, and it makes everything like,
- 32:09Michael Kennedy: there's never stale resources, and it's instantly fast,
- 32:12Michael Kennedy: even if they're served out of something remote like S3 equivalent.
- 32:15Vincent Warmerdam: And do you also do a time to live?
- 32:19Vincent Warmerdam: Is it also the time to live is also like every day it's allowed to refresh once or something like that, I suppose?
- 32:24Michael Kennedy: Yeah, for the S3 stuff, I don't because I've set up all the admin functions that if I ever change one through the admin, it deletes it out of the cache.
- 32:32Michael Kennedy: Gotcha.
- 32:33Michael Kennedy: So it's like it's internally consistent.
- 32:35Michael Kennedy: But for like other things, like if it parses something out of the, say, the description, which is set in the dictionary, that stuff, it's just got a time to live of like a day or something.
- 32:46Michael Kennedy: And it's got like, there's a bunch of those.
- 32:47Michael Kennedy: I'm using all these different places.
- 32:49Michael Kennedy: And wow, it's so good.
- 32:50Michael Kennedy: I just wanted to say thank you, because I
- 32:51Michael Kennedy: knew we were going to talk about it today,
- 32:53Michael Kennedy: because this is so good.
- 32:54Vincent Warmerdam: Yeah, I know.
- 32:57Vincent Warmerdam: If it was part of the standard library,
- 32:59Vincent Warmerdam: I would honestly not be surprised.
- 33:01Vincent Warmerdam: That's also the story with that.
- 33:03Vincent Warmerdam: But yeah, SQLite is great.
- 33:04Vincent Warmerdam: DiskCache is great.
- 33:06Vincent Warmerdam: It feels like a dictionary, but it gives you so much more.
- 33:08Vincent Warmerdam: It's great.
- 33:09Vincent Warmerdam: That's the only thing I can say about it.
- 33:10Michael Kennedy: So people are probably like, wait,
- 33:12Michael Kennedy: I thought we were talking about LLMs.
- 33:14Michael Kennedy: Yeah, we are.
- 33:14Michael Kennedy: I think this is one of the interesting things,
- 33:16Michael Kennedy: It's because there's all these interesting tools and it's not even about using agentic AI.
- 33:20Michael Kennedy: And it's not like there's really cool libraries and tools that you can just apply to this LLM problem, but also apply everywhere else.
- 33:28Michael Kennedy: Right.
- 33:29Michael Kennedy: It's one of those.
- 33:30Vincent Warmerdam: So it's one thing I have found with like LLMs in general if you're building software with it.
- 33:34Vincent Warmerdam: On the one end, I think it can be very helpful if you're like a proper like senior engineer kind of a person because then you know about things like, oh, I want a cache.
- 33:40Vincent Warmerdam: And what's the pragmatic cache?
- 33:41Vincent Warmerdam: And you can also pick Redis, by the way.
- 33:43Vincent Warmerdam: If you would have used Redis for this,
- 33:44Vincent Warmerdam: that could have also worked.
- 33:45Vincent Warmerdam: Just that I think--
- 33:45Michael Kennedy: - Sure, it would have been fine.
- 33:46Vincent Warmerdam: - Yeah, it would have been fine.
- 33:47Michael Kennedy: - But you know what I like is there's no servers.
- 33:49Michael Kennedy: I don't have to deal with the servers.
- 33:51Michael Kennedy: Like, it's just, it's a file.
- 33:53Vincent Warmerdam: - It's very true.
- 33:54Michael Kennedy: - And it just keeps it simpler.
- 33:55Vincent Warmerdam: - It's totally true.
- 33:56Vincent Warmerdam: But the point I wanted to get out here,
- 33:58Vincent Warmerdam: like your previous experience as a proper engineer
- 34:01Vincent Warmerdam: will still help you write good LLM software.
- 34:03Vincent Warmerdam: However, from a similar perspective,
- 34:06Vincent Warmerdam: I also think that we do have this generation
- 34:07Vincent Warmerdam: of like data scientists,
- 34:08Vincent Warmerdam: and maybe data engineer, data analyst kind of person,
- 34:11Vincent Warmerdam: like thinking analytically being quite critical of the output of an algorithm.
- 34:15Vincent Warmerdam: That's also like a good bone to have in this day and age, I would say.
- 34:20Vincent Warmerdam: Because if I've built a couple of recommenders back in my day, like it's been a decade now,
- 34:24Vincent Warmerdam: but like one of the things you do learn when you're building a recommender is that you're stuck with this problem of,
- 34:29Vincent Warmerdam: hey, I gave this user this recommendation and they clicked it.
- 34:32Vincent Warmerdam: Would they have clicked this other thing if I would have recommended it to them?
- 34:36Vincent Warmerdam: And suddenly you're dealing with a system that's like really stochastic and hard to predict.
- 34:40Vincent Warmerdam: and you have to be kind of strict about the way you test and compare these different algorithms.
- 34:44Vincent Warmerdam: And you want to think twice about the way you A-B test these things.
- 34:47Vincent Warmerdam: And, oh, actually, just like disk cache is useful as a tool,
- 34:50Vincent Warmerdam: having a little bit of methodology statistically in your mind will also help you
- 34:55Vincent Warmerdam: because comparing LLMs, a lot of it is doing evaluations, being kind of strict about that.
- 35:01Vincent Warmerdam: And that's also what I try to do in the course.
- 35:03Vincent Warmerdam: I try to just show you that if you're really strict about evaluations,
- 35:06Vincent Warmerdam: then you can also learn that for some problems, you're still better off using scikit-learn
- 35:09Vincent Warmerdam: because you just evaluate it and then you learn that like the number is better on the side could
- 35:13Michael Kennedy: learn side of things yeah that's when you feel like oh maybe i did it wrong where you paid
- 35:17Michael Kennedy: a bunch of money to run expensive slow lms and you're like i would just use well so it's funny
- 35:22Vincent Warmerdam: you say that so i'm i've actually been talking to a bunch of people that do lms at companies here in
- 35:26Vincent Warmerdam: the netherlands and you know you you go to a pi data you go to a conference and you give them just
- 35:31Vincent Warmerdam: enough beer so they're honest in that kind of a situation the nda curtain opens just a little or
- 35:37Vincent Warmerdam: or whatever.
- 35:38Vincent Warmerdam: Plus, more deniability is the name of the game in this one, yes.
- 35:42Vincent Warmerdam: But then the stories you hear, which I did find somewhat encouraging,
- 35:45Vincent Warmerdam: is they do all kind of go, well, there's budget now to do AI stuff,
- 35:49Vincent Warmerdam: which means that we try out all the different LLMs,
- 35:51Vincent Warmerdam: and we really can invest in evals and that sort of thing.
- 35:54Vincent Warmerdam: And funnily enough, we also put some base models in there,
- 35:57Vincent Warmerdam: like as a standard benchmark that we should beat.
- 35:59Vincent Warmerdam: And I've heard a story a bunch of times now
- 36:02Vincent Warmerdam: that because of the hype around LLMs and AI,
- 36:05Vincent Warmerdam: after it was implemented, after they did all the benchmarks,
- 36:07Vincent Warmerdam: It turns out that AI is the reason that scikit-learn is now in production in a bunch of places.
- 36:10Michael Kennedy: And it's also the same thing with like spaCy.
- 36:13Vincent Warmerdam: Because what a lot of people do learn is that, hey, if the spaCy model or like the lightweight model, so to say,
- 36:19Vincent Warmerdam: is like somewhat equivalent to the LLM model after you give it like enough training data,
- 36:24Vincent Warmerdam: which you do want to have either anyway, because you need to need that for evaluations.
- 36:27Vincent Warmerdam: Well, typically those models are more lightweight and they will always produce the same output.
- 36:32Vincent Warmerdam: Same thing goes in, same prediction will always come out.
- 36:34Vincent Warmerdam: And you can really fence it off, have it on like a normal VM.
- 36:37Vincent Warmerdam: That's also totally fine.
- 36:39Vincent Warmerdam: Oh, and you know, another benefit, it's super lightweight to run.
- 36:42Vincent Warmerdam: You just need a Lambda function and you're good,
- 36:44Vincent Warmerdam: as opposed to like a GPU or like a huge cloud bill or something like that.
- 36:48Vincent Warmerdam: So some of the stories that I'm hearing do suggest that,
- 36:52Vincent Warmerdam: okay, these LLMs are also helping out like standard data science work, if it were,
- 36:57Vincent Warmerdam: if only because management now really does want to be serious about the investment
- 37:00Vincent Warmerdam: and really wants to do the experiments.
- 37:03Michael Kennedy: portion of Talk Python To Me is brought to you by NordStellar. NordStellar is a threat exposure
- 37:07Michael Kennedy: management platform from the Nord security family, the folks behind NordVPN that combines dark web
- 37:13Michael Kennedy: intelligence, session hijacking prevention, brand abuse detection, and external attack service
- 37:19Michael Kennedy: management. Keeping your team and your company secure is a daunting challenge. That's why you
- 37:24Michael Kennedy: need NordStellar on your side. It's a comprehensive set of services, monitoring, and alerts to limit
- 37:30Michael Kennedy: your exposure to breaches and attacks and act instantly if something does happen. Here's how
- 37:35Michael Kennedy: it works. Nordstellar detects compromised employee and consumer credentials. It detects stolen
- 37:42Michael Kennedy: authentication cookies found in InfoStealer logs and dark web sources and flags compromised devices,
- 37:48Michael Kennedy: reducing MFA bypass ATOs without extra code in your app. Nordstellar scans the dark web for
- 37:54Michael Kennedy: cyber threats targeting your company. It monitors forums, markets, ransomware blogs, and over 25,000
- 38:01Michael Kennedy: cybercrime telegram channels with alerting and searchable contexts you can route to Slack or your
- 38:07Michael Kennedy: IRR tool. Nordstellar adds brand and domain protection. It detects cyber squats and lookalikes
- 38:13Michael Kennedy: via visual, content similarity, and search transparency logs, plus broader brand abuse
- 38:19Michael Kennedy: takedowns across the web, social, and app stores to cut the phishing risk for your users.
- 38:24Michael Kennedy: They don't just alert you about impersonation, they file and manage the removals.
- 38:29Michael Kennedy: Finally, Nordstellar is developer-friendly.
- 38:31Michael Kennedy: It's available as a platform and an API.
- 38:35Michael Kennedy: No agents to install.
- 38:36Michael Kennedy: If security is important to you and your organization, check out Nordstellar.
- 38:40Michael Kennedy: Visit talkpython.fm/nordstellar.
- 38:42Michael Kennedy: The link is in your podcast player's show notes and on the episode page.
- 38:45Michael Kennedy: Please use our link, talkpython.fm/nordstellar,
- 38:49Michael Kennedy: so that they know that you heard about their service from us.
- 38:52Michael Kennedy: And you know what time of year it is.
- 38:53Michael Kennedy: It's late fall.
- 38:55Michael Kennedy: That means Black Friday is in play as well.
- 38:57Michael Kennedy: So the folks at Nord Stellar gave us a coupon, BlackFriday20.
- 39:02Michael Kennedy: That's BlackFriday, all one word, all caps, 20, two, zero.
- 39:05Michael Kennedy: That grants you 20% off.
- 39:07Michael Kennedy: So if you're going to sign up for them soon, go ahead and use BlackFriday20 as a code,
- 39:11Michael Kennedy: and you might as well save 20%.
- 39:13Michael Kennedy: It's good until December 10th, 2025.
- 39:16Michael Kennedy: Thank you to the whole Nord security team for supporting Talk Python To Me.
- 39:21Michael Kennedy: You could say, we're going to use your mandate is to add AI.
- 39:24Michael Kennedy: And then you go user, well, we got to see how well it's working.
- 39:26Michael Kennedy: So we tested it.
- 39:27Michael Kennedy: And then we have to compare it to something of a benchmark.
- 39:30Michael Kennedy: Exactly.
- 39:32Michael Kennedy: The benchmark is fast and effectively free and about as good.
- 39:36Michael Kennedy: So we're good.
- 39:38Michael Kennedy: We're just going to do that.
- 39:39Michael Kennedy: You know, I think it's fine.
- 39:41Vincent Warmerdam: Some organizations need like mandate from above in order to get something done.
- 39:45Vincent Warmerdam: And this LLM craze, if nothing else, does seem to have caused the mandate from above.
- 39:50Vincent Warmerdam: I'm sure it is.
- 39:52Vincent Warmerdam: So that's something I would keep in the back of your mind as well, dear listener.
- 39:56Vincent Warmerdam: Like sometimes that mandate can also give you permission to do other things.
- 40:00Michael Kennedy: Yeah.
- 40:01Michael Kennedy: Not working for a large enterprise type company for quite a while.
- 40:05Michael Kennedy: I imagine I'm pretty blind to how that is transforming directives from the top.
- 40:11Michael Kennedy: But I'm sure bosses are like, I'm using ChatGPT and it's so much better than our software.
- 40:15Michael Kennedy: What are we going to do about that?
- 40:16Vincent Warmerdam: you know yeah it's uh well i mean i'm in the developer tooling space so i still talk to big
- 40:21Vincent Warmerdam: companies and small companies as well you do notice that big companies they work differently
- 40:25Vincent Warmerdam: than small companies that is certainly true um for better or worse like there's also good there's
- 40:28Vincent Warmerdam: also good reasons why bigger companies like if i'm a bank like uh i'm pretty sure it's a good idea to
- 40:33Vincent Warmerdam: also have some rules that i have to abide by which yeah i'm just thinking more of like how disconnected
- 40:38Michael Kennedy: is the higher level management from the product and like how much do they just like dictate a thing
- 40:43Michael Kennedy: Okay, so let's talk about some of the tools. One of the things you primarily focused on was using
- 40:50Vincent Warmerdam: Simon Willison's LLM library. Tell us about this thing. So the funny thing about that library is
- 40:56Vincent Warmerdam: that it's actually kind of more meant as a command line utility. I think that's kind of the entry
- 41:00Vincent Warmerdam: point that he made. But then he also just made sure there was some sort of a Python API around it.
- 41:06Vincent Warmerdam: And after looking at that library, and also after playing around with all these other libraries,
- 41:11Vincent Warmerdam: and I'm about to say this, but this is a compliment.
- 41:13Vincent Warmerdam: I just found the LLM library by Simon Willison
- 41:16Vincent Warmerdam: by far to be the most boring.
- 41:18Vincent Warmerdam: And I mean that really in a good way, just unsurprising,
- 41:22Vincent Warmerdam: only does a few things.
- 41:23Vincent Warmerdam: The few things that it does is just in a very predictable way.
- 41:26Vincent Warmerdam: And especially if you're doing rapid prototyping,
- 41:28Vincent Warmerdam: what I felt was just kind of nice is that
- 41:30Vincent Warmerdam: it does feel like you have building blocks
- 41:31Vincent Warmerdam: that allow you to build very quickly,
- 41:33Vincent Warmerdam: but it doesn't necessarily feel like you're dealing with abstractions
- 41:35Vincent Warmerdam: that can sort of wall you in at some point.
- 41:38Vincent Warmerdam: So for a hello world getting started,
- 41:40Vincent Warmerdam: just do some things in a very Pythonic way,
- 41:43Vincent Warmerdam: this boring library really did the trick.
- 41:46Vincent Warmerdam: And I'm also happy to report it's still a library that I use.
- 41:49Vincent Warmerdam: It's still definitely a library in my tool, though.
- 41:51Vincent Warmerdam: Whenever I want to do something real quick,
- 41:53Vincent Warmerdam: that is definitely a tool that I refer to.
- 41:56Vincent Warmerdam: And one of the things--
- 41:57Michael Kennedy: Is it kind of an abstraction across the different LLMs
- 42:01Michael Kennedy: and that kind of stuff?
- 42:02Michael Kennedy: If I want to talk to Anthropic versus OpenAI, that doesn't matter?
- 42:06Vincent Warmerdam: So the way that this is built is also, I think, with good taste.
- 42:09Vincent Warmerdam: So what you don't want to do as a library is say, like, I'm going to basically support every library under the sun.
- 42:15Vincent Warmerdam: Because as a single maintainer in the case of Simon Willis, you're just going to drown in all these different providers.
- 42:20Vincent Warmerdam: So what he went for instead was a plugin ecosystem.
- 42:23Vincent Warmerdam: Now, the downside of a plugin ecosystem is that then you defer the responsibility of maintaining a plugin for a specific source to another maintainer.
- 42:30Vincent Warmerdam: But you might get someone who works at Mistral to make the Mistral plugin.
- 42:34Vincent Warmerdam: And you might get someone who works at Open Router to make the Open Router plugin, etc.
- 42:38Vincent Warmerdam: So you do distribute the workload in kind of a nice way.
- 42:42Vincent Warmerdam: And all the bigger models are definitely supported.
- 42:45Vincent Warmerdam: So the Anthropic and the OpenAI ones,
- 42:48Vincent Warmerdam: those are just always in there.
- 42:50Vincent Warmerdam: But you will also definitely find some of the more exotic ones
- 42:54Vincent Warmerdam: that they will also just have a plug in themselves.
- 42:56Vincent Warmerdam: And one thing that also helps under the hood
- 42:58Vincent Warmerdam: is that OpenAI has a standard under the hood.
- 43:01Vincent Warmerdam: Their SDK has become a bit of a standard across industry.
- 43:04Vincent Warmerdam: So you can also reuse the OpenAI stuff.
- 43:07Vincent Warmerdam: It would not surprise me at all that if you were just
- 43:09Vincent Warmerdam: to change a URL in the setting, that you can also
- 43:11Vincent Warmerdam: connect to Mistral via the OpenAI objects.
- 43:15Vincent Warmerdam: I would have to double check, but that wouldn't surprise me.
- 43:17Michael Kennedy: Yeah, that is a very common way of just like,
- 43:20Michael Kennedy: you know what, we're all going to just adopt Open.
- 43:23Michael Kennedy: It's a little like S3.
- 43:24Michael Kennedy: Like when I was saying S3 earlier,
- 43:26Michael Kennedy: I was actually talking to DigitalOcean.
- 43:28Michael Kennedy: But it doesn't matter.
- 43:29Michael Kennedy: I'm just still using Boto3 to talk to it.
- 43:31Vincent Warmerdam: Yeah, it does feel weird like, oh, you want to use DigitalOcean?
- 43:34Vincent Warmerdam: you have to download a SDK from a competing cloud provider and then you can.
- 43:39Vincent Warmerdam: Exactly. It's so weird.
- 43:41Vincent Warmerdam: But I mean, the thing I do find that it's just a little bit funny here is like technically,
- 43:45Vincent Warmerdam: this thing is meant to be used from the command line. It just happens that it's written in Python
- 43:49Vincent Warmerdam: and it just happens that also it has a decent Python API. And that's the thing I actually end up
- 43:54Vincent Warmerdam: using more than stuff from the command line. That's because I do a lot of things in notebooks. So the
- 43:58Vincent Warmerdam: stuff that I tend to use is a little bit more in the Python side.
- 44:01Michael Kennedy: Sure, of course. Same here.
- 44:02Michael Kennedy: Yeah, I don't think I would use it very much on the command line.
- 44:05Michael Kennedy: But, you know, I can see using it as a step in a series of things happening on the command line,
- 44:11Michael Kennedy: like some sort of orchestration, like X, Y, ask the LLM, Z, you know?
- 44:16Vincent Warmerdam: Well, the main thing I actually use it for from the command line is you can do a git diff
- 44:21Vincent Warmerdam: on whatever you're working on and then sort of pipe that through to the LLM to make the commit message.
- 44:26Vincent Warmerdam: Like there are like these little moments like that where you do want to have a little automation,
- 44:29Vincent Warmerdam: maybe in CI and like being able to do this from a command line is definitely useful it's just not
- 44:34Vincent Warmerdam: the thing i use it for most or like if i use it that way it's a thing i automate once and then
- 44:38Vincent Warmerdam: never really look at it but the interaction really for me is more in the notebook oh yeah that's a
- 44:44Michael Kennedy: very cool librarian i definitely need for um like one thing that might be fun to point out because
- 44:49Vincent Warmerdam: that's something i built i think uh around the same time like if you were to type into google
- 44:54Vincent Warmerdam: uh smart funk and then my GitHub alias koning a k-o-a-n-i-n-g um because it's a little
- 45:02Michael Kennedy: okay you already had it open good man i'm really good with google actually i use a start page these
- 45:07Vincent Warmerdam: days but i'm sure i could find it there oh okay here you're well you have an ergonomic keyboard
- 45:11Vincent Warmerdam: so there you go quick typing um already yeah no so like a thing i was able to build on top of uh
- 45:16Vincent Warmerdam: the thing that simon willison made and it's something that appears in the course as well
- 45:24Vincent Warmerdam: that. Yeah, there you go. So basically what this function does is you can add a decorator.
- 45:30Vincent Warmerdam: You just have a normal Python function. The inputs, you just put types on it. So you can say like,
- 45:35Vincent Warmerdam: this input is a string, this input is an integer, or what have you. You then add a decorator that
- 45:40Vincent Warmerdam: says what backend you want to use. So GPD4 or anything that Simon Willis and supports. And then
- 45:45Vincent Warmerdam: the doc string is the prompt you give to the LLM. So you can do something like, hey, I have a function
- 45:51Vincent Warmerdam: that accepts a term called paragraph.
- 45:53Vincent Warmerdam: That's a string.
- 45:54Vincent Warmerdam: And then the doc string of the function says,
- 45:56Vincent Warmerdam: summarize this.
- 45:56Vincent Warmerdam: And then lo and behold, you now have a Python function
- 45:59Vincent Warmerdam: that can do summaries.
- 46:00Michael Kennedy: I see.
- 46:01Michael Kennedy: And the doc string can be effectively a Jinja template.
- 46:05Michael Kennedy: Yes.
- 46:05Vincent Warmerdam: If you wanted to, it could be a Jinja template.
- 46:08Vincent Warmerdam: Alternatively, what you can also do
- 46:10Vincent Warmerdam: is you can also say, well, what the function returns
- 46:12Vincent Warmerdam: is the prompt.
- 46:13Vincent Warmerdam: That's also something you can do.
- 46:15Michael Kennedy: Got it.
- 46:16Vincent Warmerdam: But this is just a very quick hack for some of the stuff
- 46:19Vincent Warmerdam: that I want to do real quick.
- 46:20Vincent Warmerdam: I don't necessarily recommend other people to use this,
- 46:23Vincent Warmerdam: but this is something you can build on top of the LLM library
- 46:25Vincent Warmerdam: from Simon Willison.
- 46:26Vincent Warmerdam: So if you want to make your own syntactic sugar,
- 46:28Vincent Warmerdam: your own abstractions, it's definitely something
- 46:29Vincent Warmerdam: that you can also do.
- 46:31Vincent Warmerdam: And also, again, the name of the game here
- 46:33Vincent Warmerdam: is quick iteration.
- 46:34Vincent Warmerdam: So also feel free to think of your own tools now and again.
- 46:37Vincent Warmerdam: But you want the base layer to be as boring as possible.
- 46:39Vincent Warmerdam: And Simon Willison's library, again, does that in a good way.
- 46:42Michael Kennedy: Right, right.
- 46:43Michael Kennedy: Just don't make me think about the details.
- 46:45Michael Kennedy: Yes.
- 46:46Michael Kennedy: Let me swap out the model providers, which is actually
- 46:48Michael Kennedy: doing quite a bit, but not conceptually.
- 46:51Vincent Warmerdam: Yeah.
- 46:52Vincent Warmerdam: So again, one thing I do think at this point in time,
- 46:56Vincent Warmerdam: if you've not played around with this software stuff already,
- 46:59Vincent Warmerdam: I do recommend maybe doing that sooner rather than later.
- 47:02Vincent Warmerdam: And I think Simon Willison's approach,
- 47:03Vincent Warmerdam: if you're already a Python person,
- 47:04Vincent Warmerdam: it's probably the simplest way to get started.
- 47:06Vincent Warmerdam: But I do want to warn people in the sense of these are just tools.
- 47:10Vincent Warmerdam: Tools are useful.
- 47:11Vincent Warmerdam: Tools are great.
- 47:13Vincent Warmerdam: But at some point, it's not so much about the tools that you use,
- 47:15Vincent Warmerdam: but more about how you think about the tools,
- 47:17Vincent Warmerdam: Like the way you interact with these tools,
- 47:19Vincent Warmerdam: is it not some, like you can use a hammer
- 47:21Vincent Warmerdam: in many different ways,
- 47:22Vincent Warmerdam: but the way you think about a hammer
- 47:23Vincent Warmerdam: is like also equally important.
- 47:25Michael Kennedy: - Yeah, 100%.
- 47:26Michael Kennedy: So speaking of thinking about how this goes,
- 47:29Michael Kennedy: one of the challenges is,
- 47:30Michael Kennedy: so let's just take this example here.
- 47:33Michael Kennedy: It says, the example on your smartphone,
- 47:36Michael Kennedy: GitHub readme, it says generate summary,
- 47:38Michael Kennedy: take some text, it says generate a summary,
- 47:40Michael Kennedy: the following text, colon text.
- 47:42Michael Kennedy: - Yes, text.
- 47:43Michael Kennedy: - Super straightforward.
- 47:44Michael Kennedy: But what if you, what if you said, change the prompt a little bit said, give me all of the
- 47:48Michael Kennedy: Python libraries discussed in the following markdown content.
- 47:52Michael Kennedy: Right.
- 47:53Michael Kennedy: And do you want a novella back, like a novel back when, when really what you want is like,
- 47:59Michael Kennedy: I want a list of strings and URLs or whatever.
- 48:03Michael Kennedy: Like how do I get programmability instead of just chatability, I guess.
- 48:07Vincent Warmerdam: Yeah.
- 48:08Vincent Warmerdam: So the thing that Simon Willis's library does allow you to do, is you are able to
- 48:13Vincent Warmerdam: say, well, I have a prompt over here, but the output that I'm supposed to get out, well, that has to be
- 48:18Vincent Warmerdam: a JSON object of the following type. And then you can use Pydantic. So you can do something like, well,
- 48:22Vincent Warmerdam: I expect a list of strings to come out over here in the case that you're trying to detect Python
- 48:25Vincent Warmerdam: libraries or Pokemon names or what have you. Or you can say, well, there's more like a classification.
- 48:31Vincent Warmerdam: I believe you can pass a literal with like only these values and that's an also constraint. And
- 48:35Vincent Warmerdam: the reason that you can do that is some of these LLMs are actually trained on specific tasks. One of
- 48:41Vincent Warmerdam: these tasks could be tool calling. Another one of these tasks that are trained for these days is
- 48:45Vincent Warmerdam: that you have to say the right word here, something, something output, structured output,
- 48:51Vincent Warmerdam: so that the LLM can sort of give a guarantee that if you declare that you get a list of strings out,
- 48:56Vincent Warmerdam: that you actually do get a list of strings out. And that's something that these things are
- 48:59Vincent Warmerdam: typically trained for. So that's something you can do. If you're using open source models,
- 49:05Vincent Warmerdam: definitely check them out. They're cool. But quality does vary, is what I will say.
- 49:10Vincent Warmerdam: So that's something they always keep in the back of your mind.
- 49:12Vincent Warmerdam: And also the more complex you make your PyDonic objects,
- 49:15Vincent Warmerdam: like if you make like a nested thing of a nested thing of a nested thing,
- 49:18Vincent Warmerdam: at some point the LLM is going to have a bit of trouble with that.
- 49:21Vincent Warmerdam: Even though PyDonic is of course great,
- 49:23Vincent Warmerdam: but like you make it harder for the LLM to do the right thing at some point.
- 49:27Vincent Warmerdam: But that's also a thing that definitely you want to use
- 49:30Vincent Warmerdam: if you're doing stuff with software.
- 49:32Vincent Warmerdam: Like the really cool thing about PyDonic is you can say,
- 49:34Vincent Warmerdam: I expect something that looks like this to come out
- 49:36Vincent Warmerdam: and you can force an LLM to also actually do that.
- 49:39Vincent Warmerdam: Like, you will get the right types that come out.
- 49:41Vincent Warmerdam: The contents might still be maybe a bit spooky.
- 49:43Vincent Warmerdam: But at least you get the right types out,
- 49:45Vincent Warmerdam: which makes it a lot more convenient to write software.
- 49:47Michael Kennedy: You can say, I can loop over the things that sent back,
- 49:49Michael Kennedy: and you're not into vague text parsing land.
- 49:53Vincent Warmerdam: Well, the main thing you get is--
- 49:55Vincent Warmerdam: I remember when the first OpenAI models sort of started coming
- 49:58Vincent Warmerdam: out, I worked back at Explosion.
- 50:00Vincent Warmerdam: We made this tool called spaCy there.
- 50:02Vincent Warmerdam: And one of the things that we were really bummed out about
- 50:04Vincent Warmerdam: was LLMs can only really produce text.
- 50:06Vincent Warmerdam: So this structural, like if you want to detect a substring in a text, for example,
- 50:11Vincent Warmerdam: which is the thing that spaCy is really good at,
- 50:13Vincent Warmerdam: then you really want to guarantee, well, I'm going to select a substring that actually did appear in the text.
- 50:18Vincent Warmerdam: I want to know exactly where it starts and exactly where it ends, and that's the span that I want to select.
- 50:22Vincent Warmerdam: So normally in NLP, text comes in and structured information comes out.
- 50:27Vincent Warmerdam: But here come these LLMs and text comes in and text comes out.
- 50:30Vincent Warmerdam: And then you've got to figure out a way to guarantee that structured output actually comes out.
- 50:34Vincent Warmerdam: So that's the thing that the LN providers also acknowledge.
- 50:36Vincent Warmerdam: So that's something that they're actually training these models for.
- 50:39Vincent Warmerdam: But I think it's a lot better these days,
- 50:42Vincent Warmerdam: but it was definitely a huge part of the problem
- 50:45Vincent Warmerdam: like three to four years ago when these things just happened.
- 50:47Vincent Warmerdam: It was super annoying.
- 50:48Michael Kennedy: So if you use Pydantic, you define a Pydantic model
- 50:52Michael Kennedy: that drives from Pydantic.basedModel.
- 50:54Michael Kennedy: You put the types, type information, fields, et cetera.
- 50:58Michael Kennedy: And then what does it do?
- 50:59Michael Kennedy: Does it say, kind of use the schema generation
- 51:02Michael Kennedy: that Pydantic already has?
- 51:04Michael Kennedy: Like people are familiar with FastAPI.
- 51:06Michael Kennedy: You set the response model, it'll do open API spec,
- 51:10Michael Kennedy: which I believe just comes more or less from Pydantic, right?
- 51:12Vincent Warmerdam: I could be.
- 51:13Vincent Warmerdam: I think it's a JSON standard in the end.
- 51:16Vincent Warmerdam: Like, you know how you can generate JSON schemas as well?
- 51:18Vincent Warmerdam: I think it's that spec that is using under the hood
- 51:21Vincent Warmerdam: that is then also giving off to OpenAI or what have you.
- 51:24Vincent Warmerdam: So I think in the end, it's a JSON spec,
- 51:26Vincent Warmerdam: but I could be wrong.
- 51:27Michael Kennedy: But it's driven by the Pydantic model.
- 51:29Michael Kennedy: And then that's given as part of the prompt.
- 51:31Michael Kennedy: Like, here's my question.
- 51:32Michael Kennedy: your answer will look like this.
- 51:34Michael Kennedy: And it uses the Pydanic, something to that effect.
- 51:36Vincent Warmerdam: Yeah, there's one small caveat there
- 51:39Vincent Warmerdam: in the sense that you can also add custom types
- 51:42Vincent Warmerdam: with Pydanic.
- 51:42Vincent Warmerdam: So you can do something like,
- 51:43Vincent Warmerdam: well, this is a non-negative integer, for example.
- 51:46Vincent Warmerdam: And you can definitely imagine that,
- 51:48Vincent Warmerdam: especially with these validations
- 51:49Vincent Warmerdam: that you can write in Python,
- 51:50Vincent Warmerdam: not everything that you can come up with there
- 51:52Vincent Warmerdam: is going to be supported by this JSON spec.
- 51:54Vincent Warmerdam: So you are going to get some of these weird edge cases
- 51:56Vincent Warmerdam: maybe where Pydanic can do more
- 51:57Vincent Warmerdam: than what the JSON spec can do on your behalf.
- 52:00Vincent Warmerdam: There is a really cool library, though,
- 52:01Vincent Warmerdam: called Instructor that actually--
- 52:04Vincent Warmerdam: Yes, I was just thinking about that.
- 52:06Vincent Warmerdam: So what they do is actually kind of cute.
- 52:09Vincent Warmerdam: The impression I have is that they acknowledge
- 52:11Vincent Warmerdam: that PyDanic can actually do a bit more than what the JSON
- 52:13Vincent Warmerdam: spec can do, especially because the validator that you write
- 52:16Vincent Warmerdam: can really be a custom whatever thing you care about.
- 52:19Vincent Warmerdam: So what they do as a trick is they say, well,
- 52:21Vincent Warmerdam: if the LLM gives me something back that doesn't get validated
- 52:25Vincent Warmerdam: by PyDanic, we take the error message,
- 52:28Vincent Warmerdam: together with the thing that we got back,
- 52:30Vincent Warmerdam: make a new prompt to the LLM and just ask it again.
- 52:33Vincent Warmerdam: And see, maybe now with the hint,
- 52:34Vincent Warmerdam: it is able to give us the proper structure back.
- 52:37Vincent Warmerdam: That's sort of the term.
- 52:38Vincent Warmerdam: It sounds silly,
- 52:38Michael Kennedy: but anyone who's done agentic AI and stuff,
- 52:41Michael Kennedy: like, you know, Claude or whatever,
- 52:43Michael Kennedy: that's a lot of the magic where you say,
- 52:44Michael Kennedy: it tried this.
- 52:45Michael Kennedy: Oh, I see.
- 52:46Michael Kennedy: I actually forgot an import.
- 52:47Michael Kennedy: Oh, I see.
- 52:48Michael Kennedy: I passed the wrong command.
- 52:49Michael Kennedy: Let me try again a different way.
- 52:51Michael Kennedy: Oh, now it's working.
- 52:52Michael Kennedy: And, you know,
- 52:52Michael Kennedy: I think there's a lot of potential with that.
- 52:54Vincent Warmerdam: So, well, definitely true.
- 52:56Vincent Warmerdam: The one thing I think is safe to say at this point,
- 52:59Vincent Warmerdam: although another researcher, right?
- 53:01Vincent Warmerdam: So don't pin me down on this.
- 53:02Vincent Warmerdam: That library did originate from an early era of LLMs
- 53:05Vincent Warmerdam: when the structured stuff wasn't really
- 53:07Vincent Warmerdam: being trained for yet.
- 53:09Vincent Warmerdam: And it is my impression that LLMs have gotten a fair bit better
- 53:13Vincent Warmerdam: at this structured task at this point.
- 53:15Vincent Warmerdam: So you could argue that maybe that library is solving
- 53:18Vincent Warmerdam: a solved problem with the technique that they've got.
- 53:21Vincent Warmerdam: But I still don't want to discount it,
- 53:22Vincent Warmerdam: because you inevitably, at some point,
- 53:25Vincent Warmerdam: you might want to go for a very lightweight model
- 53:27Vincent Warmerdam: that you can run locally that isn't fine-tuned
- 53:29Vincent Warmerdam: structured output task. And in that situation, this technique can actually do a lot of good.
- 53:33Vincent Warmerdam: Like you might be prompting the LLM for like three times, but you might be able to get away
- 53:37Vincent Warmerdam: with that because the model is just so much lighter because it doesn't have to do all those tasks that
- 53:41Michael Kennedy: those big LLMs are trained for. Right. Especially if you're running on your machine or you're
- 53:46Michael Kennedy: self-hosting the model, you're not like, oh, it's going to cost us so much money. It's just,
- 53:49Michael Kennedy: it'll take a little longer, but it's fine. Yeah. So like there's a lot of support for
- 53:53Vincent Warmerdam: instructor. There's also Olama support for
- 53:55Vincent Warmerdam: the LM library from Simon Willison,
- 53:57Vincent Warmerdam: by the way. But yeah,
- 54:00Vincent Warmerdam: you can definitely imagine this is still going
- 54:01Vincent Warmerdam: to be relevant with the Olama stuff going forward.
- 54:04Vincent Warmerdam: And also, it's a reasonable
- 54:06Vincent Warmerdam: trick if you think about it.
- 54:08Vincent Warmerdam: The main thing that we do is we just add a retry
- 54:10Vincent Warmerdam: mechanic to the structured outputs by using
- 54:11Vincent Warmerdam: the PyDonic validator, effectively.
- 54:13Michael Kennedy: I mean, think about what you probably do, certainly what
- 54:15Michael Kennedy: I do when I'm working with ChatGPT or something.
- 54:18Michael Kennedy: It gives me a wrong answer like, no, this is not what I
- 54:19Michael Kennedy: wanted. This is what I wanted. It's like, oh, okay.
- 54:21Michael Kennedy: I see.
- 54:22Michael Kennedy: And it's kind of automating that, more or less.
- 54:25Vincent Warmerdam: It's certainly an attempt, yeah.
- 54:27Vincent Warmerdam: In my experience, I have also seen moments
- 54:30Vincent Warmerdam: when it sends the same error back five times,
- 54:33Vincent Warmerdam: and then it just kind of fails.
- 54:34Vincent Warmerdam: So there is also a limit to the retry mechanic.
- 54:37Michael Kennedy: Sure, sure.
- 54:38Michael Kennedy: It's a little bit like tenacity or stamina.
- 54:41Michael Kennedy: Exactly.
- 54:41Michael Kennedy: APIs or whatever.
- 54:43Michael Kennedy: It uses tenacity under the hood, if I'm not mistaken.
- 54:45Michael Kennedy: So there's definitely that mechanism in there.
- 54:47Michael Kennedy: Nice.
- 54:48Michael Kennedy: I just-- didn't work.
- 54:49Michael Kennedy: Try it again.
- 54:50Michael Kennedy: It's like turn it off and turn it on again.
- 54:51Michael Kennedy: See if it works now?
- 54:52Michael Kennedy: Yep, pretty much.
- 54:53Michael Kennedy: Television.
- 54:54Michael Kennedy: Yeah, a little more smart than that, though,
- 54:55Michael Kennedy: because it does validate and return the error.
- 54:58Michael Kennedy: So super cool.
- 54:59Michael Kennedy: Yep.
- 54:59Michael Kennedy: Okay.
- 55:00Michael Kennedy: Have you worked with, I guess, I don't know,
- 55:02Michael Kennedy: higher order programming models?
- 55:05Michael Kennedy: So, you know, I saw Samuel Colvin yesterday
- 55:08Michael Kennedy: talking about Pydantic AI.
- 55:10Michael Kennedy: I saw on X, I saw Sidney Ruckel talking about
- 55:15Michael Kennedy: some big release, like a 1.0 release
- 55:17Michael Kennedy: or something at LangChain.
- 55:18Michael Kennedy: What are your thoughts on some of these
- 55:19Michael Kennedy: higher order orchestration libraries?
- 55:22Vincent Warmerdam: I mean, the main thing for me, at least,
- 55:26Vincent Warmerdam: this was a demo I did do with the Pydanic AI one.
- 55:29Vincent Warmerdam: I do think types are quite powerful when you think of LLMs.
- 55:34Vincent Warmerdam: There's a live stream you can check on the Marimo YouTube
- 55:38Vincent Warmerdam: if you're keen to see a full demo.
- 55:39Vincent Warmerdam: But let me just sketch you a problem that
- 55:41Vincent Warmerdam: used to be really hard.
- 55:42Vincent Warmerdam: Six years ago, we used to work at this company called Raza.
- 55:45Vincent Warmerdam: We work on chatbot software.
- 55:47Vincent Warmerdam: And a thing that was really hard is you--
- 55:49Vincent Warmerdam: Let's say you're a chat bot, you can order a pizza.
- 55:51Vincent Warmerdam: So you can do things like, yep, that's the one.
- 55:54Vincent Warmerdam: It's like also one of the PyDonic AI engineers,
- 55:56Vincent Warmerdam: and he's also the creator of Starlet, by the way.
- 55:58Vincent Warmerdam: Cool project, Mariemost built on top of Starlet.
- 56:01Vincent Warmerdam: Main maintainer of that project.
- 56:02Vincent Warmerdam: He deserves to get more high fives from the community,
- 56:04Vincent Warmerdam: so do you want to point it out?
- 56:07Vincent Warmerdam: Well, let's say you're working on a pizza bot,
- 56:09Vincent Warmerdam: and okay, someone is ordering a pizza.
- 56:11Vincent Warmerdam: Suppose you go to the bot and you say,
- 56:13Vincent Warmerdam: "Hey, I want to order a pepperoni pizza."
- 56:15Vincent Warmerdam: But you can imagine there's a pizza type,
- 56:17Vincent Warmerdam: and a pizza type says, "What's the kind of pizza?
- 56:19Vincent Warmerdam: What's the size of the pizza?
- 56:20Vincent Warmerdam: And do you want to have extra toppings?
- 56:22Vincent Warmerdam: And that has to be a list of ingredients, let's say.
- 56:24Vincent Warmerdam: But if I tell you, hey, you want to have a pepperoni pizza,
- 56:29Vincent Warmerdam: but I don't know the size yet, well, then I
- 56:30Vincent Warmerdam: need the LLM to ask a good follow-up question.
- 56:33Vincent Warmerdam: OK, how are you going to build that logic?
- 56:35Vincent Warmerdam: Because that can get quite gnarly quite quickly,
- 56:37Vincent Warmerdam: especially if, in this case, the pizza is simple.
- 56:39Vincent Warmerdam: But you can come up with a complicated object,
- 56:41Vincent Warmerdam: like a complicated form almost.
- 56:42Vincent Warmerdam: And then--
- 56:43Michael Kennedy: Right, right.
- 56:43Michael Kennedy: I only need to ask this question if they've answered that one
- 56:46Michael Kennedy: in that way.
- 56:47Michael Kennedy: Right, it could get really tricky, yeah.
- 56:49Vincent Warmerdam: Well, and then the question is,
- 56:50Vincent Warmerdam: how can you actually get the LLM to do this for you?
- 56:53Vincent Warmerdam: And there's a trick that you can do with a type,
- 56:55Vincent Warmerdam: because what you can say is,
- 56:56Vincent Warmerdam: well, the response from the LLM has to be of type pizza,
- 56:59Vincent Warmerdam: or bar string.
- 57:01Vincent Warmerdam: And then if the prompt says something along the lines of,
- 57:03Vincent Warmerdam: well, parse the output of the user such that it is a pizza,
- 57:06Vincent Warmerdam: but then if this validation error occurs,
- 57:08Vincent Warmerdam: oh, how do you express that logic?
- 57:10Vincent Warmerdam: Well, you can express it with a type.
- 57:11Vincent Warmerdam: You just say, this is a string,
- 57:12Vincent Warmerdam: or it's the type that I'm actually interested in the pizza.
- 57:15Vincent Warmerdam: And then the LLM has to figure out,
- 57:16Vincent Warmerdam: is the response either going to be the string where I'm asking the user for missing information
- 57:21Vincent Warmerdam: or is it going to be the pizza object and if it's a pizza object then the code will actually talk
- 57:24Vincent Warmerdam: to the back end so you do get to rethink how typing works because we have llms at our disposal now you
- 57:30Vincent Warmerdam: can actually have the llm handle some of that logic as long as your type is like strict about
- 57:34Vincent Warmerdam: it or like well defined i should say um it's it's a bit of a weird advanced feature of types and llms
- 57:40Vincent Warmerdam: but i can definitely imagine uh some of the pydantic ai stuff does have does use this trick in order
- 57:46Vincent Warmerdam: to perform some of the higher order stuff and maybe you don't need a full framework as long as you are
- 57:51Vincent Warmerdam: really um like deliberate about your types is what i that that's kind of the mentality i try to
- 57:56Vincent Warmerdam: have right now like let's interesting let's not worry about like the big framework just yet if we
- 58:00Vincent Warmerdam: can just focus on the right types and make sure that all that stuff is kind of sane then you also
- 58:04Michael Kennedy: keep the extractions at bay which is i think also convenient especially early on it sounds a little
- 58:09Michael Kennedy: bit like an analogy you might be able to draw with databases like you could have like a really strong
- 58:15Michael Kennedy: structured Postgres or relational database where the database thing, aka the AI, is in charge of it.
- 58:22Michael Kennedy: Or you could be using an ODM or ORM where the code will only accept responses, right? So like,
- 58:29Michael Kennedy: for example, you can get away talking to a document database if you have strongly typed
- 58:34Michael Kennedy: models. If you're just passing dictionaries, you're going to end up in a bad place real quick
- 58:38Michael Kennedy: because something's not going to match, right? So it's kind of like the Pydanic thing is being a
- 58:42Michael Kennedy: check for if it's not quite perfect. I don't know. I feel like there's an analogy there.
- 58:46Vincent Warmerdam: There's a bit of an analogy there. The main thing with the LLM is like, oh, how much of the logic do
- 58:52Vincent Warmerdam: you want to control yourself as a guarantee? And how much would you like the LLM to do it? And
- 58:57Vincent Warmerdam: oh, that's always kind of a struggle. Like what is the right glue for that? And it turns out that
- 59:02Vincent Warmerdam: Pydantic is in a very funny, unique position to say, how about we just use types? And that actually
- 59:07Michael Kennedy: It just kind of works.
- 59:08Michael Kennedy: How ironic is that that that's such a popular thing coming out of a effectively untyped language?
- 59:15Vincent Warmerdam: Yeah.
- 59:16Michael Kennedy: Maybe that's why it's so popular.
- 59:18Michael Kennedy: I think it partly is.
- 59:19Vincent Warmerdam: I mean, it's my impression that there's a lot of this stuff also happening on the JavaScript
- 59:23Vincent Warmerdam: side of things, if I'm honest.
- 59:24Vincent Warmerdam: Now, for the JavaScript side of things, the argument is, of course, oh, you can also build
- 59:27Vincent Warmerdam: the web UIs a bit easier and the user experience and that whole story.
- 59:30Vincent Warmerdam: But they also do a lot of this validation stuff.
- 59:32Vincent Warmerdam: I forget the library, but there's also--
- 59:35Vincent Warmerdam: I'm learning a little bit of JavaScript now.
- 59:37Vincent Warmerdam: there's actually pydantic things happening in JavaScript land as well.
- 59:40Michael Kennedy: Yeah, it's probably jidantic.
- 59:44Vincent Warmerdam: Just-dantic.
- 59:46Vincent Warmerdam: Just-dantic, yeah, j-s-dantic.
- 59:49Vincent Warmerdam: Or TypeScript or whatever.
- 59:50Vincent Warmerdam: But there's also like ORM libraries for JavaScript that are like type E,
- 59:54Vincent Warmerdam: but not like super TypeScript just yet.
- 59:56Michael Kennedy: Yeah, there's a lot of interesting analogies from the JavaScript space for us.
- 59:59Michael Kennedy: You know, like the whole TypeScript team just rewrote everything in Go,
- 1:00:04Michael Kennedy: whereas we're seeing a lot of stuff in Python being modified.
- 1:00:06Michael Kennedy: Rust. Rust. Yeah, exactly. So pretty interesting. But let's, let's close this out a little bit with
- 1:00:12Michael Kennedy: like running some of our own models. Okay. So clearly there's Anthropic, there's OpenAI,
- 1:00:18Michael Kennedy: there's, you know, all the big, huge foundational models, but some of these things we're talking
- 1:00:22Michael Kennedy: about, it's like this identity schema validation type of thing. And so on, you know, maybe we could,
- 1:00:27Michael Kennedy: as you said, get away with running a smaller model, maybe small enough that we could run it
- 1:00:30Michael Kennedy: ourselves on our servers or on my Mac mini here m2 pro 32 gigs ram i have the um the open ai
- 1:00:39Michael Kennedy: 20 billion parameter model running as like my my default llm for any my code that i write that
- 1:00:45Vincent Warmerdam: needs to talk to an llm so um yeah so we actually have a video on the maroon channel that one but
- 1:00:51Vincent Warmerdam: go check that out later but basically i've recorded that link we'll put in the show notes yeah no so
- 1:00:56Vincent Warmerdam: I kind of find myself exploring all these different open source LLMs like once every two months or so.
- 1:01:01Vincent Warmerdam: And then Marimo has a couple of interesting integrations that makes it really easy to either hook into Olama or,
- 1:01:06Vincent Warmerdam: and that's like the only thing I might change on the course that we made,
- 1:01:09Vincent Warmerdam: there's now also the service called Open Router.
- 1:01:11Vincent Warmerdam: Like I don't know if you've ever seen that one.
- 1:01:13Michael Kennedy: Yes, I've heard of it.
- 1:01:14Michael Kennedy: Because I was looking at Klein.bot.
- 1:01:17Michael Kennedy: Are you familiar with Klein.bot?
- 1:01:18Vincent Warmerdam: Oh, yeah.
- 1:01:19Michael Kennedy: Klein is cool.
- 1:01:19Michael Kennedy: Klein is really cool.
- 1:01:20Vincent Warmerdam: I've been using that for a bit.
- 1:01:22Vincent Warmerdam: Tell me what Klein is real quick.
- 1:01:24Vincent Warmerdam: So Klein is basically Copilot for VS Code,
- 1:01:28Vincent Warmerdam: but the one thing that they do
- 1:01:29Vincent Warmerdam: is they really let you do any model,
- 1:01:31Vincent Warmerdam: like just plug it in.
- 1:01:32Vincent Warmerdam: And they are really strict about plan mode
- 1:01:33Vincent Warmerdam: versus like run mode, if it makes sense.
- 1:01:36Vincent Warmerdam: So you really got to,
- 1:01:37Vincent Warmerdam: and one, the UI is kind of cool.
- 1:01:39Vincent Warmerdam: So like every time that you're like planning
- 1:01:41Vincent Warmerdam: or doing whatever,
- 1:01:42Vincent Warmerdam: you kind of see the progress bar of your context.
- 1:01:45Vincent Warmerdam: And then you also see how much money it costs.
- 1:01:47Vincent Warmerdam: So you're like always aware of the fact that like,
- 1:01:49Vincent Warmerdam: okay, this thing is costing me bucks now.
- 1:01:51Vincent Warmerdam: And it's just a refreshing take on GitHub Copilot.
- 1:01:54Vincent Warmerdam: And I will say, you can't do sessions in parallel,
- 1:01:57Vincent Warmerdam: because it is, I think, at the moment, still stuck to the VS Code
- 1:02:00Vincent Warmerdam: extension ecosystem.
- 1:02:01Vincent Warmerdam: Could be wrong with that.
- 1:02:02Michael Kennedy: They just introduced a CLI.
- 1:02:04Vincent Warmerdam: Ah, there you go.
- 1:02:05Michael Kennedy: There you go.
- 1:02:06Michael Kennedy: I bet you can do it with that.
- 1:02:07Vincent Warmerdam: Yeah, so that's also--
- 1:02:09Vincent Warmerdam: the main thing that drew me in was the whole, oh,
- 1:02:11Vincent Warmerdam: they're very strict about plan mode versus Go mode,
- 1:02:14Vincent Warmerdam: which I think is definitely super useful.
- 1:02:17Michael Kennedy: And on top of that, you have some nice UI.
- 1:02:19Michael Kennedy: Yeah, it's also real similar to Cursor and others.
- 1:02:21Michael Kennedy: And I think it's a big selling point.
- 1:02:23Michael Kennedy: open source and they don't charge for inference so you just put in your api key and it just just
- 1:02:28Michael Kennedy: passes through but you're right they do have like the as it's thinking it's got a little tick tick
- 1:02:31Michael Kennedy: tick price of this opera and it's like oh it's up to three cents five you know it's just interesting
- 1:02:37Vincent Warmerdam: to watch it go you also it's kind of like the fibonacci sequence you kind of realize that it's
- 1:02:41Vincent Warmerdam: additive so it's like oh i've spent like half a dollar now oh and the next problem is going to be
- 1:02:45Vincent Warmerdam: half a dollar plus extra the next one's going to be like that extra exactly it makes you manage your
- 1:02:51Michael Kennedy: your context size real well.
- 1:02:53Michael Kennedy: So anyway, OK, that's a bit of a diversion.
- 1:02:54Michael Kennedy: But I think this is a fun tool to shout out.
- 1:02:57Vincent Warmerdam: No, I agree.
- 1:02:57Michael Kennedy: So the reason I brought this up is I
- 1:03:00Michael Kennedy: saw they were number one on Open Router.
- 1:03:02Michael Kennedy: I'm like, wait, what's Open Router?
- 1:03:03Vincent Warmerdam: Yeah, so Open Router is basically you have one API key,
- 1:03:06Vincent Warmerdam: and then they will route to any LLM that you like.
- 1:03:09Vincent Warmerdam: And one thing that's really cool about it
- 1:03:11Vincent Warmerdam: is that if there's a new open source model
- 1:03:13Vincent Warmerdam: that you see all at Twitter and YouTube rave about,
- 1:03:15Vincent Warmerdam: it'll be on Open Router.
- 1:03:17Vincent Warmerdam: And then you can just give it a spin.
- 1:03:18Vincent Warmerdam: If you have, let's say, stuff in your cache,
- 1:03:21Vincent Warmerdam: and you've got a couple of functions that you use for evaluation,
- 1:03:24Vincent Warmerdam: and you've got a setup for that,
- 1:03:25Vincent Warmerdam: then it's just changing a single string to give a new LLM model a try.
- 1:03:29Vincent Warmerdam: And they will make sure everything is nicely routed.
- 1:03:32Vincent Warmerdam: And that's like the whole service also, basically.
- 1:03:34Vincent Warmerdam: I think they add like a 5% fee hike or something like that,
- 1:03:39Vincent Warmerdam: but they've got all sorts of GPU providers competing for the lowest price.
- 1:03:42Vincent Warmerdam: So they do all the routing to all the LLM models,
- 1:03:46Vincent Warmerdam: but also the open source ones.
- 1:03:47Vincent Warmerdam: And that's the main convenient bit.
- 1:03:48Vincent Warmerdam: Because I might not have-- so it's partially that I don't have the biggest GPU for the biggest models,
- 1:03:55Vincent Warmerdam: but it's really convenient to just do kind of a for loop.
- 1:03:57Vincent Warmerdam: Like, okay, take the 7B model from Qwenn, the 14B model, and just loop over all of them,
- 1:04:02Vincent Warmerdam: and see if there's like a sweet spot as far as like quality is concerned and also model size.
- 1:04:07Vincent Warmerdam: Like those kinds of experiments become a whole lot simpler if you just have one API that has all the models.
- 1:04:11Vincent Warmerdam: And OpenRouter kind of gets you there.
- 1:04:13Michael Kennedy: Yeah, okay, very neat.
- 1:04:14Vincent Warmerdam: And it's also why Klein likes using it.
- 1:04:16Vincent Warmerdam: So they have a direct connection with Klein.
- 1:04:18Vincent Warmerdam: Just in the user interface, you can say,
- 1:04:20Vincent Warmerdam: well, I want to have this model from Open Router.
- 1:04:21Vincent Warmerdam: Just click, click, click, and it's all sort of ready to go.
- 1:04:24Vincent Warmerdam: But that's their service.
- 1:04:25Michael Kennedy: OK, very neat.
- 1:04:26Michael Kennedy: So maybe for people who haven't run their own models,
- 1:04:30Michael Kennedy: there's a couple of options.
- 1:04:32Michael Kennedy: Sounds like you recommend Olama.
- 1:04:34Vincent Warmerdam: I mean, that's the one that I have used.
- 1:04:35Vincent Warmerdam: You've used LM Studio, I think?
- 1:04:37Michael Kennedy: I use LM Studio because LM Studio
- 1:04:40Michael Kennedy: has this UI for discovering and setting them up
- 1:04:42Michael Kennedy: and playing and configuring them.
- 1:04:43Michael Kennedy: But then you can just say, run in dev mode,
- 1:04:45Michael Kennedy: and it just runs, and here we go,
- 1:04:47Michael Kennedy: an OpenAI compatible--
- 1:04:49Michael Kennedy: - There you go. - API endpoint
- 1:04:50Michael Kennedy: on my local network.
- 1:04:51Michael Kennedy: And so I can just point anything that can do ChatGPT,
- 1:04:54Michael Kennedy: I can point it at this, whatever's running there.
- 1:04:56Michael Kennedy: And I was running the GPT OSS 20 billion one
- 1:04:59Michael Kennedy: last time I tried.
- 1:05:00Michael Kennedy: - There you go.
- 1:05:01Vincent Warmerdam: Okay.
- 1:05:01Vincent Warmerdam: So Ollama also has like a very similar thing.
- 1:05:04Vincent Warmerdam: My impression is that LM Studio in the end
- 1:05:06Vincent Warmerdam: is like pretty similar,
- 1:05:07Vincent Warmerdam: just has a slightly different UI.
- 1:05:09Vincent Warmerdam: It's a bit more of an app, I suppose.
- 1:05:10Vincent Warmerdam: Like Ollama is definitely more of a command line utility.
- 1:05:13Vincent Warmerdam: Does the job though, I would say,
- 1:05:15Vincent Warmerdam: but it doesn't have that much to offer in the UI department.
- 1:05:18Michael Kennedy: Yeah, I think if I were ever to try to set it up on my server,
- 1:05:21Michael Kennedy: I'd probably just do Olama, maybe inside a Docker or something.
- 1:05:24Michael Kennedy: I don't know, something like that.
- 1:05:25Vincent Warmerdam: Yeah, not true.
- 1:05:27Vincent Warmerdam: The one sort of mysterious thing with a lot of these services,
- 1:05:29Vincent Warmerdam: like how do they make money?
- 1:05:31Vincent Warmerdam: And I think I read somewhere that Olama is going to start doing
- 1:05:35Vincent Warmerdam: open router kind of stuff as well,
- 1:05:37Vincent Warmerdam: so it wouldn't surprise me if they ended up going in that direction.
- 1:05:40Vincent Warmerdam: But I mean, there's all sorts of vendors,
- 1:05:42Vincent Warmerdam: and there's another thing I'm also seeing a lot of nowadays
- 1:05:45Vincent Warmerdam: use like big models that generate a data set such that they can take a super tiny model and fine
- 1:05:49Vincent Warmerdam: tune on the data that was generated by the big model and that way like a future maybe that we
- 1:05:53Vincent Warmerdam: might have is that you have a dutch model that's really good for legal maybe we'll have like a
- 1:05:58Vincent Warmerdam: super bespoke lm for that at some point or like a um like an lm that's like really good at css but
- 1:06:04Vincent Warmerdam: only css like that's also a thing that we might have and then those models can be really tiny and
- 1:06:09Vincent Warmerdam: run on your laptop and who knows this is the age we live in um but i certainly can foresee a world
- 1:06:14Michael Kennedy: like that where it's like okay i'm gonna work on a project instead of spinning up a general world
- 1:06:19Michael Kennedy: knowledge model i'm gonna just let it on demand go okay i have a css question well what framework
- 1:06:24Michael Kennedy: are you using i'm using tailwind okay we're gonna spend up the tailwind llm model and we need to ask
- 1:06:29Michael Kennedy: it a question yeah we're gonna shut that you know what i mean like really focus but then have some
- 1:06:33Michael Kennedy: kind of orchestrating thing that says now i gotta talk to this now let me let me work with that one
- 1:06:37Vincent Warmerdam: but that could be great yeah and it might also be a solution to the whole oh the time cut off is
- 1:06:41Vincent Warmerdam: January to 2025.
- 1:06:43Vincent Warmerdam: And like everything happened after we have no knowledge about.
- 1:06:46Vincent Warmerdam: Like it could also be a way for us to have a system where we just retrain a thing weekly
- 1:06:50Vincent Warmerdam: and it's just a diff on top or something like that.
- 1:06:52Vincent Warmerdam: Right.
- 1:06:53Vincent Warmerdam: Yeah.
- 1:06:53Vincent Warmerdam: It could also happen.
- 1:06:54Michael Kennedy: Yeah.
- 1:06:54Michael Kennedy: And if it were small enough, then it would be okay.
- 1:06:56Vincent Warmerdam: Yeah.
- 1:06:57Michael Kennedy: It would be kind of like SETI at home.
- 1:06:58Michael Kennedy: All of our stuff would just be like kind of have the fan going.
- 1:07:02Vincent Warmerdam: The, I mean, it's a bit of a science fiction thing, but you can imagine at some point every
- 1:07:06Vincent Warmerdam: home will have solar panels and then maybe every home will also just have a GPU and maybe
- 1:07:10Vincent Warmerdam: we won't have huge-ass server farms.
- 1:07:12Vincent Warmerdam: It's just that we have a network, and everyone
- 1:07:14Vincent Warmerdam: has a GPU, and if my neighbor suddenly
- 1:07:16Vincent Warmerdam: wants to do math, then he can borrow my GPU.
- 1:07:18Vincent Warmerdam: I don't know. We'll see.
- 1:07:21Vincent Warmerdam: It kind of sounds cool, doesn't it?
- 1:07:22Vincent Warmerdam: Yeah. If people like
- 1:07:24Vincent Warmerdam: distributed systems,
- 1:07:26Michael Kennedy: might as well go for it.
- 1:07:29Michael Kennedy: If you want to add to the
- 1:07:32Michael Kennedy: unpredictability of
- 1:07:32Michael Kennedy: the LLM, mix in a distributed
- 1:07:34Michael Kennedy: grid computing that you don't know about too much either,
- 1:07:36Michael Kennedy: and then you'll get some real...
- 1:07:38Vincent Warmerdam: I do want to give one quick shot
- 1:07:40Vincent Warmerdam: on this one front, though, because I do think
- 1:07:41Vincent Warmerdam: it's an idea that's worth pursuing.
- 1:07:43Vincent Warmerdam: So in Holland, we've got this one cloud provider called
- 1:07:46Vincent Warmerdam: LeafCloud, and I think they're still around.
- 1:07:48Vincent Warmerdam: But what they do is they install these server farms,
- 1:07:51Vincent Warmerdam: like what we're discussing.
- 1:07:52Michael Kennedy: They have a GPU rack at the bottom of an apartment building.
- 1:07:57Vincent Warmerdam: And any excess heat, which is one of the main cost drivers,
- 1:08:01Vincent Warmerdam: that's actually used to preheat the water for the rest
- 1:08:03Vincent Warmerdam: of the apartment.
- 1:08:04Vincent Warmerdam: Yeah.
- 1:08:05Vincent Warmerdam: So on paper, at least, you do have something that's not only
- 1:08:09Vincent Warmerdam: carbon negative, but also more cost effective because the person, like the waste product of the
- 1:08:13Vincent Warmerdam: of the compute is now a thing that the heat that someone is willing to pay for as well. So
- 1:08:18Vincent Warmerdam: on paper, you can also be cheaper if you play your cards right.
- 1:08:21Michael Kennedy: I ran across this and I was really inspired by it. I ended up not using LeafCloud for anything,
- 1:08:27Michael Kennedy: but it's a cool idea.
- 1:08:28Vincent Warmerdam: So the one downside of that approach is you do have to be close to a data center because
- 1:08:33Vincent Warmerdam: do you really want to store your private data on disk in an apartment building or in a secure
- 1:08:37Vincent Warmerdam: facility. So what they do is they just have glass fiber cables. Like the disc is in the facility,
- 1:08:42Vincent Warmerdam: but the memory and the GPU and the computer is in the apartment building. That's sort of the way
- 1:08:45Michael Kennedy: it's like a mounted volume over fiber, sort of like a network volume over fiber. Sure. I think
- 1:08:51Michael Kennedy: that's pretty common. A lot of data center setups, it just happens to be spanning an apartment
- 1:08:56Vincent Warmerdam: complex, which is unusual. Oh, it's also only for certain types of compute loads, right? You're
- 1:09:00Vincent Warmerdam: probably not going to do your web app fire that apartment building. It's probably not going to be
- 1:09:04Vincent Warmerdam: productive but if you're doing like big simulation big like deep learning things like that actually
- 1:09:09Michael Kennedy: everyone everyone knows you can do machine training machine learning training and it's all good for
- 1:09:15Michael Kennedy: serverless you just send the stuff out it just goes finds an apartment complex runs it serverless and
- 1:09:20Michael Kennedy: it comes back right now just kidding so yeah it's a pretty neat idea yeah there's um we'll see what
- 1:09:25Vincent Warmerdam: the future brings like when i did data science the joke i always made is like as a data scientist i
- 1:09:29Vincent Warmerdam: I know for sure that the future is really hard to predict.
- 1:09:35Vincent Warmerdam: Maybe the past is easier to predict,
- 1:09:37Vincent Warmerdam: and that's what we do in machine learning.
- 1:09:38Vincent Warmerdam: We try to predict the past, and yeah,
- 1:09:40Vincent Warmerdam: we'll see what these LLMs do.
- 1:09:41Vincent Warmerdam: But until then, again, also the repeating lesson from the course,
- 1:09:46Vincent Warmerdam: there's some good habits, but in the end,
- 1:09:47Vincent Warmerdam: it's not so much the LLM, it's more the stuff around
- 1:09:50Vincent Warmerdam: and how you think about it.
- 1:09:51Vincent Warmerdam: And also, small shout-out to Marimo.
- 1:09:53Vincent Warmerdam: I do think having some UI in the blend as well,
- 1:09:56Vincent Warmerdam: such as you can say, oh, there's a text box here,
- 1:09:58Vincent Warmerdam: another text box there.
- 1:09:59Vincent Warmerdam: you can kind of play around making your own little LLM app. Like the thing that I typically do is I
- 1:10:04Vincent Warmerdam: hook up Gemini to my YouTube videos to make like summaries for my blog. I'd like try to find little
- 1:10:08Vincent Warmerdam: excuses to like improve your life by automating something with these LLM tools. And that's a nice
- 1:10:13Michael Kennedy: way to get started. Yeah, there's really, I think we all probably have little opportunities to automate
- 1:10:18Michael Kennedy: some low stakes thing, but that we spend a lot of time with or hassle or whatever and let an LLM
- 1:10:23Michael Kennedy: have at it and write a little Python to make that happen, right?
- 1:10:25Vincent Warmerdam: Yeah, and also expose yourself to your own slop as well.
- 1:10:30Vincent Warmerdam: The nice thing about building your own apps is also because you then suddenly start to realize when it's also still good to be a human.
- 1:10:35Vincent Warmerdam: Like, I'm not going to have an LLM automate messages to my wife and my kid.
- 1:10:40Vincent Warmerdam: That's just not going to happen because I've seen what these LLMs can output.
- 1:10:43Vincent Warmerdam: Like, that's going to remain on the human side of the spectrum.
- 1:10:46Vincent Warmerdam: Exactly.
- 1:10:47Vincent Warmerdam: But making a summary for my blog on a video, I mean, that feels in the ballpark.
- 1:10:51Michael Kennedy: 100%.
- 1:10:52Michael Kennedy: All right.
- 1:10:52Michael Kennedy: Final word for people interested in this topic they want to build.
- 1:10:56Michael Kennedy: I want to plug in LLMs as part of that building block.
- 1:10:59Michael Kennedy: What do you say?
- 1:11:00Vincent Warmerdam: Open Router is nice and flexible.
- 1:11:02Vincent Warmerdam: LLM by Simon Willison is great.
- 1:11:04Vincent Warmerdam: Disk cache is a thing that you do want to disk cache.
- 1:11:09Vincent Warmerdam: Maybe a final thing that I do maybe want to...
- 1:11:12Vincent Warmerdam: It's also fine if you just want to learn Python as well.
- 1:11:15Vincent Warmerdam: There's some of this talk of people saying,
- 1:11:17Vincent Warmerdam: oh, we never have to...
- 1:11:19Vincent Warmerdam: Oh, actually, people from Peru are tuning in.
- 1:11:21Vincent Warmerdam: Peru is amazing.
- 1:11:22Vincent Warmerdam: from seeing people sort of replying the conversation.
- 1:11:24Vincent Warmerdam: Yeah, absolutely.
- 1:11:25Vincent Warmerdam: Oh, sweet.
- 1:11:26Vincent Warmerdam: Best food of my life, Peru.
- 1:11:28Vincent Warmerdam: Also, if you're looking for great excuses to learn Python,
- 1:11:31Vincent Warmerdam: there's plenty.
- 1:11:31Vincent Warmerdam: If you're looking for great excuses to go to Peru, food.
- 1:11:35Vincent Warmerdam: But also, I think in the end,
- 1:11:38Vincent Warmerdam: you are going to be better at using LLMs
- 1:11:41Vincent Warmerdam: if you can still do things yourself.
- 1:11:42Vincent Warmerdam: One thing I've started noticing is that
- 1:11:44Vincent Warmerdam: it's a bit embarrassing, but like,
- 1:11:45Vincent Warmerdam: oh, what's the CSS property of that thing?
- 1:11:47Vincent Warmerdam: I used to know that.
- 1:11:48Vincent Warmerdam: But nowadays, I just, oh,
- 1:11:49Vincent Warmerdam: am I seriously going to ask this, the ChatGPT?
- 1:11:51Vincent Warmerdam: This should be in my memory for Pete's sakes.
- 1:11:53Vincent Warmerdam: Yes.
- 1:11:54Vincent Warmerdam: And sometimes it's like, I'm going
- 1:11:55Vincent Warmerdam: to have a whole conversation with ChatGPT
- 1:11:57Vincent Warmerdam: so I can change four characters in a style sheet.
- 1:11:59Vincent Warmerdam: What is this nonsense?
- 1:12:00Vincent Warmerdam: So part of me is also thinking like, definitely
- 1:12:03Vincent Warmerdam: expose yourself to LLMs.
- 1:12:04Vincent Warmerdam: And if that inspires you, that's great.
- 1:12:06Vincent Warmerdam: But also try to not overly rely on it either.
- 1:12:10Vincent Warmerdam: It's like I'm building flashcard apps for myself.
- 1:12:12Vincent Warmerdam: So I'm still kind of in the loop, if that makes sense.
- 1:12:15Michael Kennedy: So you've got to be a guardian of your own mind.
- 1:12:19Michael Kennedy: And yes, so I can see it so easily.
- 1:12:21Michael Kennedy: that you just become a machine that just says next okay yes continue and then in six months you're
- 1:12:28Michael Kennedy: like gosh i can't program anything i just got to ask the chat and it's it's a problem yeah it's
- 1:12:33Vincent Warmerdam: it's something well and also um and that kind of gets back to the point i made earlier um you want
- 1:12:38Vincent Warmerdam: to be very mindful that if you if you have better tools you should also have better ideas and if
- 1:12:43Vincent Warmerdam: that's not the case then something is wrong because that's then you get into the self-learned
- 1:12:48Vincent Warmerdam: helplessness territory. And that's the one thing I do want to kind of guard against.
- 1:12:52Vincent Warmerdam: Andre Carpathy gave a great interview a little while ago where he mentioned the
- 1:12:56Vincent Warmerdam: worst outcome of humanity. Did you see the movie WALL-E? Remember seeing that?
- 1:13:00Vincent Warmerdam: Oh my gosh. That movie really made me sad.
- 1:13:04Michael Kennedy: It's a good movie though. It's a fantastic movie, but as an adult,
- 1:13:08Michael Kennedy: it's got a hard undertone to it. Oh my gosh.
- 1:13:11Vincent Warmerdam: And especially now, because for people who never watched the movie, there's a scene in the movie where you see what humanity
- 1:13:16Vincent Warmerdam: comes to and it's basically every everything has to be convenient so people are overweight
- 1:13:20Vincent Warmerdam: they're in these like bikes that move them around they're always able to watch television drink a
- 1:13:24Vincent Warmerdam: milkshake and eat a pizza like every convenience is sort of taken care of but you also just see
- 1:13:29Michael Kennedy: that they're not happy and they can't even walk out like they can't they're like just they're so uh
- 1:13:35Michael Kennedy: just dependent on the thing it's bad exactly so that's a sweet show it's a very sweet show i
- 1:13:39Vincent Warmerdam: recommend it yeah it's it's a sweet movie but it's like if at some point you notice like hey
- 1:13:44Vincent Warmerdam: learning feels hard, then maybe that's fine because maybe it's just like exercising.
- 1:13:49Vincent Warmerdam: It's okay if that's a bit painful.
- 1:13:51Vincent Warmerdam: In fact, if it's not painful, then maybe just participating in entertainment instead as well.
- 1:13:54Vincent Warmerdam: So that's the thing.
- 1:13:56Vincent Warmerdam: These are thoughts that I'm sort of battling with.
- 1:13:57Vincent Warmerdam: I'm also sort of trying to be really critical of like, okay, I work at Marimo now.
- 1:14:01Vincent Warmerdam: I've accessed all these LLMs and stuff.
- 1:14:03Vincent Warmerdam: And can I build more awesome software that I wouldn't have before?
- 1:14:06Vincent Warmerdam: One thing I made a while ago is I added gamepad support to Marimo Notebooks.
- 1:14:10Vincent Warmerdam: So you can interact with Python with the gamepad and stuff.
- 1:14:12Vincent Warmerdam: So this is just a experiment.
- 1:14:14Vincent Warmerdam: But I would be really disappointed if I'm the only person making packages that I've never made before that are definitely trying to reach new heights.
- 1:14:23Vincent Warmerdam: It does feel a bit lonely because it does feel like more people should do it.
- 1:14:26Vincent Warmerdam: That's like the one sort of hint I want to give to people.
- 1:14:29Vincent Warmerdam: Try to inspire yourself a bit more and do more inspirational stuff so more cool things happen on my timeline.
- 1:14:34Vincent Warmerdam: There's less AI sloth.
- 1:14:35Vincent Warmerdam: There's really cool software being built, people learning and all.
- 1:14:38Michael Kennedy: Hear, hear.
- 1:14:38Michael Kennedy: I appreciate that.
- 1:14:39Michael Kennedy: All right.
- 1:14:40Michael Kennedy: Well, Vincent, thanks for being back,
- 1:14:43Michael Kennedy: sharing all these techniques.
- 1:14:44Michael Kennedy: And yeah, I hope people go out there
- 1:14:45Michael Kennedy: and build using AIs, not just with AIs.
- 1:14:48Michael Kennedy: Definitely.
- 1:14:49Michael Kennedy: Y'all have a good one.
- 1:14:50Michael Kennedy: Yeah, see you later.
- 1:14:50Michael Kennedy: Bye.
- 1:14:51Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:14:54Michael Kennedy: Thank you to our sponsors.
- 1:14:55Michael Kennedy: Be sure to check out what they're offering.
- 1:14:57Michael Kennedy: It really helps support the show.
- 1:14:59Michael Kennedy: Take some stress out of your life.
- 1:15:00Michael Kennedy: Get notified immediately about errors
- 1:15:03Michael Kennedy: and performance issues in your web
- 1:15:04Michael Kennedy: or mobile applications with Sentry.
- 1:15:06Michael Kennedy: Just visit talkpython.fm/sentry
- 1:15:10Michael Kennedy: and get started for free.
- 1:15:11Michael Kennedy: And be sure to use the promo code Talk Python, all one word.
- 1:15:15Michael Kennedy: And it's brought to you by Nordstellar.
- 1:15:18Michael Kennedy: Nordstellar is a threat exposure management platform
- 1:15:21Michael Kennedy: from the Nord security family,
- 1:15:22Michael Kennedy: the folks behind NordVPN
- 1:15:24Michael Kennedy: that combines dark web intelligence,
- 1:15:26Michael Kennedy: session hijacking prevention,
- 1:15:28Michael Kennedy: brand and domain abuse detection,
- 1:15:31Michael Kennedy: and external attack surface management.
- 1:15:33Michael Kennedy: Learn more and get started keeping your team safe
- 1:15:35Michael Kennedy: at talkpython.fm/Nordstellar.
- 1:15:38Michael Kennedy: If you or your team needs to learn Python, we have over 270 hours of beginner and advanced courses on topics ranging from complete beginners to async code, Flask, Django, HTML, and even LLMs.
- 1:15:52Michael Kennedy: Best of all, there's not a subscription in sight. Browse the catalog at talkpython.fm.
- 1:15:57Michael Kennedy: Be sure to subscribe to the show. Open your favorite podcast player app. Search for Python. We should be right at the top.
- 1:16:03Michael Kennedy: If you enjoy the geeky rap theme song, you can download the full track.
- 1:16:07Michael Kennedy: The link is your podcast player show notes.
- 1:16:09Michael Kennedy: This is your host, Michael Kennedy.
- 1:16:11Michael Kennedy: Thank you so much for listening.
- 1:16:12Michael Kennedy: I really appreciate it.
- 1:16:13Michael Kennedy: Now get out there and write some Python code.
- 1:16:25Michael Kennedy: Talk Python To Me, and we ready to roll
- 1:16:31Vincent Warmerdam: Upgrading the code, no fear of getting old
- 1:16:36Vincent Warmerdam: We tapped into that modern vibe, overcame each storm
- 1:16:40Vincent Warmerdam: Talk Python To Me, async is the norm
- 1:16:43Vincent Warmerdam: you