Introducing Confident Voice: Watch the Launch Video Now

Create Evaluator Collection

(v2)

POST

Creates an evaluator collection from the name and metricsSettings you specify and returns it. Each name in metricsSettings is a scorer (a metric that matches multiTurn) or, failing that, a classifier in your project or organization; a classifier only takes activated. A name that matches neither rejects the whole request.

POST/v2/evaluator-collections
curl -X POST "https://api.confident-ai.com/v2/evaluator-collections" \
  -H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "RAG Quality",
  "multiTurn": false,
  "metricsSettings": [
    {
      "metric": {
        "name": "Answer Relevancy"
      },
      "activated": true,
      "threshold": 0.8,
      "includeReason": true,
      "strictMode": false,
      "sampleRate": 1,
      "evaluationModelProvider": "OPEN_AI",
      "evaluationModelName": "gpt-4o",
      "evaluationModelCredentialId": "<MODEL-CREDENTIAL-ID>",
      "decisionModelProvider": "OPEN_AI",
      "decisionModelName": "jev-latest",
      "evalMode": "LLM"
    }
  ],
  "sampleRate": 1,
  "inputTransformerId": "<TRANSFORMER-ID>",
  "outputTransformerId": null
}'
200
{
  "success": true,
  "data": {
    "id": "<EVALUATOR-COLLECTION-ID>",
    "name": "RAG Quality",
    "multiTurn": false,
    "sampleRate": 1,
    "inputTransformerId": "<TRANSFORMER-ID>",
    "outputTransformerId": null,
    "metricsSettings": [
      {
        "metric": {
          "id": "<METRIC-ID>",
          "name": "Answer Relevancy"
        },
        "activated": true,
        "threshold": 0.8,
        "includeReason": true,
        "strictMode": false,
        "sampleRate": 1,
        "evaluationModelProvider": "OPEN_AI",
        "evaluationModelName": "gpt-4o",
        "evaluationModelCredentialId": null,
        "decisionModelProvider": "OPEN_AI",
        "decisionModelName": "jev-latest",
        "evalMode": "LLM"
      }
    ],
    "classifiers": [
      {
        "id": "<EVALUATOR-ID>",
        "name": "Refund reason",
        "activated": true
      }
    ]
  },
  "deprecated": false
}

Headers

  • CONFIDENT_API_KEYstringRequired

    The API key of your Confident AI project.

Request body

  • namestringRequired

    The name of the evaluator collection, which must be unique within your project.

  • multiTurnboolean

    This is true if the collection is multi-turn, which contains only multi-turn evaluators. It cannot be changed once the collection exists.

  • metricsSettingslist of objects

    The scorers and classifiers in the collection with their settings. Each must exist in your project and match multiTurn.

    Show 12 propertiesHide 12 properties
    • metricobjectRequired

      An evaluator referenced by its name.

      Show 1 propertyHide 1 property
      • namestringRequired

        The name of the evaluator, which must match one in your project or one of Confident AI's built-in scorers.

    • activatedboolean

      Whether this evaluator is activated. Only activated evaluators are run during an evaluation.

    • thresholdnumber

      The threshold this scorer is scored against. A scorer passes when its score is equal to or greater than the threshold.

    • includeReasonboolean

      Whether a written reason explaining the scorer's score is generated during evaluation.

    • strictModeboolean

      Whether this scorer runs in strict mode, which outputs a binary score of 0 or 1 instead of a continuous score.

    • sampleRatenumber

      The probability that this evaluator is run for any given evaluation, between 0 and 1. Applied on top of the collection's own sampleRate.

    • evaluationModelProviderenum | null

      This is the provider of the model.

      Show 26 enum valuesHide 26 enum values
      • OPEN_AI
      • CUSTOM
      • CONFIDENT_AI
      • BEDROCK
      • ANTHROPIC
      • GEMINI
      • X_AI
      • DEEPSEEK
      • MOONSHOT_AI
      • VERTEX_AI
      • AZURE
      • MISTRAL
      • PERPLEXITY
      • OPEN_ROUTER
      • PORTKEY
      • LITE_LLM
      • TRUE_FOUNDRY
      • HUGGING_FACE
      • TYPE_SAFE
      • FAL
      • Z_AI
      • DEEPGRAM
      • ASSEMBLY_AI
      • ELEVEN_LABS
      • CARTESIA
      • HUME
    • evaluationModelNamestring | null

      The name of the model this scorer is evaluated with. Required whenever evaluationModelProvider is set to anything other than CONFIDENT_AI, and has no effect without a provider.

    • evaluationModelCredentialIdstring | null

      For BEDROCK and AZURE, the id of the stored credential this scorer is evaluated with. Omit it or send null to use the provider's default credential.

    • decisionModelProviderenum | null

      This is the provider of the model.

      Show 26 enum valuesHide 26 enum values
      • OPEN_AI
      • CUSTOM
      • CONFIDENT_AI
      • BEDROCK
      • ANTHROPIC
      • GEMINI
      • X_AI
      • DEEPSEEK
      • MOONSHOT_AI
      • VERTEX_AI
      • AZURE
      • MISTRAL
      • PERPLEXITY
      • OPEN_ROUTER
      • PORTKEY
      • LITE_LLM
      • TRUE_FOUNDRY
      • HUGGING_FACE
      • TYPE_SAFE
      • FAL
      • Z_AI
      • DEEPGRAM
      • ASSEMBLY_AI
      • ELEVEN_LABS
      • CARTESIA
      • HUME
    • decisionModelNamestring | null

      The name of the decision model this scorer decides with, used in the HYBRID and DECISION eval modes. Required whenever decisionModelProvider is set, and has no effect without a provider. Agent Interruption, User Interruption, Turn-Taking Naturalness, Echo, Abrupt Cut-off and Background Noise take an audio model instead, in the HYBRID eval mode only: audio-decisions (HUME), or gpt-audio or gpt-audio-mini (OPEN_AI). It listens to each flagged event and drops the ones it judges not real. Reprompt, Agent Responsiveness and Voice Reliability always judge whether a caller who spoke again was repeating themselves with a decision model: this one in the DECISION eval mode, or the project's decision model when none is set.

    • evalModeenum | null

      Which model does the work: LLM runs only the evaluation model, DECISION only the decision model, and HYBRID has the decision model decide while the evaluation model assists.

      Show 3 enum valuesHide 3 enum values
      • LLM
      • HYBRID
      • DECISION
  • sampleRatenumber

    The share of eligible entities the whole collection is run against, between 0 and 1. Applied on top of each evaluator's own sampleRate. Defaults to 1 on create; omit it on an update to leave it unchanged.

  • inputTransformerIdstring | null

    The id of a transformer that reshapes the payload before evaluation. Send null to unset it.

  • outputTransformerIdstring | null

    The id of a transformer that reshapes the result after evaluation. Send null to unset it.

