Examples of How I Use LLMs |
October 14th, 2024 |
tech |
Why would I want to ask questions to a thing that might give me the right answer but might also make something up that fools me into thinking it's right? I've played with them, but they don't seem like they'd save me any time.
My experience with has been that there are some things LLMs are much better at than others and you need to learn where they're suitable, but overall I get a lot out of working with them. I went back over my recent history in Claude, the one I use most, and here are cases where I found it helpful:
-
In yesterday's post I wanted to list a bunch of posts where I talked about failures, but my recall isn't that great. I pulled a list of titles from my last thousand posts and prompted:
I've attached a list of titles of some of Jeff Kaufman's blog posts. Can you identify some where he probably talks about a mistake he's made?
While some it highlighted were bad examples or not about failures at all, others were posts I would essentially have had to read through pages of titles to find. And I know my own posts well enough that in looking over its answers I could immediately tell which were useful.
I help my dad with sysadmin work for his small B2B SaaS and have a long-running issue where my edits to
/etc/systemd/system/multi-user.target.wants/tomcat9.service
were getting overwritten by automatic updates. I asked how to fix this and got an answer (sudo systemctl edit tomcat9.service
) that I could then Google and validate.-
I had a set of locations in an organism's genome that had a certain property, and I wanted to plot this. This would plot better, however, as a series of runs instead of a set of descrete locations. If I thought about it I could have written a function to convert the data, but I was feeling a but fuzzy and asking the LLM to do it was faster:
I have a list of values in order with gaps: [1,2,3,4,5,6,10,11,12]
Looking over the code it was easy to tell that it was doing what I wanted.Could you use run length encoding to convert it to a list of [start, length] pairs?
I've been working on a pedalboard and wasn't sure what methods people typically used to attach the pedals. Claude gave me an overview that was a good starting place for looking more deeply into each option.
I wanted a file format for human-writable machine-readable data that included key-value pairs and multiline strings, preserved formatting when round-tripping, and wasn't YAML (security, coercion, complexity). Claude helped me identify TOML with tomlkit as doing what I wanted.
I often write code that assembles some data and then want to graph it. Pasting the code into Claude along with a request for the kind of plot I want typically produces something close to what I had in mind, and a good starting place for tweaks. It can also be useful for tweaking existing plots: "In the following code the bars for the medians in the violin plots are blue. Could you make them black?", "Could you modify the following plot to lightly shade the period between 2023-12-01 and 2024-05-01, labeling it 'study period'?", "Could you extend the following code to add a trend line for each plot?", etc.
Claude is very strong verbally, so asking it to rephrase things can work well. I'm reasonably happy with my writing in informal contexts like this one, so this is mostly something I use when I'm tired and it feels like words aren't flowing well or if I need to communicate in a voice that doesn't come naturally to me (contracting, military, academic, etc).
I often ask questions like "what do you call it when ..." with a verbose description and then Google the technical terms it thinks I might be gesturing at.
There are still a lot of things it gets wrong, but it turns out there are many areas where I can pretty easily check the output and where something mostly-right is a good starting point.
Comment via: facebook, lesswrong, mastodon