generate_ratings_for_all {chatRater} | R Documentation |
Generate Ratings for Multiple Stimuli
Description
Applies the generate_ratings
function to a list of stimuli.
Usage
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
)
Arguments
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. |
Value
A data frame with stimuli, ratings, and iteration numbers.
Examples
## 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)
[Package chatRater version 1.1.0 Index]