| foundry_eval_item | R Documentation |
Model-based graders (foundry_grader_label_model() and
foundry_grader_score_model()) accept an input list of message-shaped
items. Each item has a role and content, and the content may embed
template references such as {{item.question}} or {{sample.output_text}}
that Azure resolves per row at evaluation time.
foundry_eval_item(
content,
role = c("user", "assistant", "system", "developer")
)
content |
Character. The message content. May contain |
role |
Character. One of |
A named list with role and content, ready to place in a grader
input list.
foundry_eval_item("Grade this answer: {{sample.output_text}}", role = "user")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.