Ana içeriğe geç
Bu sayfa henüz Türkçeye çevrilmedi; İngilizce sürümü gösteriliyor.
Versiyon: 2.0

AI Evaluations

An evaluation runs the same cases through several prompts and models and shows the answers side by side. It uses the project's AI connections.

Datasets​

A dataset holds cases and metrics. A case has an input and, if a metric needs it, the expected text. An answer passes when every metric passes.

MetricPasses when
ContainsThe answer contains the text, or the expected text of the case when the metric names none.
Regular expressionThe answer matches. Look-around and back references are not supported.
LengthThe number of characters is within the limits.
JSON schemaThe whole answer is JSON that fits the schema. A Markdown code block around it is ignored. Keywords are those of a workflow's input schema; others are rejected when you save.
JudgeAnother model rates the answer from 1 to 5 by your criteria, and the rating is at least the lowest that passes (4 unless you set one).

A judge reads the answer, and an answer can try to talk it into a good rating. The answer is marked as data and the judge has no tools, but do not let a judge be the only metric for input you do not control. A judge that gives no clear rating does not pass.

Runs​

A run compares up to 6 variants. A variant is a connection, a model, a system prompt and a prompt with {{input}} where the input of the case goes. The dialog shows how many calls the run makes. The calls are made in the background by the API, at most 4 at a time.

A run keeps the cases and metrics it was started with, so a later change of the dataset does not change its results. When the API instance that works on it is gone, another one goes on within seconds. Answers that are stored are not asked for again; a call that was on its way then is made, and paid for, a second time.

Known secret values in prompts are replaced by their names before they are sent. Secret references are not resolved.

Cost​

Every call, including the judge's, counts as usage and is subject to budgets. A budget that stops calls ends the run, with the answers it has. The cost in the comparison is that of the answers, without the judges.

Permissions and Limits​

AiEvalManagement has List, Create, Update, Delete and Run. A dataset may have 200 cases of 20000 characters and 10 metrics.