process_chunks | R Documentation |
Process chunks of prompts in parallel
process_chunks(
chunks,
result,
chat_obj,
type_spec,
judgements,
pb,
state_path,
progress,
beep,
max_retries,
initial_delay,
max_delay,
backoff_factor,
echo,
...
)
chunks |
List of prompt chunks to process |
result |
A batch object to store results |
chat_obj |
Chat model object for making API calls |
type_spec |
Type specification for structured data extraction |
judgements |
Number of judgements for structured data extraction resulting in refined data |
pb |
Progress bar object |
state_path |
Path to save intermediate state |
progress |
Whether to show progress bars |
beep |
Logical indicating whether to play sounds |
max_retries |
Maximum number of retry attempts |
initial_delay |
Initial delay in seconds before first retry |
max_delay |
Maximum delay in seconds between retries |
backoff_factor |
Factor to multiply delay by after each retry |
Updated batch object with processed results
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.