Internal function to fit an llm_predict model. Creates a dsprrr module with the specified configuration.
Examples
fit_llm_predict(
data.frame(text = c("helpful", "unhelpful")),
factor(c("positive", "negative"))
)
#>
#> ── PredictModule ──
#>
#> ── Signature
#>
#> ── Signature ──
#>
#> ── Inputs
#> • text: "string" - Input: text
#>
#> ── Output
#> Type: "object(output: enum(positive, negative))"
#>
#> ── Instructions
#> Given the fields `text`, produce the fields `output`.