| foundry_eval_data_config | R Documentation |
Describe the shape of the data an evaluation expects. type = "custom"
declares an item schema you populate per run; type = "logs" sources rows
from stored completions matching a metadata filter.
foundry_eval_data_config(
type = c("custom", "logs"),
item_schema = NULL,
include_sample_schema = FALSE,
metadata = NULL
)
type |
Character. Either |
item_schema |
List. For |
include_sample_schema |
Logical. For |
metadata |
List. For |
A named list describing a data_source_config, for use in
foundry_eval_create().
foundry_eval_data_config(
type = "custom",
item_schema = list(
type = "object",
properties = list(
question = list(type = "string"),
answer = list(type = "string")
),
required = list("question", "answer")
),
include_sample_schema = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.