Wraps a module with input/output mapping configuration for use in pipeline().
Value
A PipelineStep object for use in pipeline()
Examples
if (FALSE) { # \dontrun{
# Map 'documents' from upstream to 'context' input
pipeline(
mod_retrieve,
step(mod_answer, map = c(documents = "context")),
mod_format
)
# Select only certain output fields
pipeline(
mod_analyze,
step(mod_format, select = c("summary", "score")),
mod_present
)
# Inject static inputs
pipeline(
mod_retrieve,
step(mod_answer, system_prompt = "Be concise")
)
} # }