Learning resourcesReviewed · Mistral AI

Mistral Evaluation SDK: run your first evaluation

This Mistral guide teaches Python developers to evaluate a prompt, but its documented offline evaluation service requires Enterprise-tier access. It uses a three-sentence language-detection dataset to introduce the Evaluation SDK, accuracy scoring and results in the terminal and Mistral Studio.

Researched 13 Nov 2026

In short.

This Mistral quickstart is a guide for Python developers starting prompt evaluations, but its documented offline evaluation service is restricted to Enterprise-tier organizations. It connects a labeled dataset, a model-calling task, an accuracy scorer and a passing goal, then describes terminal output and Studio comparisons. The small dataset demonstrates the structure of an evaluation without establishing broader model quality. Costs and exact SDK and model revisions are unknown. Nothing was executed, so installation, API behavior and displayed results remain untested.

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

Coverage includes the complete selected page at [https://docs.mistral.ai/studio/observability/evaluations/quickstart.md], including its Enterprise access restriction, installation commands, Python example, expected output and local-mode note. Linked installation, API-key, evaluation, dataset, evaluator, system-parameter, tracing and online-evaluation pages are excluded. No commands or code were executed, and API behavior, Studio behavior, costs, licensing and linked documentation were not independently assessed.

The overview

Identity

Quickstart: run your first evaluation is a Mistral documentation tutorial for the Evaluation SDK and Studio's offline evaluations feature. Its source address is [https://docs.mistral.ai/studio/observability/evaluations/quickstart.md].

The resource is a worked learning example. It teaches the evaluation structure through language detection rather than supplying a general-purpose benchmark or an independently measured model comparison.

Assessment

The guide is useful for learning how to turn a prompt into a repeatable, scored evaluation. Its complete example connects setup, task execution, scoring, a passing threshold and result inspection.

Its practical value depends on account access: the page says organizations outside the Enterprise tier cannot see Evaluate in Studio and receive a 403 response from the evaluations API. The example's simplicity makes it approachable, but does not establish suitability for production quality decisions.

Users

The guide suits developers who can create a Python project, configure an environment variable and run an asynchronous script. Beginners receive a concrete introduction to datasets, tasks, evaluators and results; experienced developers can examine how model and prompt configuration are separated from task code.

It is especially relevant to teams already using Mistral with Enterprise access. It provides no instructions for users who need a graphical setup without writing code.

Capabilities

The example evaluates each dataset record, assigns a binary accuracy score and applies a passing goal. The documented terminal output includes average, minimum, maximum, standard deviation and count, followed by record scores and verdicts. Using level="generations" also displays model answers.

Studio stores runs under a project and evaluation, displaying scores, statistics and system parameters. Changing the System configuration supports prompt or model comparisons, while repeated runs can show scores over time. The page also documents local=True for iteration without uploading results to Studio.

Using it

Requirements

The stated prerequisites are Python 3.12 or later, uv and a Mistral API key. The project installs mistralai-evaluations and reads the key from the MISTRAL_API_KEY environment variable.

The documented offline evaluations service requires an Enterprise-tier organization. The page does not establish whether local=True works without that entitlement. The supplied task calls the Mistral chat API, so the example requires network access even when Studio uploads are disabled.

Mechanism

Each dataset record contains a sentence and its expected language. An asynchronous task reads the model and system prompt from System.params, sends the sentence to client.chat.complete_async and returns the response content as a string.

The scorer lowercases the expected and returned strings, then awards 1 for equality and 0 otherwise. The evaluator uses Goal.gte(0.8). The evaluation call connects the dataset, task, evaluator, project and system configuration, and saves results to Studio in the default example.

Setup

The documented sequence is to create a project with uv init first-evaluation, enter that directory, install the SDK with uv add mistralai-evaluations and set MISTRAL_API_KEY. Save the supplied Python example as eval.py and run it with uv run eval.py.

The script uses mistral-small-latest and calls run.show(level="records"). The documented Studio location is Evaluate > Evaluations > Offline, under the Language Detection project and Accuracy Eval evaluation. Add local=True to the evaluation call to disable Studio uploads; the model-calling task remains unchanged.

Example

The three test sentences are greetings in English, French and Spanish, with corresponding language names as expected answers. The system prompt asks the model to return only the language name.

By inspection of the scorer, english matches English, while English followed by punctuation or extra whitespace does not. With three equally weighted binary scores, two correct answers average about 0.67; meeting an average accuracy target of 0.8 requires all three answers to match. These are deductions from the example, not observed results.

Assessment & evidence

Limitations

Three simple greetings provide little evidence about language detection across varied text, mixed languages, ambiguous inputs or unsupported languages. Passing this example would not demonstrate general language-detection reliability.

The scorer measures exact answer formatting as well as the language label: it ignores capitalization but does not trim whitespace or accept equivalent wording. The example does not specify sampling settings, pin the SDK version or identify a fixed model revision. Runtime reliability, latency, scaling and reproducibility were not assessed.

Reasoning

Separating the model and prompt into System.params lets developers change those inputs while retaining the same dataset, task and scorer. This makes the example a useful starting structure for controlled comparisons.

The binary scorer makes failures easy to interpret when a single exact label is required. For tasks with multiple acceptable answers, this scoring rule would need reconsideration. A meaningful quality decision also requires representative test cases and a passing threshold justified by the intended use; the tutorial does not provide that justification for 0.8.

Alternatives

Within the documented approach, local=True offers iteration without Studio uploads, while the default configuration provides stored runs and comparisons in Studio. The page does not establish whether local mode changes account requirements or costs.

The page links a separate quickstart for scoring spans with online evaluations. That linked guide is outside this resource's scope, so its implementation and suitability are unknown here. Competing evaluation libraries and services are not assessed.

Evidence

The evidence is the complete Mistral quickstart at [https://docs.mistral.ai/studio/observability/evaluations/quickstart.md]. It supplies prerequisites, installation commands, a complete Python example and descriptions of expected terminal and Studio behavior.

The page supplies no captured execution results, measured performance or comparative benchmark. Nothing was executed for this report. Descriptions of output and service behavior are documentation claims; observations about matching and score arithmetic come from reading the example.

Access & freshness

Costs

Costs are unknown. The page provides no Enterprise subscription price, model token rates, evaluation charges or storage charges.

The task is written to make one chat request per sentence, giving three task-level chat requests for the supplied dataset. Additional SDK requests and actual charges are not established. Setting local=True disables Studio uploads; it does not remove the chat requests in the supplied task.

Rights

The page does not state licensing or redistribution terms for its documentation and sample code, the SDK license, or rights governing model outputs. These remain unknown from this source.

The default example uploads evaluation results to Studio. Data retention, confidentiality commitments and the precise contents of uploaded records are not specified on this page.

Freshness

The supplied page was captured on 13 November 2026. It contains no publication date, last-updated date or SDK version requirement beyond the Python prerequisite.

The installation command leaves mistralai-evaluations unpinned, and the example uses mistral-small-latest without identifying a fixed model revision. Exact dependency and model versions, and changes after the capture date, are unknown.

Actions

Confirm Enterprise access and applicable pricing before following the Studio path. If Studio uploads are unnecessary, consider the documented local=True option and confirm its account requirements; the example still calls the model API.

For a useful evaluation of your own prompt, replace the greetings with representative cases, decide whether exact string matching reflects success and justify the passing threshold. Record dependency versions and model configuration when comparing runs. Treat the tutorial's expected output as guidance until you have observed your own results.

Evidence for this report

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