Learning resourcesReviewed · Mistral AI

Mistral Workflow evaluation plugin guide

This Mistral documentation guide shows Python developers at Enterprise-tier organizations how to run offline, dataset-based evaluations of AI tasks, such as model prompts or deployed workflows, inside Mistral Workflows with the mistralai-workflows-plugins-evaluations plugin; the feature is in Public Preview. It explains installation, distributed task execution and scoring, Studio results, authentication, retries and dataset limits.

Researched 15 Nov 2026

In short.

This Mistral documentation guide shows Python developers at Enterprise-tier organizations how to run offline, dataset-based evaluations of AI tasks, such as model prompts or deployed workflows, inside Mistral Workflows with the mistralai-workflows-plugins-evaluations plugin; the feature is in Public Preview. The plugin distributes dataset records across Temporal child workflows, runs tasks and scorers, and uploads results to Studio. The page provides practical setup and operating constraints, including authentication differences, failed-record handling and payload limits. It supplies no measured throughput, reliability results or pricing.

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

Covers the complete supplied Workflow evaluation plugin page at [https://docs.mistral.ai/studio/observability/evaluations/workflows-plugin.md], including its Enterprise-only Public Preview notice, compatibility requirements, managed-deployment permissions, quickstart, SDK differences, local mode, dataset limits and FAQ. Linked documentation, API references, installation guides and PyPI release history are excluded. Nothing was installed or executed, and no live service behavior, benchmark, cost or permission outcome was verified.

The overview

identity

This is Mistral's documentation guide for mistralai-workflows-plugins-evaluations, a Python plugin that runs dataset-based evaluations inside Mistral Workflows. The original page is [https://docs.mistral.ai/studio/observability/evaluations/workflows-plugin.md].

The plugin exposes evaluation.run() and shares evaluation concepts with mistralai-evaluations, the Evaluation SDK. Here, offline evaluation means checking tasks against a dataset; tasks can still call a hosted model.

assessment

The guide is useful for developers who already use Mistral Workflows and need evaluations spanning many records, long-running tasks or scheduled executions. It covers operational details that affect real deployments, including service-account permissions and how failed records affect statistics.

Its practical value is the documented integration path and its constraints. No code was executed, and deployment success, performance and production reliability are not assessed.

users

The intended readers are Python developers and AI evaluation teams with an Enterprise organization and a working Workflows project. Familiarity with asynchronous Python, datasets, scoring functions and worker deployment will help.

Beginners get a small language-detection example, but the page assumes the Workflows environment already exists. Developers seeking quick notebook experiments or CI scripts should consider the Evaluation SDK comparison provided on the page.

capabilities

The plugin supports inline datasets and Studio datasets, configurable systems, evaluators, goals, statistics, multiple generations and run-level evaluators. Tasks can be activities, workflow classes or named deployed workflows. Decorators configure activity timeouts, retries and concurrency.

evaluation.run() returns an EvalResult containing run_id, run_url, statistics, run_scores and failed_record_count. Results normally appear in Studio. With local=True, the evaluation layer skips Studio calls while retaining Temporal child workflows and activities.

The page also points to optimization, agent evaluation, rescoring and lower-level building blocks. Those linked guides are outside the supplied evidence, so their implementation details are unknown.

Using it

requirements

The stated prerequisites are Python 3.12 through 3.14, a working Mistral Workflows project and Enterprise access to offline evaluations. Local or self-hosted workers use MISTRAL_API_KEY. The documented plugin version 0.7.0 requires mistralai-evaluations 0.10.0 or later.

Managed deployments use a rotating service-account token automatically. The page requires mistralai-workflows 3.10 or later and mistralai-evaluations 0.9.2 or later for that authentication path; plugin 0.7.0 still requires the higher 0.10.0 SDK minimum.

A workflow declared with on_behalf_of=True uses the executing user's permissions and requires a hardened deployment. Without that setting, the service account needs the relevant workspace permissions; the page directs developers to request offline_evaluations_manager because the default workflow_executor role is insufficient.

mechanism

The evaluation takes dataset records, runs a task for each record, scores its output and aggregates results. Each record gets a child workflow, providing separate execution and failure handling. Activity tasks and scorers run as Temporal activities; a task can instead be a workflow class or a deployed workflow, and these workflow tasks are not retried. Results are uploaded as records finish.

For Studio datasets, the evaluation workflow passes record identifiers, and each child workflow fetches its record. This keeps inputs and outputs out of the parent evaluation workflow's history. Inline records cross that history.

Run-level evaluators retrieve persisted records from Studio. Upload order can differ from dataset order, and an output that failed to upload appears without generations. In local mode, records are passed in memory.

setup

Install mistralai-workflows-plugins-evaluations with pip or uv in the worker environment. It brings in the Evaluation SDK. Restart the worker so it discovers the plugin and registers its activities and child workflows.

Import evaluation from mistralai.workflows.plugins.evaluations and types from mistralai.workflows.plugins.evaluations.types. Decorate ordinary task functions with @evaluation.task, scorers with @evaluation.scorer and run evaluators with @evaluation.run_scorer. Call evaluation.run() inside a workflow entry point.

On managed deployments, use get_mistral_client() for model calls that should carry the deployment token. MISTRAL_API_KEY is reserved there, and adding an API key does not override the service-account token. Configure user delegation or service-account permissions instead.

Set local=True explicitly when Studio persistence is unwanted. Omitting evaluation does not make a run local: the plugin otherwise saves it under a default evaluation and project.

example

The supplied example evaluates language detection on three sentences with English, French and Spanish ground truths. Its task calls mistral-small-latest and requests only a language name. The scorer compares the lowercased ground truth with a trimmed, lowercased model response, returning 1 for a match and 0 otherwise.

The workflow sets an accuracy goal of at least 0.8 and returns a run identifier and URL. The page shows execution through Studio or the Mistral SDK. This illustrates wiring and scoring logic; it provides no observed model outputs or measured accuracy.

Assessment & evidence

limitations

A run accepts at most 10,000 records. A single record's input, output and metadata must each remain below Temporal's 2 MB payload limit. Studio datasets reduce parent-history pressure but do not remove these per-record limits. The page also cites workflow-history ceilings of 50 MB and 51,200 events.

Keep score values short and place long explanations in rationale. System parameters and run metadata are repeated across batches; the page warns that a 10,000-record run can fail before starting when these exceed about 200 KB. More generations and scorers also consume the available history budget.

Classification statistics are unsupported. Activity tasks and scorers retry according to their decorators, but workflow tasks are not retried. There is no retry_failed_records() method. Records that still fail are excluded from statistics, so inspect failed_record_count, available in plugin 0.7.0 and later.

Run-level callbacks must be registered on the worker, cannot assume dataset order and may need up to ten extra minutes to read records. Additional Studio API limits are referenced but not specified in the supplied page.

reasoning

The architectural tradeoff is distributed execution and per-record isolation in exchange for worker configuration, permission management and Temporal limits. That can suit existing workflow deployments, but the architecture alone does not establish faster execution or lower cost.

Evaluation quality still depends on representative records and appropriate scorers. A high score with failed records can give an incomplete picture because those failures do not contribute to statistics. The three-record exact-match example demonstrates integration rather than broad language-detection quality.

alternatives

The directly compared alternative is Mistral's Evaluation SDK. It runs in a Python script or notebook, uses asyncio within one process and offers retry_failed_records() after a run. The page positions it for fast iteration, notebooks and CI scripts.

The workflow plugin uses Temporal workers and child workflows and is positioned for larger datasets, long-running or multi-step tasks and scheduled evaluations. Both use the same Studio projects, evaluations and runs. The page supplies no comparative benchmarks or evidence about other vendors.

evidence

The evidence is the complete Mistral documentation page at [https://docs.mistral.ai/studio/observability/evaluations/workflows-plugin.md]. It includes installation instructions, a code example, an SDK comparison, authentication guidance, limits and an FAQ.

This is first-party documentation describing expected behavior. Package source, linked guides, release-history contents and independent measurements are not included. Nothing was executed; installation, authorization, retries, uploads and numerical results remain unverified in practice.

Access & freshness

costs

The page gives no Enterprise price, plugin fee, hosting price, storage price or model-call rate. Total cost is unknown.

Cost planning needs the organization's commercial terms, worker deployment, dataset size, generation count and task and scorer usage. Retries can repeat activity work. local=True suppresses the evaluation layer's Studio calls, but task and scorer code may still call paid model services.

rights

The supplied page does not state the package license or redistribution permissions for the documentation and example code. Those rights are unknown from this evidence.

The guide describes Enterprise access and workspace permissions, but does not establish dataset or model-output usage rights, retention terms or data residency. Normal operation persists evaluation results in Studio, so those terms matter when choosing evaluation data.

freshness

The supplied page was captured on 2026-11-15 at 10:56:04.265 UTC. No publication or last-updated date is stated. Its references to plugin 0.7.0 establish compatibility guidance, not the latest available release.

Version-sensitive details include Studio datasets requiring plugin 0.6.3 or later, service-account support, and failed_record_count support from 0.7.0. The example uses the moving model alias mistral-small-latest rather than a fixed model version. Current releases and the model behind that alias are unknown from this page.

actions

Before adopting the plugin, confirm Enterprise availability, compatible package versions and the deployment's authentication mode. For managed execution, choose user delegation on a hardened deployment or configure the service account's evaluation permissions.

Start with a small representative dataset and explicit scoring rules. Choose local=True deliberately, set concurrency and retry settings, and inspect failed_record_count alongside scores. Use Studio datasets as input size grows, while respecting per-record payload limits.

Before committing to a larger deployment, establish pricing, data-handling terms and package licensing, then measure completion rates, retry behavior, evaluation quality and actual cost with the intended workload.

Evidence for this report

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