ChatGPT From Within Emacs

We Emacs maximalists are always on the lookout for tasks that we can integrate into Emacs in our never ending quest to stay in Emacs as much as we can. Vivek Haldar has added another task to the list of things we can do within Emacs. He has a short video demonstrating his code to access ChatGPT from within Emacs. His method depends on a Python script to do the heavy lifting and some Elisp to deal with the Emacs interaction. There are links to both pieces of the code with the video.

If you’re an Emacser and interested in experimenting with ChatGPT, this may be a worthwhile app to include in your setup. I still think, perhaps erroneously, of ChatGPT as a sort of magic trick. It seems magical when you see it but if you look under the hood, it’s actually fairly easy to see what’s going on. The key to the results—given how it works—is the training data. If you’ve ever noticed how much nonsense there is on the Web, you’ll also understand some of the anomalous results ChatGPT occasionally produces.

Regardless, ChatGPT can be useful if you keep in mind what’s going on in the background. And, of course, it’s going to get better. Probably a lot better so it’s worthwhile laying down some infrastructure for it in your Emacs configuration.

Haldar’s video is a couple seconds short of 4 minutes so you can watch it pretty much at will. It’s definitely worth a watch if you have any interest at all in the intersection of Emacs and ChatGPT.

This entry was posted in General and tagged . Bookmark the permalink.