TRANSCRIPT 🔗
WEBVTT
00:00:02.000 --> 00:00:02.319
Hi.
00:00:02.879 --> 00:00:03.600
Thanks everyone.
00:00:03.680 --> 00:00:10.160
Sorry, I'm not doing the handheld, the the the what is it, wireless mic because curly hair says no.
00:00:10.800 --> 00:00:16.879
By the way, if I look nervous during this presentation, uh it's not because I'm actually nervous about speaking.
00:00:16.960 --> 00:00:17.920
I love speaking.
00:00:18.079 --> 00:00:23.679
It's because any second now lunch is gonna be delivered and they're gonna be calling my phone.
00:00:23.920 --> 00:00:26.480
So anyway, let's let's talk.
00:00:26.640 --> 00:00:29.120
Hi, I hope we're having a good time so far.
00:00:29.440 --> 00:00:41.119
Um just uh before we get started, if you want to follow along with my slides, you can download them from here, garbin h.dev forward slash smart-feature.pdf.
00:00:42.000 --> 00:00:43.359
So let's get to it.
00:00:43.520 --> 00:00:48.320
Um don't actually let my youthful looks deceive you.
00:00:48.479 --> 00:00:52.960
Uh I've been developing software for almost 20 years now.
00:00:53.200 --> 00:00:58.399
Um, my first job was actually as a freelance mac OS developer.
00:00:58.640 --> 00:01:00.880
That's right, I was doing Objective C.
00:01:01.520 --> 00:01:03.039
Anybody ever do Objective C?
00:01:03.600 --> 00:01:07.599
Yes! Oh, oh, so many of us, we felt the pain.
00:01:07.840 --> 00:01:12.159
Actually, it was so long ago it wasn't even called macOS, it was called Mac OS X.
00:01:12.560 --> 00:01:13.599
Fun fact.
00:01:13.840 --> 00:01:27.280
Um, and uh I was, you know, just starting my second year of university, um, and I was wanted to move in with my then girlfriend now wife, and uh I was looking for work.
00:01:27.359 --> 00:01:30.319
I had just gotten my first aluminum MacBook.
00:01:30.400 --> 00:01:33.439
I was very excited about like the first ones that came out.
00:01:33.680 --> 00:01:38.400
And uh I saw a job post for a freelance macOS developer.
00:01:39.359 --> 00:01:45.439
And uh I didn't really have any formal experience, but my wife said, like, just go for it, what could go wrong?
00:01:45.599 --> 00:01:54.400
So I applied, and the uh person running the company actually called me in for an interview, and Vienna being Vienna, he took me to Cafe Mozart.
00:01:55.200 --> 00:02:08.400
And uh so we sat down, turns out we went to the same high school, which helps, and uh this guy, Philip, lovely guy, he said, Carmen, you know, it's you seem like a great person, but why on earth did you apply for this job?
00:02:08.879 --> 00:02:30.080
And uh and you know, I don't know what was in the water that day, but I was like, oh, I'm a fast learner and I can pick up things real fast, and you know, um I can I can I've you know written some games using Pygame and I don't know why that won him over, but he uh gave me uh a couple of tasks in email support for while I was getting ramped up.
00:02:30.319 --> 00:02:32.560
And uh as I said, it was Objective C.
00:02:32.719
Load full transcript
--> 00:02:37.520
He even gave me this book, Coco Programming for Mac OS X by Aaron Hilligas.
00:02:37.840 --> 00:02:39.199
Did I lend that to any of y'all?
00:02:39.360 --> 00:02:41.520
I haven't I can't find my copy.
00:02:42.879 --> 00:02:43.840
Let me know, let me know.
00:02:44.000 --> 00:02:48.879
Um, this was such a long time ago, by the way, that this wasn't even on Git, this was subversion.
00:02:49.360 --> 00:02:52.639
Oh, oh no, the knowing gasps.
00:02:52.879 --> 00:02:53.439
Yeah.
00:02:53.680 --> 00:02:55.439
And it was fun, you know, I enjoyed it.
00:02:55.520 --> 00:02:58.319
I was doing a lot of uh a lot of bits and bobs here.
00:02:58.800 --> 00:03:01.280
Software janitor uh janitorial work.
00:03:01.360 --> 00:03:02.319
Uh and it was great.
00:03:03.039 --> 00:03:05.840
It hit my neurodiversity just the right way.
00:03:06.080 --> 00:03:09.120
And uh pretty soon I was doing a lot more ops for him.
00:03:09.199 --> 00:03:14.560
All of our build tool chains were written in Ruby, which uh, you know, Paul this morning was talking about Rails.
00:03:14.639 --> 00:03:24.240
I was also in the OG trenches of Rails, and that led me to do some Phoenix and Elixir, you know, freelancing, doing all kinds of stuff, JavaScript, TypeScript.
00:03:24.400 --> 00:03:27.680
These days I'm doing more uh Rust and TypeScript.
00:03:28.159 --> 00:03:39.199
And uh being always a community person, that led me to a type of role called developer relations, which if you're not familiar, uh and all the devrel people are gonna kill me, is just a fancy term for marketing.
00:03:40.560 --> 00:03:41.599
Let's be honest.
00:03:42.560 --> 00:03:44.719
Uh I'm teasing, I'm teasing.
00:03:44.800 --> 00:03:49.439
Uh, and that eventually led me to something called developer education, and this is where I really hit my stride.
00:03:49.680 --> 00:03:55.360
Helping developers succeed in building software that helps their customers succeed.
00:03:56.159 --> 00:03:58.159
But then something happened.
00:03:58.800 --> 00:04:08.159
And if you know me and you knew how Pilate I was during the Web3 era, you're probably gonna be surprised to hear that I'm gonna be talking about generative AI today.
00:04:08.319 --> 00:04:09.759
And indeed I am.
00:04:10.479 --> 00:04:21.439
Uh, and to summarize my feelings about the current ecosystem and job market and the state of the planet, it kind of feels like this meme from Jurassic Park, again, showing my age.
00:04:21.680 --> 00:04:34.079
Which, if you're not familiar, is uh the creator of Jurassic Park here looking at what should be Jeff Goldblum on the TV screen, but here it's Sam, you can prime my RAM from my dead cold hands, Altman.
00:04:35.839 --> 00:04:40.639
Uh, looking at the TV screen and saying, I really hate that man.
00:04:41.199 --> 00:04:43.040
And that's how I feel.
00:04:44.319 --> 00:04:49.040
I have found generative AI, you know, not a tool without its merits.
00:04:49.920 --> 00:04:53.040
But I'm sure a lot of us have
found it kind of creepy, right?
00:04:53.600 --> 00:04:54.399
A little bit?
00:04:54.800 --> 00:04:56.240
Come on, I can't be alone.
00:04:58.319 --> 00:04:59.279
Thank you, thank you.
00:04:59.360 --> 00:05:01.360
Okay, I see one enthusiastic nod.
00:05:01.680 --> 00:05:04.720
And it reminds me of the 60s.
00:05:04.879 --> 00:05:05.920
I'm not that old.
00:05:06.240 --> 00:05:07.600
It reminds me of the 60s.
00:05:07.759 --> 00:05:10.000
Does anybody know the song Daisy Bell?
00:05:10.639 --> 00:05:12.959
You're gonna shake your heads, but you do know it.
00:05:13.759 --> 00:05:20.800
In 1961, IBM premiered the first ever singing computer.
00:05:21.680 --> 00:05:24.959
And the sang it's the song it sang was Daisy Bell.
00:05:26.560 --> 00:05:28.160
Uh can I get audio through this?
00:05:28.240 --> 00:05:29.040
I hope so.
00:05:30.319 --> 00:05:31.600
It depends.
00:05:34.319 --> 00:05:35.199
Hang on.
00:05:39.360 --> 00:05:40.160
Maybe?
00:05:42.000 --> 00:05:42.639
Yeah?
00:05:43.519 --> 00:05:44.639
Give me a sec, everybody.
00:05:44.720 --> 00:05:46.240
This is so worth it.
00:05:49.920 --> 00:05:53.839
Okay, so I'm piping it through this thing called black magic.
00:05:57.040 --> 00:05:59.759
Oh, actually put play, yeah, that would be helpful, huh?
00:06:00.560 --> 00:06:05.199
We're all professionals here Oh that's not good.
00:06:11.279 --> 00:06:13.279
I can't even advance my slides anymore.
00:06:13.519 --> 00:06:16.000
That's that's exciting.
00:06:17.839 --> 00:06:20.560
One more time and then I'll give up.
00:06:21.680 --> 00:06:23.839
I'm gonna have to sing for y'all anyway.
00:06:24.879 --> 00:06:26.480
Yeah, I think I'm gonna have to.
00:06:27.600 --> 00:06:28.560
Thank you.
00:06:31.360 --> 00:06:33.279
I can't believe I'm doing this.
00:06:34.560 --> 00:06:36.160
Y'all can hear it, right?
00:06:42.160 --> 00:06:43.519
You know this song.
00:06:56.160 --> 00:06:57.519
Thank you so much.
00:06:57.759 --> 00:07:00.399
Little round of applause for Paul for helping.
00:07:03.199 --> 00:07:09.600
I know it sounds terrible, but it was the first time that synthesizers were used to emulate voice.
00:07:09.839 --> 00:07:11.360
And that's something.
00:07:12.959 --> 00:07:16.079
If you don't know who this is, again, I'm showing my age.
00:07:16.720 --> 00:07:20.720
This is Hal from the film 2001, a Space Odyssey.
00:07:21.120 --> 00:07:24.720
And Hal here was an evil computer that tried to kill all the humans on the ship.
00:07:24.800 --> 00:07:26.800
I haven't I haven't seen the film in a while.
00:07:27.519 --> 00:07:30.959
I okay, I'm getting shaking heads, being like, okay, she's getting it all wrong.
00:07:31.040 --> 00:07:31.680
Bear with me.
00:07:32.879 --> 00:07:42.639
Um the reason I bring him up is because when he died, to soothe himself, Hal sang Daisy Bell to himself.
00:07:44.720 --> 00:07:47.360
A co-opting of that terror.
00:07:48.079 --> 00:07:52.079
And in a way, that's how I feel that a lot of folks are treating AI these
days.
00:07:52.240 --> 00:07:55.120
Trying to co-opt it and retell the story.
00:07:56.160 --> 00:07:59.120
Synthesized voices these days don't sound so bad.
00:07:59.279 --> 00:08:06.000
We can laugh at when Siri, you know, tries to, you know, say numbers with a lot of zeros on them.
00:08:06.319 --> 00:08:08.000
But at least they don't creep us out anymore.
00:08:08.079 --> 00:08:10.319
And I think we will get there eventually with AI, but not yet.
00:08:10.480 --> 00:08:13.600
And I've been having, I'll frankly say, I've been having a hard time of it.
00:08:13.680 --> 00:08:28.480
And in fact, I went into my second ever burnout last year because working in AI and watching the industry that I loved and felt safe and changed fundamentally, and I no longer knew who I was in tech.
00:08:28.720 --> 00:08:32.559
I was there to uplift marginalized developers.
00:08:32.879 --> 00:08:36.159
And I feel like that marginalization just grew over time.
00:08:36.799 --> 00:08:45.120
But as someone with privilege, I found myself in a position where I could go back to my original client and tell him, hey, do you want a CTO?
00:08:45.519 --> 00:08:47.120
And he said, Yeah, sure.
00:08:47.440 --> 00:08:48.799
I was very lucky.
00:08:52.799 --> 00:09:01.039
It has been a minute since I started developing software, and uh the AI ecosystem was not one that I was particularly enjoying.
00:09:01.840 --> 00:09:05.279
So I went back to commercial indie apps.
00:09:08.799 --> 00:09:12.159
And uh somehow AI found me.
00:09:13.679 --> 00:09:14.559
But who am I?
00:09:14.639 --> 00:09:15.600
Hi, I'm Carmen.
00:09:15.759 --> 00:09:17.600
Yes, rolling the R is mandatory.
00:09:17.759 --> 00:09:19.600
Uh pronouns are she, her.
00:09:19.679 --> 00:09:26.000
Um I'm originally from Chile, but I've been living in Austria for so long that I am still gonna say I'm from Chile.
00:09:26.720 --> 00:09:42.159
And uh the thing I love about half-sect a lot, the thing I love about all of this is that we get to learn from each other and be human with each other, which is something I sorely lack when I'm in front of my computer eight hours a day typing out code.
00:09:43.840 --> 00:09:53.120
But back to my original client, he came to me one day and said, is there a way we can integrate AI into one of our apps?
00:09:53.759 --> 00:09:58.960
And as someone who was joyfully keeping herself ignorant about AI, I said, Yeah, sure, no problem.
00:10:00.799 --> 00:10:03.200
And I tried to approach this from an objective standpoint.
00:10:03.279 --> 00:10:06.399
You know, I I thought to myself, okay, this is a tool.
00:10:06.639 --> 00:10:11.120
You know, we've used databases, spreadsheets, autocomplete.
00:10:12.480 --> 00:10:14.799
LLMs are a tool.
00:10:14.960 --> 00:10:16.559
They need to have their merits.
00:10:16.720 --> 00:10:19.039
It's not just all stealing and burning the planet.
00:10:19.279 --> 00:10:19.600
Okay.
00:10:20.879 --> 00:10:22.960
Let's be objective about this.
00:10:24.159
--> 00:10:27.440
So the app I'm building this in for context is Renamer.
00:10:27.759 --> 00:10:37.360
Uh it is a batch file renamer, dragging a bunch of files, apply some heuristics in a chain, and uh click play, boom, rename your files.
00:10:37.600 --> 00:10:42.320
Good old, good old 2000s Mac software, you know?
00:10:43.360 --> 00:10:49.519
Now for context, this is uh, and I'm sorry to disappoint you, Paul, but uh this is an electron app.
00:10:51.120 --> 00:10:52.799
Times have changed.
00:10:53.039 --> 00:10:55.200
Um and this is what it looks like, right?
00:10:55.360 --> 00:10:59.679
You've got on the far left side, you've got your chains, which are called rename relates.
00:11:00.080 --> 00:11:05.200
In the middle column, you've got your your chain itself, where you can apply different kinds of actions.
00:11:05.360 --> 00:11:10.480
And on the right, you've got your list of files, current name, and what the file name will turn into.
00:11:10.639 --> 00:11:20.799
For example, here we are uh removing underscores and dashes, replacing them with spaces, and capitalizing the first letter of every file name.
00:11:21.039 --> 00:11:21.679
Cool.
00:11:22.399 --> 00:11:25.840
So I thought to myself, all right, let's look at this from an objective standpoint.
00:11:26.000 --> 00:11:28.559
How do I add AI to a file renaming app?
00:11:28.799 --> 00:11:47.200
And I thought back to my first days as an email support person, and all of the emails that I would get asking for help with renamer would be in the tone of something like, oh, I've got you know 9,800 photos from my trip to El Paraíso, how do I make them do this, how do I make them do that?
00:11:47.279 --> 00:11:53.360
And I would either give them the instructions or spit out a renamer led file and give it to them.
00:11:53.679 --> 00:11:59.440
And I thought this would be a sensible place to plug in an LLM.
00:12:00.240 --> 00:12:04.879
And I thought, let's make it discrete, let's make it non-magic.
00:12:05.039 --> 00:12:06.960
Is this can I plug in my computer?
00:12:07.200 --> 00:12:08.799
Sorry, I got distracted.
00:12:09.120 --> 00:12:09.440
That's
00:12:09.440 --> 00:12:09.600
why
00:12:09.600 --> 00:12:10.240
I put it up there.
00:12:10.559 --> 00:12:12.080
That's amazing, thank you.
00:12:12.559 --> 00:12:12.879
Um
00:12:14.240 --> 00:12:17.600
so I thought I'd make this discrete and and straightforward, right?
00:12:17.840 --> 00:12:21.679
Let's let our user discrete describe what they want to rename, how they want to do it.
00:12:21.840 --> 00:12:31.600
We let the N LLM generate, we let the user review and make sure everything looks up to code, and then they carry on from there.
00:12:32.000 --> 00:12:40.159
This is not something that's going to reinvent the whole application, but rather make it more usable in one aspect.
00:12:40.399 --> 00:12:49.360
But me being me, you know, we were talking about themes and values and passions, minus ethics.
00:12:49.919 --> 00:12:58.240
And I try
to be as ethical with my approach to software as possible, bearing in mind, as Paul said earlier, there is no ethical consumption.
00:12:59.600 --> 00:13:02.720
Rule number one, no cloud provider.
00:13:03.600 --> 00:13:06.960
No Open AI, no anthropic, no whatever else.
00:13:07.279 --> 00:13:11.440
I wanted to let the user run their LLM locally.
00:13:12.000 --> 00:13:14.879
What you do with your compute powers between you and God.
00:13:16.000 --> 00:13:18.320
Your computer, your privacy.
00:13:19.519 --> 00:13:23.120
I also wanted to be sensible with my approach to naming it.
00:13:23.200 --> 00:13:26.559
I don't want to name it after a dog, you know, Rufus or whatever, no.
00:13:26.799 --> 00:13:29.279
I don't want to name it after something, something silly.
00:13:29.360 --> 00:13:31.360
I don't want to give it some some kind of vague name.
00:13:31.519 --> 00:13:37.200
I kind of approached it with my elder millennial naming, and I thought, hey, what about smart renaming?
00:13:37.360 --> 00:13:42.399
And my uh my colleague said, please just be honest with what it is.
00:13:42.639 --> 00:13:44.159
AI assist, fine.
00:13:45.600 --> 00:13:50.240
Another rule I wanted is for this to be opt-in by default.
00:13:50.480 --> 00:13:53.919
I don't want to ship a 1.8 binary, a gigabyte binary.
00:13:55.600 --> 00:14:03.840
Power users or people who are not fans of AI, which you will find if you ship features like this, by the way, they don't have to use it.
00:14:05.120 --> 00:14:15.360
And most importantly, I don't want this to be some kind of subscription, I don't want this to be a paid upgrade, I don't want you to like pay me extra for that, none of that nonsense.
00:14:18.000 --> 00:14:27.519
I also wanted the LLM to just translate spoken text or typed in text into renamerlets.
00:14:27.759 --> 00:14:34.000
I don't want it to do any of the renaming stuff, I don't want it to do reinvent the app, I don't want to vibe code the whole thing or whatever.
00:14:34.320 --> 00:14:41.200
Just do what it does best, which is translate a written piece of text into some JSON for me.
00:14:41.840 --> 00:14:43.039
We good so far?
00:14:44.960 --> 00:14:45.440
Cool.
00:14:45.600 --> 00:14:46.799
I haven't lost any of y'all.
00:14:46.879 --> 00:14:48.159
Okay, I'm glad.
00:14:48.960 --> 00:14:52.559
So I'll just build a little bit of context here of what renamerlets look like.
00:14:52.720 --> 00:15:06.480
So as I said before, a renamerlet is made up of one or more actions, be it find and replace, numbers, insert characters, regex, random numbers, renaming from a CSV file, and so on and so forth.
00:15:06.639 --> 00:15:07.519
And it looks like this.
00:15:08.559 --> 00:15:10.480
It gives you some JSON.
00:15:10.720 --> 00:15:16.480
You've got an array of action, uh, each rename rolet is made up of one or more actions, as I said.
00:15:17.039 --> 00:15:19.919
Fun fact by the way, I was originally gonna make this YAML.
00:15:20.480 --> 00:15:22.159
Do you all see the
problem with that?
00:15:23.440 --> 00:15:32.080
So fun fact when you try and translate YAML back into code, text like on will be interpreted as true.
00:15:34.000 --> 00:15:34.639
Yeah?
00:15:35.919 --> 00:15:38.399
Off will be interpreted as false.
00:15:40.000 --> 00:15:42.240
Y will be interpreted as true.
00:15:43.120 --> 00:15:44.720
X will be interpreted as false.
00:15:45.039 --> 00:15:49.279
So for this, Jason served a much better purpose for me.
00:15:50.720 --> 00:15:54.240
So alright, I just hopped onto cloud cloud cloud, what is it called again?
00:15:54.320 --> 00:15:55.039
Cloud code?
00:15:55.120 --> 00:15:56.000
And no, I'm just kidding.
00:15:56.080 --> 00:15:59.840
I I I haven't really tried the whole agentecoding thing yet.
00:16:00.000 --> 00:16:01.039
I I'm still.
00:16:01.440 --> 00:16:02.639
Is that myoludite?
00:16:02.879 --> 00:16:03.679
I don't know.
00:16:04.240 --> 00:16:06.240
This is what I wanted it to look like, right?
00:16:06.480 --> 00:16:15.679
A little place where you, when you're making a new rename roulette, it says describe what it should do, and do a lot towards helping the user come up with what they need, right?
00:16:16.080 --> 00:16:20.159
Make it lowercase, like these little buttons can pre-fill text for you.
00:16:21.919 --> 00:16:27.840
But now comes the tricky part for me with my rules and ethics, which is choosing an LLM.
00:16:29.840 --> 00:16:33.519
I was kind of lying at the beginning when I said I really hate this man.
00:16:34.559 --> 00:16:37.039
The truth is I really hate all these men.
00:16:38.080 --> 00:16:50.720
Uh be it for building up bogus IPOs, or we were talking about insidification earlier, or destroying human society, or making I mean, one of them did a good thing.
00:16:50.879 --> 00:16:52.639
Outlook was down for a while.
00:16:53.279 --> 00:16:53.919
Uh
00:16:55.440 --> 00:16:59.360
now you might be looking at the slide and thinking, Kadmen, you missed someone.
00:17:00.159 --> 00:17:01.279
No, I didn't.
00:17:01.519 --> 00:17:02.240
No, I didn't.
00:17:02.320 --> 00:17:03.600
That man doesn't deserve a mention.
00:17:03.759 --> 00:17:06.400
You know what I'm gonna do instead of mentioning that man?
00:17:06.559 --> 00:17:10.160
I'm gonna shout out his kick-ass daughter, Vivian Wilson.
00:17:11.039 --> 00:17:11.680
Yeah.
00:17:13.759 --> 00:17:15.039
She's awesome.
00:17:15.279 --> 00:17:17.519
Completely, completely disconnected from her dad.
00:17:17.599 --> 00:17:19.440
She's a mod ironically, she's a model.
00:17:20.079 --> 00:17:26.000
Um no, instead I went for something a little more open, a little more European, a little more French.
00:17:26.319 --> 00:17:27.599
Y'all heard of Mistral?
00:17:28.880 --> 00:17:29.359
Yes.
00:17:29.920 --> 00:17:31.119
Does the job.
00:17:31.359 --> 00:17:32.720
You know what I love about Mistral?
00:17:33.039 --> 00:17:36.559
Their chat thing is called chat, because it's a cat?
00:17:36.880 --> 00:17:37.920
That's French for cat.
00:17:38.000 --> 00:17:38.799
That's so cute.
00:17:38.960 --> 00:17:40.400
Anyway, it does the job.
00:17:40.480 --> 00:17:43.759
I can download it on, I can let the user download it onto their machine.
00:17:43.839 --> 00:17:44.160
Perfect.
00:17:44.240 --> 00:17:46.079
Happy as Larry, off we go.
00:17:46.319 --> 00:17:48.079
So we've got our feature.
00:17:49.599 --> 00:17:51.519
Now the AI workflow.
00:17:51.759 --> 00:17:53.359
So here's what I wanted to do.
00:17:53.519 --> 00:17:56.319
First, we normalize the prompt.
00:17:56.480 --> 00:17:58.079
You'll see what I mean in a moment.
00:17:58.319 --> 00:18:00.559
Then we infer meaning from that prompt.
00:18:00.720 --> 00:18:04.559
What kind of renamer-led actions could we be talking about?
00:18:04.880 --> 00:18:10.799
And I use both of those to build what I call a the prompt, the mega prompt.
00:18:11.200 --> 00:18:14.319
And then I process the reply into something that renamed can use.
00:18:15.359 --> 00:18:17.519
And I'm gonna walk you through each of those now.
00:18:18.720 --> 00:18:21.039
So step one, as I said, is normalization.
00:18:21.279 --> 00:18:25.279
So the thing about renamer is it's a localized application.
00:18:26.160 --> 00:18:28.079
You can use it in German, Spanish.
00:18:28.799 --> 00:18:31.119
Hopeful uh I think Russian is coming.
00:18:32.400 --> 00:18:37.759
And um to do this, uh I use my own LLM, right?
00:18:38.000 --> 00:18:43.759
So I take that prompt and I say, hey, translate the user request into English.
00:18:45.599 --> 00:18:47.920
Input may be any spoken language or script.
00:18:48.000 --> 00:18:51.440
I I I spent a lot of time working on this dang prompt.
00:18:52.880 --> 00:19:00.559
Do not explain, do not try you know, do not uh translate into different languages, uh uh be concise, all of that.
00:19:00.720 --> 00:19:08.480
And then at the bottom I put in the user request the original user request in Spanish, which translates to replace the spaces with underscores.
00:19:09.200 --> 00:19:09.839
Cool.
00:19:11.440 --> 00:19:19.359
I take that normalized prompt and then I infer uh intent from the user prompt itself.
00:19:21.519 --> 00:19:28.480
So I feed to my LLM uh the il intent pard me, let me try that again.
00:19:28.720 --> 00:19:39.200
The intent plan prompt, which also feeds in the you the names of the files that the user has already dragged into renamer and build a schema from that.
00:19:40.400 --> 00:19:42.559
And that schema is gonna look like this.
00:19:43.920 --> 00:19:53.759
Some JSON made up of what types of actions could be in that final renamerlet, as well as which ones are required.
00:19:53.920 --> 00:19:58.319
And I take that, do another little LLM fun stuff with it.
00:19:58.480 --> 00:20:01.680
You plan renamer actions from natural language intent.
00:20:02.720 --> 00:20:07.839
The user request may be in any language, sometimes it fails to translate.
00:20:08.160 --> 00:20:20.880
If it's not English, translate to English again,
then infer the actions, give me some JSON, patad, patadan, user request, replace score spaces with underscores, oh, and append free digit numbering.
00:20:20.960 --> 00:20:22.960
I was messy with my slide making.
00:20:24.160 --> 00:20:26.160
So then comes the big prompt.
00:20:26.720 --> 00:20:28.160
And that's when I bring in llama.
00:20:28.400 --> 00:20:29.599
Are you all familiar with llama?
00:20:31.440 --> 00:20:31.839
Yep.
00:20:32.079 --> 00:20:34.400
Let's you run l LLMs locally.
00:20:36.960 --> 00:20:37.920
Same thing as before.
00:20:38.079 --> 00:20:42.319
Big up make a big old prompt, you output rename or rename rel JSON only.
00:20:42.799 --> 00:20:48.319
Action must use one of these, one or more of these identifiers for the actions.
00:20:50.640 --> 00:20:52.799
Here's the files that have been dragged in.
00:20:53.119 --> 00:20:54.559
Here's the request.
00:20:54.960 --> 00:20:56.000
Off you go.
00:20:56.400 --> 00:21:00.880
Once again, give it the schema of what the JSON should look like by the end.
00:21:00.960 --> 00:21:03.119
You gotta be super clear with this stuff.
00:21:05.039 --> 00:21:06.559
And there's my prompt.
00:21:07.359 --> 00:21:09.680
Replace spaces with underscores.
00:21:09.839 --> 00:21:11.200
Here's the files.
00:21:11.519 --> 00:21:18.640
You generally you generate renamer rename relates JSON object, return JSON only, no pros, no markdown.
00:21:18.880 --> 00:21:21.119
You really gotta be specific with this stuff.
00:21:22.720 --> 00:21:27.680
Give me only one rename role, do not output groups uh of rename relates.
00:21:28.480 --> 00:21:30.559
I mean it's it's a big prompt.
00:21:31.039 --> 00:21:34.319
It's a really big prompt, but it does the trick.
00:21:34.880 --> 00:21:38.319
Next step, calling Lama CLI.
00:21:39.039 --> 00:21:46.240
I do want to walk through this with y'all because uh it's important to specify a couple things, especially if you're multi platform, again, electron.
00:21:46.720 --> 00:21:51.039
Um, you give it the model as a flag, the JSON schema as a flag.
00:21:51.200 --> 00:21:54.559
Now the temperature is how inventive the LLM should be.
00:21:54.720 --> 00:21:56.480
And you do want to give it a little bit.
00:21:56.559 --> 00:21:57.839
Oh, lunch is arriving.
00:21:57.920 --> 00:21:59.759
Could someone help him, please?
00:22:01.359 --> 00:22:02.480
I mean, not all of y'all.
00:22:02.640 --> 00:22:04.559
I still need you to listen to the talk.
00:22:07.599 --> 00:22:09.839
I think I think two's enough.
00:22:17.279 --> 00:22:19.519
See, this is what I get for being too sweet.
00:22:20.160 --> 00:22:20.480
Um.
00:22:23.680 --> 00:22:24.640
Right, temperature.
00:22:24.720 --> 00:22:28.640
Yeah, you don't want it to be too inventive and come up with its own renamulate actions.
00:22:29.039 --> 00:22:31.119
And then you gotta pass it the prompt.
00:22:31.599 --> 00:22:37.839
Now, if you see that comment there, PowerShell is not great.
00:22:38.400 --> 00:22:39.599
I'm sorry.
00:22:40.000 --> 00:22:44.400
Unless you work at Microsoft, in which case I really love PowerShell and I want a job.
00:22:45.839 --> 00:22:46.960
Okay, just checking.
00:22:47.039 --> 00:22:48.480
Anyway, PowerShell is terrible.
00:22:48.559 --> 00:22:51.200
And like it doesn't let you have very long commands.
00:22:51.359 --> 00:22:57.440
And so you gotta write it to a temporary file and then have LAMA CLI read the file.
00:22:59.359 --> 00:23:01.359
This is what it ends up looking like.
00:23:01.839 --> 00:23:02.880
It's a big mess.
00:23:02.960 --> 00:23:17.440
But what's important here is that it reads the model, it gives it the prompt, we give it our flags that are important, and specify that our output should go to JSON through standard out.
00:23:19.440 --> 00:23:22.160
Couple important behaviors here that are that I need to specify.
00:23:22.319 --> 00:23:24.559
Number one, this is not a chatbot.
00:23:24.720 --> 00:23:26.640
Please do not act like a chatbot.
00:23:26.880 --> 00:23:29.119
Number two, this should be JSON.
00:23:29.519 --> 00:23:34.480
Number three, do not reinvent and come up with new types of actions.
00:23:34.720 --> 00:23:38.880
Number four, I promise, I promise it's JSON.
00:23:41.279 --> 00:23:46.720
Ideally, once that's done, we have our proposed renamulate.
00:23:46.880 --> 00:23:52.240
One find and replace action that says find all spaces, replace them with underscores.
00:23:52.640 --> 00:23:53.599
Wonderful.
00:23:54.079 --> 00:24:01.839
But there's one more part that I need to be that I need to talk about when it comes to this, which is graceful failing.
00:24:03.759 --> 00:24:06.720
AIs love to come up with nonsense.
00:24:07.119 --> 00:24:08.160
I'm exaggerating.
00:24:08.240 --> 00:24:10.960
It never actually gave me the script to the first Trek movie.
00:24:11.200 --> 00:24:14.160
Kinda wish it had, but alas.
00:24:15.039 --> 00:24:20.559
They like to invent come up with stuff, so you do need to validate your stuff before showing it to the user.
00:24:20.880 --> 00:24:30.240
So we've had our generating, we will do the validating, we will try to fix that JSON, and then we allow the user to apply it.
00:24:31.359 --> 00:24:32.720
So we're checking.
00:24:32.890 --> 00:24:36.410
Hey, are all of the actions here real?
00:24:36.809 --> 00:24:39.690
Hey, or is all of the text here real?
00:24:40.009 --> 00:24:43.049
Hey, is this Jason?
00:24:48.349 --> 00:24:56.349
And then without the user knowing, if it's malformed, I will secretly ask the LLM like, hey, you messed up.
00:24:56.430 --> 00:24:56.990
Come on, man.
00:24:58.430 --> 00:24:59.630
Can you try again?
00:24:59.920 --> 00:25:05.839
Setting the temperature to zero this time to say, hey, no yes and please.
00:25:09.039 --> 00:25:17.519
And once that's done, just like we've done in the past for allowing users to create their own renamerlets, we add it to the chain.
00:25:20.400 --> 00:25:35.200
When it comes to AI, I really want to make it really clear to
both the user and the developers I work with that AI is a tool that can be used, but doesn't need to break everything.
00:25:35.359 --> 00:25:38.480
It doesn't need to hallucinate and then everything goes to poop.
00:25:38.799 --> 00:25:39.119
Okay?
00:25:40.720 --> 00:25:43.920
We're very clear about what is allowed and what is not allowed.
00:25:44.799 --> 00:25:48.240
We allow some graceful repairing or retrying.
00:25:49.359 --> 00:25:56.720
If there are things that are going to change, like extensions or locations, we make that clear to the user.
00:25:57.359 --> 00:26:16.799
Preview, preview, preview, and in our own tests, I have a core, what I call evaluation corpus, which is a series of uh unit tests that make sure that the combinations of words that I'm using with the LLM make sense to it.
00:26:17.039 --> 00:26:25.519
Now, this corpus, let me tell you, you better have a lot of battery in your MacBook, because it takes a long while to run, but it is worth it.
00:26:28.559 --> 00:26:31.680
So I'm gonna be honest with you all, there are areas where this succeeds.
00:26:33.279 --> 00:26:36.880
It does what it says on the tin, and this is the most important part for me.
00:26:37.119 --> 00:26:39.279
Takes your messy language and turns it into JSON.
00:26:40.880 --> 00:26:45.440
It allows to help with authoring and not with renaming.
00:26:46.160 --> 00:26:52.480
It fails gracefully, and which makes me very happy, it's local and private by design.
00:26:52.799 --> 00:26:54.480
But it's not perfect.
00:26:56.640 --> 00:26:59.279
Ambiguity can and will bite.
00:27:00.640 --> 00:27:02.079
Append a number.
00:27:02.319 --> 00:27:03.359
What number?
00:27:04.319 --> 00:27:08.079
Insert, I don't know, a number nine.
00:27:08.240 --> 00:27:11.839
Is it going to how many nine how many nines is it gonna apply?
00:27:12.640 --> 00:27:14.640
Translation can be tricky.
00:27:14.880 --> 00:27:17.599
Sometimes words don't get caught when translating.
00:27:18.880 --> 00:27:20.640
But also CPU usage.
00:27:20.799 --> 00:27:30.799
Sure, all of us on our nice ARM MacBooks aren't gonna have too hard a time, but those of us on some older Intel chips are gonna not be cold this winter.
00:27:33.759 --> 00:27:35.119
It's also hefty.
00:27:35.279 --> 00:27:44.559
I struggled a lot to find an LLM that balance that struck a balance between like doing the job well, but also not being enormous.
00:27:45.039 --> 00:27:48.799
Believe it or not, 1.8 gigabytes doesn't sound like a lot.
00:27:49.839 --> 00:27:53.440
But that's because you haven't tried working while on a train from Vienna to Berlin.
00:27:55.440 --> 00:27:58.960
And as I said before, not a chatbot.
00:27:59.119 --> 00:28:00.880
Just fix my files.
00:28:01.200 --> 00:28:03.920
Oh, sorry, no, no, I now remember what I meant.
00:28:04.079 --> 00:28:09.279
Um if a user just types in, hey, just fix my files, the LLM is not gonna know what to do.
00:28:10.480 --> 00:28:14.720
So you need to be clear and can and precise in your language.
00:28:15.200 --> 00:28:18.559
Then comes the problem of introducing your AI feature to your users.
00:28:18.640 --> 00:28:28.160
Because again, you go to any conversation, any town hall about a data center, say in the United States, they're building one across the road from me.
00:28:28.400 --> 00:28:31.200
I'm going to my own town hall to complain.
00:28:32.160 --> 00:28:33.200
True story.
00:28:33.440 --> 00:28:36.400
Um they're not gonna be too thrilled about it.
00:28:36.640 --> 00:28:38.079
But there are ways to do it.
00:28:38.240 --> 00:28:43.119
And I tell them, hey, this is all local, nothing leaves your machine.
00:28:43.359 --> 00:28:50.640
This all runs on your machine, it's private, it's optional, and it's free.
00:28:50.880 --> 00:28:52.319
This is what it looks like in the app.
00:28:52.400 --> 00:28:53.680
I hope it's legible?
00:28:53.839 --> 00:28:54.880
Yeah, kinda.
00:28:55.200 --> 00:28:56.960
There's what I said before.
00:28:57.680 --> 00:29:04.319
Hey, it's available, and the first time you start up the app, you also get it, and it says it gives you the option to never show it again.
00:29:07.279 --> 00:29:09.920
I really try to be clear with my values here.
00:29:10.160 --> 00:29:14.960
And also up front, but also precise.
00:29:17.440 --> 00:29:21.200
I tell them, hey, you can download this, nothing leaves your computer.
00:29:22.319 --> 00:29:25.440
This is not gonna be an AI brain for my files.
00:29:25.599 --> 00:29:28.079
This is gonna be, hey, generate stuff.
00:29:30.960 --> 00:29:34.480
Power users can still use this application without AI.
00:29:36.240 --> 00:29:39.599
Be upfront about what this can do and what this cannot.
00:29:41.279 --> 00:29:46.880
And make sure that your website, your documentation, your help, your marketing aligns.
00:29:49.599 --> 00:29:51.920
I used to think that AI had no use.
00:29:55.279 --> 00:30:00.960
I've now come to the conclusion that it is a tool with a with a narrow domain, just like any other tool is.
00:30:01.200 --> 00:30:02.720
But it does have its merits.
00:30:04.720 --> 00:30:07.599
But you don't need to use it for everything.
00:30:07.839 --> 00:30:24.799
If a user can already do 80% of what they need, or if the wrong answers are too expensive or hard to see, or you don't really need to have a model to record, or you're just using AI because your boss told you that their boss told them that their boss told them that they need AI.
00:30:26.799 --> 00:30:29.200
There's merits to it, but there's also limitations.
00:30:31.359 --> 00:30:42.880
What I took away from all this is that it is possible to use AI in an ethical way, or as least an ethical way as possible, and still be useful to your users.
00:30:43.839 --> 00:30:48.000
And you can still prioritize your ethics, which is my big part of it.
00:30:49.839 --> 00:30:53.039
And invest some time in a corpus test, let me tell you.
00:30:53.200 --> 00:30:58.960
It saved, I know it it ran for like
30 hours, but it saved me so much time, believe it or not.
00:31:01.920 --> 00:31:03.680
Y'all want to see a demo, right?
00:31:03.839 --> 00:31:04.240
I don't care.
00:31:04.480 --> 00:31:07.039
I don't care if y'all don't want to see a demo, I'm gonna show it to you anyway.
00:31:08.960 --> 00:31:13.759
So here's excuse me.
00:31:13.920 --> 00:31:16.880
Oh, I think I need to add a thingy.
00:31:17.119 --> 00:31:17.759
Yeah.
00:31:19.200 --> 00:31:20.720
Yeah, here we go.
00:31:21.039 --> 00:31:23.599
I am gonna zoom in though, because this is hard to read.
00:31:24.400 --> 00:31:28.559
Oh, I just realized that typing with one hand is not fun.
00:31:30.880 --> 00:31:32.720
Okay, so here's renamer.
00:31:32.799 --> 00:31:34.640
I've got four files dragged in.
00:31:35.759 --> 00:31:39.680
I'm going to start making a new renamerlet with AI assist.
00:31:40.000 --> 00:31:41.279
Sorry if it's a bit dizzy.
00:31:41.680 --> 00:31:42.559
Inducing.
00:31:44.160 --> 00:31:50.000
Okay, so I'm gonna I'm gonna make I'm gonna make uh myself here.
00:31:57.279 --> 00:31:57.599
Okay.
00:31:58.000 --> 00:31:59.680
Translate the file names into German.
00:31:59.759 --> 00:32:01.039
I hope pressing enter.
00:32:01.680 --> 00:32:03.039
I'm very proud of this effect.
00:32:03.119 --> 00:32:04.720
I did it myself in CSS.
00:32:06.880 --> 00:32:08.880
I don't know why y'all are laughing, it's awesome.
00:32:09.039 --> 00:32:10.240
I'm kidding, I'm kidding.
00:32:11.039 --> 00:32:12.720
Um background as a
00:32:12.960 --> 00:32:14.000
stage, so we did
00:32:14.000 --> 00:32:14.799
that on purpose, right?
00:32:15.119 --> 00:32:16.079
I wish I had.
00:32:16.799 --> 00:32:17.440
So here we go.
00:32:17.519 --> 00:32:20.079
Rename from spreadsheet with four pairs.
00:32:20.319 --> 00:32:22.480
You can edit actions after creation in the main UI.
00:32:22.559 --> 00:32:25.359
I'm gonna hit next, and off we go.
00:32:26.240 --> 00:32:27.039
Okay, listen.
00:32:27.119 --> 00:32:32.480
I don't German's not my first language, so I don't know how good these are, but it translated them.
00:32:32.720 --> 00:32:37.519
Jagges berichte, budgetberich, flyer is just flyer.
00:32:37.759 --> 00:32:38.079
Huh?
00:32:41.119 --> 00:32:42.400
It didn't change the extension.
00:32:42.480 --> 00:32:43.039
No, no, no.
00:32:43.119 --> 00:32:44.079
This was name only.
00:32:47.359 --> 00:32:49.839
Oh, it did change the the extension.
00:32:50.160 --> 00:32:52.799
Oh AI.
00:32:53.759 --> 00:32:56.720
Anyway, let's try another one.
00:32:58.079 --> 00:33:00.640
But this time can I take a suggestion from the audience?
00:33:02.720 --> 00:33:03.519
Please.
00:33:04.400 --> 00:33:04.880
Yes?
00:33:08.799 --> 00:33:11.359
There's no dots to say for extensions.
00:33:12.880 --> 00:33:15.599
How about we replace spaces with something else?
00:33:16.480 --> 00:33:16.799
Okay.
00:33:20.960 --> 00:33:23.519
Oh, that is so cursed, I don't even know if it's gonna work.
00:33:26.079 --> 00:33:26.720
The what?
00:33:28.480 --> 00:33:29.359
Oh, okay.
00:33:35.279 --> 00:33:36.319
Oh, thank you.
00:33:39.119 --> 00:33:40.000
Thank you.
00:33:40.319 --> 00:33:43.759
So replace spaces, uh, if I could type correctly.
00:33:44.000 --> 00:33:47.119
Uh replace spaces with emojis.
00:33:48.559 --> 00:33:49.599
I pressed enter.
00:33:50.160 --> 00:33:53.680
Look, finding bugs live, that's what we do.
00:33:55.279 --> 00:33:58.480
I am so nervous, I have no idea if this is gonna work.
00:33:59.599 --> 00:34:00.559
But you know what I like?
00:34:00.720 --> 00:34:02.079
Like hand on my heart?
00:34:02.240 --> 00:34:06.640
Like, if this doesn't look good, it just means that I get to keep my job a little longer.
00:34:11.119 --> 00:34:11.440
Oh.
00:34:15.039 --> 00:34:17.440
I don't know what it replaced it with.
00:34:20.880 --> 00:34:22.000
What is that?
00:34:23.599 --> 00:34:24.960
I don't know what it is.
00:34:25.280 --> 00:34:27.039
But hey, it translated into English.
00:34:27.119 --> 00:34:28.159
That's pretty good.
00:34:28.800 --> 00:34:33.199
I don't think I don't think I took into account uh emojis when developing this feature.
00:34:33.280 --> 00:34:34.800
I'm gonna be honest with y'all.
00:34:35.280 --> 00:34:38.320
That was like three months of my life years ago, so I get it.
00:34:41.199 --> 00:34:43.440
Sorry, we can clap at the end of the demo.
00:34:44.639 --> 00:34:46.000
I'm teasing y'all.
00:34:46.239 --> 00:34:48.239
Uh, you need a pistol, please.
00:34:49.280 --> 00:34:49.920
Yes.
00:34:52.960 --> 00:34:57.199
Okay, y'all laugh, but this is really hard to do, like looking back and forth.
00:34:58.000 --> 00:34:59.199
I'm almost done.
00:34:59.519 --> 00:35:00.159
Yeah.
00:35:04.880 --> 00:35:17.280
So if you take anything away from this talk, what I really want to really drive home is if you can, if you have the power or the power to argue for it, it's to not just add AI to your product for the sake of adding AI.
00:35:17.440 --> 00:35:22.239
But it is possible to add AI in such a way that can be an interface to something you already trust.
00:35:22.800 --> 00:35:26.880
Now I'm gonna shout out myself despite my demo mostly working.
00:35:27.199 --> 00:35:30.719
Um I now own these apps.
00:35:30.960 --> 00:35:33.039
I'm actually a CEO now.
00:35:33.599 --> 00:35:37.119
Um I founded my own company called Mapache Softworks.
00:35:37.519 --> 00:35:46.320
Umpache is the Spanish slash Nahuatl word for he who uses his hands, which fits my ADHD very well.
00:35:46.400 --> 00:35:48.639
I'm very fidgety.
00:35:48.960 --> 00:35:54.559
Uh so if you want to talk to us about, we've doubled in size in the last couple months.
00:35:56.559 --> 00:35:56.880
Um
00:35:57.519 --> 00:35:59.760
it's true, I don't know what y'all are laughing at.
00:36:00.239 --> 00:36:06.400
So talk to us if you're interested, and I hope you all enjoy lunch, I assume, and the rest of the conference.
00:36:06.639 --> 00:36:07.519
Thank you.