Interact with Github Copilot and OpenAI’s GPT (ChatGPT) models directly in RStudio. The chattr Shiny add-in makes it easy for you to interact with t

Chat with AI in RStudio

submited by
Style Pass
2024-08-31 22:30:04

Interact with Github Copilot and OpenAI’s GPT (ChatGPT) models directly in RStudio. The chattr Shiny add-in makes it easy for you to interact with these and other Large Language Models (LLMs).

chattr is a package that enables interaction with Large Language Models (LLMs), such as GitHub Copilot Chat, and OpenAI’s GPT 3.5 and 4. The main vehicle is a Shiny app that runs inside the RStudio IDE. Here is an example of what it looks like running inside the Viewer pane:

Even though this article highlights chattr’s integration with the RStudio IDE, it is worth mentioning that it works outside RStudio, for example the terminal.

After you select the model you wish to interact with, the app will open. The following screenshot provides an overview of the different buttons and keyboard shortcuts you can use with the app:

You can start writing your requests in the main text box at the top left of the app. Then submit your question by either clicking on the ‘Submit’ button, or by pressing Shift+Enter.

Leave a Comment