Neat simple LLM use for text manipulation

Tim Disney January 6, 2024
Source
I had a neat little interaction with an LLM this week where I had a markdown note in Obsidian I wanted to convert some of its formatting. The note had a bunch of external markdown links: that I wanted to convert to internal links: Previously to do this I'd either reach for something like a vim macro or write a little regex. Realistically for most cases the activation energy would be too much and I'd just not do the reformatting at all. But with a LLM (in this case I used the TextGen plugin) you can just show an example and tell the LLM to do it and it just works. The prompt was something like It's pretty cool that we basically get a kind of programming by example for "free" with LLMs.

Discussion in the ATmosphere

Loading comments...