Response

Create Evaluator Collection succeeded.

  • successboolean

    Indicates if the request was successful.

  • dataobject

    An evaluator collection: its name, sampling and transformer configuration, the settings for every scorer inside it, and its classifiers.

    Show 8 propertiesHide 8 properties
    • idstring

      This is the id of the evaluator collection.

    • namestring

      This is the name of the evaluator collection, which you supply to the evals API to run evaluations remotely.

    • multiTurnboolean

      Whether this is a multi-turn collection. Multi-turn collections contain only multi-turn evaluators and evaluate conversations rather than single test cases.

    • sampleRatenumber

      The share of eligible entities this collection is run against, between 0 and 1. Applied on top of each evaluator's own sampleRate.

    • inputTransformerIdstring | null

      The id of the transformer that reshapes the payload before evaluation, or null when the collection does not use one.

    • outputTransformerIdstring | null

      The id of the transformer that reshapes the result after evaluation, or null when the collection does not use one.

    • metricsSettingslist of objects

      The scorers in the collection with their settings.

      Show 12 propertiesHide 12 properties
      • metricobject

        A scorer as it appears inside a collection, by id and name.

        Show 2 propertiesHide 2 properties
        • idstring

          This is the id of the scorer.

        • namestring

          This is the name of the scorer.

      • activatedboolean

        Whether this evaluator is activated. Only activated evaluators are run during an evaluation.

      • thresholdnumber

        The threshold this scorer is scored against. A scorer passes when its score is equal to or greater than the threshold.

      • includeReasonboolean

        Whether a written reason explaining the scorer's score is generated during evaluation.

      • strictModeboolean

        Whether this scorer runs in strict mode, which outputs a binary score of 0 or 1 instead of a continuous score.

      • sampleRatenumber

        The probability that this evaluator is run for any given evaluation, between 0 and 1. Applied on top of the collection's own sampleRate.

      • evaluationModelProviderenum | null

        This is the provider of the model.

        Show 26 enum valuesHide 26 enum values
        • OPEN_AI
        • CUSTOM
        • CONFIDENT_AI
        • BEDROCK
        • ANTHROPIC
        • GEMINI
        • X_AI
        • DEEPSEEK
        • MOONSHOT_AI
        • VERTEX_AI
        • AZURE
        • MISTRAL
        • PERPLEXITY
        • OPEN_ROUTER
        • PORTKEY
        • LITE_LLM
        • TRUE_FOUNDRY
        • HUGGING_FACE
        • TYPE_SAFE
        • FAL
        • Z_AI
        • DEEPGRAM
        • ASSEMBLY_AI
        • ELEVEN_LABS
        • CARTESIA
        • HUME
      • evaluationModelNamestring | null

        The name of the model this scorer is evaluated with, or null when the project's default evaluation model is used.

      • evaluationModelCredentialIdstring | null

        For BEDROCK and AZURE, the id of the stored credential this scorer is evaluated with, or null when it uses the provider's default credential.

      • decisionModelProviderenum | null

        This is the provider of the model.

        Show 26 enum valuesHide 26 enum values
        • OPEN_AI
        • CUSTOM
        • CONFIDENT_AI
        • BEDROCK
        • ANTHROPIC
        • GEMINI
        • X_AI
        • DEEPSEEK
        • MOONSHOT_AI
        • VERTEX_AI
        • AZURE
        • MISTRAL
        • PERPLEXITY
        • OPEN_ROUTER
        • PORTKEY
        • LITE_LLM
        • TRUE_FOUNDRY
        • HUGGING_FACE
        • TYPE_SAFE
        • FAL
        • Z_AI
        • DEEPGRAM
        • ASSEMBLY_AI
        • ELEVEN_LABS
        • CARTESIA
        • HUME
      • decisionModelNamestring | null

        The name of the decision model this scorer decides with, or null when the project's default decision model is used.

      • evalModeenum | null

        Which model does the work: LLM runs only the evaluation model, DECISION only the decision model, and HYBRID has the decision model decide while the evaluation model assists.

        Show 3 enum valuesHide 3 enum values
        • LLM
        • HYBRID
        • DECISION
    • classifierslist of objects

      The classifiers in the collection. To keep one on an update, list its name in metricsSettings with the activated you want.

      Show 3 propertiesHide 3 properties
      • idstring

        This is the id of the classifier.

      • namestring

        This is the name of the classifier.

      • activatedboolean

        Whether this classifier is activated. Only activated evaluators are run during an evaluation.

  • deprecatedboolean

    Indicates if this endpoint is deprecated.

Built byConfident AI