Learning resourcesReviewed · Mistral AI

Mistral Offline Evaluations Guide

This Mistral guide teaches Python developers to evaluate LLM pipelines, but the documented feature is an Enterprise-only public preview. It explains the mistralai-evaluations SDK, custom scorers, local result inspection and comparison of saved runs in Studio.

Researched 15 Nov 2026

In short.

This Mistral guide helps Python developers measure and compare LLM pipelines, but offline evaluations are an Enterprise-only public preview. It covers datasets, task functions, scoring, pass/fail goals and local or Studio-backed results. Python 3.12 or later is required. No code was executed, and the supplied page does not establish pricing, licensing or measured performance.

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

Coverage is the complete selected page at [https://docs.mistral.ai/studio/observability/evaluations.md], including its Enterprise/public-preview notice, installation, authentication, examples, core concepts, local mode, Studio results and FAQ. Linked pages, API references, package artifacts, release history and detailed limits are excluded. All behavior is described from documentation; nothing was installed or executed. Actual runtime behavior and performance remain unassessed, and costs and licensing remain unknown.

The overview

identity

Offline evaluations is Mistral's documentation for using the mistralai-evaluations Python SDK to evaluate LLM pipelines. The resource is the guide at [https://docs.mistral.ai/studio/observability/evaluations.md]. It introduces the SDK and its integration with Studio rather than supplying the package itself.

assessment

The guide provides enough detail to understand the evaluation model and prepare a first implementation: installation, credentials, a complete language-detection example and result inspection. It is especially useful for developers who want to compare prompts or model configurations while retaining per-record scores.

Its usefulness depends on access to the Enterprise preview and on building meaningful test cases and scorers. The page provides instructions, not evidence of evaluation accuracy, reliability or performance at scale.

users

The primary audience is Python developers evaluating LLM applications in an Enterprise Mistral organization. Beginners can follow the small example, but they need to understand Python functions, package installation and API credentials.

Experienced developers get details about typed context objects, asynchronous execution, configuration tracking, statistics and programmatic result access. Agent and workflow integrations are introduced through links; their implementation details are outside this page.

capabilities

The SDK accepts input records or a Studio dataset, runs synchronous or asynchronous task functions, and applies multiple evaluators. It computes statistics such as average, minimum, maximum, standard deviation and count. Goals define pass/fail thresholds for individual scores or configured aggregate statistics.

Results can be inspected in the terminal, printed as JSON or saved to Studio with configuration, tags and metadata. Studio supports filtering and per-record inspection. Categorical scores have trend and distribution charts; numeric evaluator statistics appear in the run table instead of trend charts.

Using it

requirements

The documented prerequisites are Python 3.12 or later, Enterprise access and normally a Mistral API key. The SDK supports mistralai versions from 2.7.1 up to, but excluding, 4. Installing it brings in a compatible mistralai dependency when needed. Evaluating Agents SDK agents additionally requires mistralai-agents 1.1.0 or later.

Authentication without an API key requires an HTTP client that supplies Authorization on every request, such as the documented managed-workflow client. Without either credential mechanism, client creation fails. The page does not establish an Enterprise-access exception for local mode.

mechanism

Each dataset record goes through a task that produces an output, then through scorers that assign results. Annotating the task parameter as TaskContext gives access to the input record, system configuration and metadata; without that annotation, the task receives the raw record. ScorerContext exposes the record, output, configuration and metadata to scorers.

System stores task settings in a flat dictionary of scalar values; structured settings must be serialized, for example as JSON strings. Goals set pass/fail thresholds, while evaluator direction and normalization express what scores mean. Saved runs associate these settings and scores with a Project and Evaluation.

setup

Install the package with pip install mistralai-evaluations or uv add mistralai-evaluations, then configure MISTRAL_API_KEY for the standard authentication path. The guide's eval.py example constructs a client, dataset, task, scorer and evaluation run, then displays per-record results.

Use local=True to suppress result uploads; omitting evaluation also keeps a run local. To save runs in Studio, supply Project and Evaluation references and leave local mode disabled. The guide locates saved results under Evaluate > Evaluations > Offline.

example

The quickstart contains three sentences with expected language labels: English, French and Spanish. Its asynchronous task calls mistral-small-latest with a prompt requesting only the language name. The scorer returns 1 when the lowercased response exactly equals the lowercased expected label, and 0 otherwise.

The example's Goal.gte(0.8) applies to individual generation scores, so only a score of 1 passes this binary scorer. An average-score goal is configured separately. The scorer does not trim whitespace or accept alternative labels. These are properties of the supplied code; no evaluation results were produced.

Assessment & evidence

limitations

Offline evaluations are explicitly in public preview and restricted to Enterprise organizations. Payload, fan-out and batch limits are referenced through a separate guide, but their values are not supplied here.

A synchronous task that blocks the event loop for several minutes can prevent heartbeats and cause Studio to mark a live run as cancelled. The guide recommends asynchronous tasks or asyncio.to_thread for blocking work.

The small demonstration does not establish application quality or scale. Judge quality, reproducibility, failure recovery and actual runtime behavior were not assessed. The example uses a latest model alias rather than a fixed model version.

reasoning

Separating the dataset, task, configuration and scorers makes repeated comparisons easier to interpret: the same test cases and scoring rules can be reused while changing a model or prompt. This is a practical benefit inferred from the documented design.

A passing goal only demonstrates success against the chosen scoring rule and dataset. In the example, extra explanatory text can fail an otherwise correct language answer. Meaningful evaluation therefore requires representative records and scoring rules that match the intended user outcome.

alternatives

The page does not compare competing evaluation frameworks, so it does not support a ranking against other tools. Within this SDK, it documents local iteration versus saved Studio runs, and rule-based scoring versus calling an LLM from a scorer.

Local mode suits iteration without result uploads, while saved runs provide persistent comparison and filtering in Studio. The relative cost and scoring quality of rule-based and LLM-based evaluators are not measured.

evidence

The evidence is the complete Mistral documentation page at [https://docs.mistral.ai/studio/observability/evaluations.md], captured on 15 November 2026.

This is first-party documentation supporting descriptions of the intended interface and behavior. Linked guides, package contents and release history were not supplied. No installation, API call, evaluation run or Studio session was performed.

Access & freshness

costs

The page provides no Enterprise price, evaluation fee, included allowance, model-call rate or Studio storage charge. Total cost is unknown.

The example calls the Mistral API, and an LLM-based scorer can make additional calls. Local mode only establishes that evaluation results are not uploaded to Studio; it does not establish free operation or the absence of network requests.

rights

The captured page does not state a license for the SDK, documentation or example code. It also does not establish contractual rights for submitted datasets and generated outputs, or data retention, deletion and residency terms. These details remain unknown from this source.

freshness

The snapshot records the feature as a public preview on 15 November 2026. The page provides dependency compatibility ranges but no publication date, last-updated date or specific mistralai-evaluations release version.

Those compatibility bounds do not establish the latest available package release. Changes after the capture, the current preview status and the model version behind mistral-small-latest are unknown.

actions

Before adopting the approach, confirm Enterprise entitlement, pricing, package licensing and Studio data-handling terms. Check the separate limits reference for the intended dataset size and concurrency.

For a first implementation, adapt the language-detection example to representative records, inspect individual outputs locally and verify that the scorer handles expected formatting. Use asynchronous tasks for long-running work. Record model and prompt settings, and define aggregate goals explicitly when overall accuracy is the intended gate.

For automated result processing, read run.statistics and run.output_records directly. The documented run.show() method prints output and returns nothing.

Evidence for this report

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