Saltar al contenido principal

Test cases

Disparadorevaluation

Runs the flow on each row of a table of test cases, in test mode, to see how well it does before and after a change.

De un vistazo​

PropiedadValor
Trigger nameevaluation
ResourceClusterTrigger (lumen.ai/v1alpha1)
Sourcemanual
Needs a connectionno
Producesemail, file
Emitsitem
Installation must providenothing

The trigger goes under spec.triggers of a Flow. Its outputs are referenced as <triggerId>.<field>. A trigger can also carry a when condition ("Start only when") and disabled: true.

Salidas​

Un nodo posterior se refiere a una salida como {nodeId.field} en un texto, o nodeId.field en una condición.

SalidaTipo
fromstring
tostring
subjectstring
bodystring
attachmentsnumber

Ajustes​

Se definen bajo config: en el disparador del flujo.

AjusteTipoValor por defectoDescripción
datasetobligatoriostring-Dataset is the table (Sheet) of test cases, one row per case. The columns from, to, cc, subject, body and attachments make the trigger's email; every column is also run.case.<column> for the score step.minLength 1; maxLength 253
repeatinteger1Repeat runs each case that many times, to see how steady the AI is.minimum 1; maximum 10
maxRowsinteger50MaxRows bounds the cases one evaluation runs.minimum 1; maximum 200
minPassRatenumber-MinPassRate is the share of runs that must pass for the evaluation to pass, from 0 to 1. Unset is 1: every run.minimum 0; maximum 1
maxTokensPerCaseinteger-MaxTokensPerCase fails a run whose model tokens (input and output, every step) pass it, however well it scored. Unset is no ceiling.minimum 1
maxCreditsPerCasenumber-MaxCreditsPerCase fails a run that costs more credits than this. Unset is no ceiling.minimum 0
maxConcurrentinteger4MaxConcurrent is how many test runs an evaluation starts at once; the others wait unstarted, in order, and each run that ends starts the next. Unset is 4.minimum 1; maximum 50
modelClassstring-ModelClass is the ClusterModelClass the flow's AI steps run on in a test run. Unset is the workspace's test model.maxLength 253
approvalslist of object-Approvals answer the flow's approval steps in a test run from a column of the case: approve or reject, yes or no, or a JSON object of the form's answers. An approval with none is answered by its column "approve" when the table has one.maxItems 20
approvals[].nodeobligatoriostring-Approval stepminLength 1; maxLength 63
approvals[].columnobligatoriostring-ColumnminLength 1; maxLength 63

El JSON Schema completo de estos ajustes: evaluation.schema.json.