Learning resourcesReviewed · Mistral AI

Mistral: Retry failed records

Mistral’s Retry failed records guide helps developers recover incomplete AI evaluations, but it requires the original dataset and matching run settings. It explains how retry_failed_records() repairs the existing Studio run and why evaluation averages can hide failures.

Researched 15 Nov 2026

In short.

Mistral’s Retry failed records guide teaches developers to repair incomplete AI evaluations, but recovery requires the original dataset and matching configuration and modifies the existing run. The SDK reprocesses records with failed or missing generation or scoring results, then patches successful results into Studio. Failed generations and scores are excluded from statistics and goals, so averages must be read alongside failure counts. Run-level scores are recomputed only when run evaluators are supplied. Pricing is unknown, and no code was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete documentation page at [https://docs.mistral.ai/studio/observability/evaluations/advanced-guides/retry-failed-records.md], including its examples, configuration constraints, failure-count warning, retry criteria and API tables. Linked pages, including the workflow evaluation plugin documentation, are excluded. No licence or redistribution notice appears in the supplied page. No installation, API request, retry, scoring operation or Studio interaction was executed.

The overview

Identity

This is Mistral’s documentation guide for client.evaluation.retry_failed_records(), within the advanced guides for Studio evaluations. Its source address is [https://docs.mistral.ai/studio/observability/evaluations/advanced-guides/retry-failed-records.md]. It covers recovery of an existing evaluation run after generation or scoring failures.

Assessment

The guide is useful when an evaluation has successful results worth preserving alongside records that failed because of API errors, rate limits or task or scorer bugs. It supplies an initial evaluation example, a corrected-task example, configuration rules and parameter and return-value references.

Its practical value depends on retaining the original inputs and understanding that results are updated in place. The examples explain intended behavior; successful recovery, reliability and time savings were not tested.

Users

The main audience is developers maintaining evaluations through Mistral’s Python SDK and inspecting results in Studio. Beginners need familiarity with asynchronous Python, API credentials, datasets, task functions and scorers. Experienced developers will find the validation constraints, record-selection rules and run-level scoring behavior particularly relevant.

Capabilities

The method retries records identified as incomplete or failed, accepts a corrected task function, and patches successful results into the original run. It can also recompute run-level scores when run_evaluators is provided.

The result exposes run_id, retried_count, patched_count and run_scores_recomputed. Controls include num_generations, which defaults to 1, max_concurrency, which defaults to 10 concurrent tasks, and upload_batch_size, which defaults to 10 patched results per upload batch.

Using it

Requirements

The required arguments are the existing run_id, the same dataset used originally, a task function and evaluators. The example authenticates a Mistral client with the MISTRAL_API_KEY environment variable and uses asyncio.

Keep num_generations, evaluator names and num_scores, any supplied run evaluators, and system consistent with the original run. The guide says mismatches raise ValueError. It specifies SDK 0.10.0+ for the described failure-count reporting, but does not separately identify the minimum version for retry_failed_records().

Mechanism

Studio selects records on the server when outputs are missing, generation counts differ from num_generations, a generation or score has a status other than success, or scores are missing for supplied evaluators. The provided task and evaluators reprocess those records, and successful results replace results within the original run.

Run evaluators are recomputed only if supplied to the retry call. Studio then shows the remaining failure count. The API exposes record_count and failed_record_count, while the interface displays failures in run lists, individual runs and comparisons.

Setup

Following the documented pattern, configure MISTRAL_API_KEY, create the client, and define the dataset, task, evaluators and system. Create an evaluation with client.evaluation.run and retain its run_id together with the original inputs and settings.

Pass those inputs to client.evaluation.retry_failed_records, replacing the task with a corrected implementation if needed. Inspect the returned retry and patch counts. Installation commands, Python version requirements and account access requirements are not specified on this page.

Example

The example evaluates two prompts asking for hello and goodbye. Its task calls client.chat.complete_async with mistral-small-latest, and its accuracy scorer returns 1 when the expected word appears in the lowercase output and 0 otherwise.

The script creates an evaluation named My Eval, requests retries for failed records, and prints retried_count and patched_count. A second example passes a function named fixed_task to retry_failed_records. Its body is identical to the original task, so it shows where a corrected function goes rather than what a fix looks like. These are illustrative examples; the page supplies no observed retry results, and neither example was executed.

Assessment & evidence

Limitations

Evaluators do not run on failed generations. Failed generations and scores are excluded from statistics and goals, so even a perfect average can accompany substantial missing results. Check failed_record_count before interpreting scores.

Runs created before failure counts existed do not display that count until retried or rescored. Run-level scores are not automatically recomputed without run_evaluators, and the page does not guarantee that every retried record will recover.

Reasoning

The documented selection rules distinguish execution failures from poor evaluated performance. A successfully computed accuracy score of 0 is not, by itself, a retry trigger under those rules.

Because a corrected task runs only on selected records, a correction that changes output behavior could leave one run containing results from different task implementations. This is an implication of selective, in-place recovery, not an observed outcome demonstrated by the page.

Alternatives

The page contrasts selective retries with rerunning the entire evaluation, which repeats successful work. A new full run may be more appropriate when the dataset or experiment settings need to change; that recommendation follows from the retry method’s matching-configuration constraints.

Rescoring is mentioned as another operation that updates failure counts, but its procedure is not explained here. Other evaluation SDKs and services are not assessed.

Evidence

The complete documentation page supports the described API, record-selection rules, configuration constraints and Studio behavior. Its Python examples and API tables explain intended use.

The page contains no execution logs, measured recovery rates or observed cost savings. No code was executed, so actual API behavior, interface behavior and performance remain untested.

Access & freshness

Costs

Total cost is unknown. The page gives no model pricing, evaluation service charges, free-tier terms or measured savings. Its example of five failures among 500 records illustrates the motivation for avoiding a full rerun; it is not a benchmark.

Selected records invoke the supplied task and evaluators again, and optional run-level recalculation adds work. Processing fewer records can avoid repeating successful work, but the page does not quantify the resulting bill or duration.

Rights

The page does not state a licence for its prose or code examples, redistribution permissions, or the applicable SDK and service terms. Those rights and terms are unknown from this page.

Freshness

The documentation snapshot was captured on 15 November 2026 at 11:33:23.929 UTC. The page supplies no publication or last-update date, so its age cannot be established from the text.

The example uses the model alias mistral-small-latest rather than a fixed model revision. The underlying model version and compatibility with SDK releases beyond the explicit failure-reporting version note are not established.

Actions

Before retrying, diagnose the failure cause and retain the original dataset, run_id and configuration. Read failed_record_count alongside averages, and decide whether selective recovery fits the intended experiment.

For recovery, provide matching settings and include run_evaluators when run-level scores need updating. Afterward, inspect retried_count, patched_count and the remaining failed_record_count to establish whether recovery completed. Confirm pricing and required SDK compatibility before adoption because this page leaves those details incomplete.

Evidence for this report

selected-page.txtselected · checked 2026-11-15