generate_ratings_for_all | R Documentation |
Applies the generate_ratings
function to a list of stimuli.
generate_ratings_for_all(
model = "gpt-3.5-turbo",
stim_list,
prompt = "You are a native English speaker.",
question = "Please rate the following stim:",
top_p = 1,
temp = 0,
n_iterations = 30,
api_key = "",
debug = FALSE
)
model |
A character string specifying the LLM model. |
stim_list |
A character vector of stimuli. |
prompt |
A character string for the system prompt. |
question |
A character string for the user prompt. |
top_p |
Numeric value for the probability mass. |
temp |
Numeric value for the temperature. |
n_iterations |
An integer indicating how many iterations per stimulus. |
api_key |
API key as a character string. |
debug |
Logical; if TRUE, debug information is printed. |
A data frame with stimuli, ratings, and iteration numbers.
## Not run:
all_ratings <- generate_ratings_for_all(
model = "gpt-3.5-turbo",
stim_list = c("kick the bucket", "spill the beans"),
prompt = "You are a native English speaker.",
question = "Please rate the following stim:",
n_iterations = 5,
api_key = "your_api_key"
)
print(all_ratings)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.