View source: R/batch-methods.R
batch.sequential_chat | R Documentation |
Process a batch of prompts with a sequential chat
batch.sequential_chat(
chat_env,
prompts,
type_spec = NULL,
judgements = 0,
state_path = tempfile("chat_", fileext = ".rds"),
progress = TRUE,
max_retries = 3L,
initial_delay = 20,
max_delay = 80,
backoff_factor = 2,
beep = TRUE,
echo = FALSE,
...
)
chat_env |
The chat environment from chat_sequential |
prompts |
List of prompts to process |
type_spec |
Type specification for structured data extraction |
judgements |
Number of judgements (1 = initial extract + 1 judgement, 2 = initial extract + 2 judgements, etc.) |
state_path |
Path to save state file |
progress |
Whether to show progress bars |
max_retries |
Maximum number of retry attempts for failed requests |
initial_delay |
Initial delay before first retry in seconds |
max_delay |
Maximum delay between retries in seconds |
backoff_factor |
Factor to multiply delay by after each retry |
beep |
Whether to play a sound on completion |
echo |
Whether to display chat outputs (when |
... |
Additional arguments passed to the chat method |
A batch object with the processed results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.