| LLMR-package | R Documentation |
LLMR provides provider-agnostic text generation, embeddings, structured JSON, XML-like tag extraction, chat sessions, robust retries, and parallel experiment utilities.
One prompt: call_llm() or call_llm_robust()
Vectors or data frames: llm_fn()
dplyr pipelines: llm_mutate(), including shorthand
llm_mutate(new_col = "{existing_col}", .config = cfg)
Strict structured fields: llm_mutate_structured() or llm_mutate()
with .structured = TRUE
Soft structured fields: llm_mutate_tags() or llm_mutate() with .tags
Factorial experiments: build_factorial_experiments() and call_llm_par()
call_llm_robust() retries transient failures. setup_llm_parallel()
controls worker count for parallel helpers; llm_fn() and llm_mutate()
use call_llm_broadcast() internally.
Maintainer: Ali Sanaei sanaei@uchicago.edu
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.