Skip to contents

This is an RStudio addin function that should become available after the package is installed.

Usage

points_to_prose(model_type = "gpt-3.5-turbo")

Arguments

model_type

string, default "gpt-3.5-turbo"

Value

string to console

Details

Highlight point form text in an editor window while using Rstudio, then select the addin from the drop-down menu.

This function sends the selected text to a gpt-3.5-turbo chat model. The system prompt is:

You are a writing assistant. Your task is to take point form notes and convert them into longform prose. Please write in a straightforward and clear manner. The user prompt will contain point form notes.

The model receives the highlighted text, generates a response following the prompt, and returns the new suggested text to the console.