Optimize a dsprrr program with a teleprompter. This is the single
user-facing compilation entry point and is ordered for the native pipe:
program |> compile(teleprompter, trainset).
Examples
if (FALSE) { # \dontrun{
classifier <- module(signature("text -> sentiment"))
trainset <- data.frame(
text = c("I love it!", "Terrible experience"),
sentiment = c("positive", "negative")
)
optimized <- classifier |>
compile(LabeledFewShot(k = 2L), trainset)
} # }