Learning resourcesReviewed · Mistral AI

Mistral online evaluations: score your first span

This Mistral tutorial teaches developers to score AI chat calls automatically, but it requires an eligible workspace and its example records message content. It connects a model-based sentiment judge to chat telemetry and shows how to retrieve the resulting label and explanation.

Researched 13 Nov 2026

In short.

This Mistral guide helps developers add automatic sentiment scoring to AI chat calls, but its example needs recorded messages and a qualifying workspace whose full requirements are explained elsewhere. It creates a judge, attaches it to matching chat records, sends an instrumented request and retrieves an evaluation. The page provides concrete implementation examples, while scoring accuracy, active-use costs and runtime behavior remain unassessed.

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/online-evaluations/quickstart.md]. Linked prerequisites, live-evaluation documentation and result-record documentation are excluded. No separate license notices or library files were supplied. The examples were not executed; workspace eligibility, runtime behavior, scoring quality, active-use costs and data-handling terms remain unverified.

The overview

Identity

The resource is Mistral's documentation page titled Quickstart: score your first span with online evaluations, available at [https://docs.mistral.ai/studio/observability/online-evaluations/quickstart.md]. It is a practical tutorial for a feature of Mistral's observability service.

A span is a telemetry record for an operation. Here, it records a chat call and its messages so a separate model can classify the conversation's sentiment.

Assessment

The guide is useful for understanding the complete connection between a scoring prompt, matching chat traffic and a retrievable result. It includes request bodies, the Python instrumentation example, identifiers to retain, cleanup and troubleshooting.

Its usefulness is narrower than a full evaluation strategy: it demonstrates sentiment classification without establishing whether the judge is accurate or whether sentiment measures what a particular application needs.

Users

The tutorial suits developers integrating Mistral chat calls who want an introduction to automatic evaluation of recorded activity. Beginners need familiarity with environment variables, API requests and basic Python; experienced developers get concrete telemetry attributes, variable mappings and result identifiers.

It is less self-contained for readers still establishing workspace access or deciding how conversation content may be recorded, because eligibility details and data-handling policies are not included.

Capabilities

The walkthrough creates an llm_judge scorer with categorical good and bad labels, attaches it to chat spans, captures a conversation and searches for evaluations. The illustrated result contains trace and span identifiers, a timestamp, an evaluation name, a label and an explanation.

Results can also be viewed in AI Studio's live-evaluation page and the span's trace view. The documentation says a score becomes available after a few seconds; this is a documented expectation, not a measured latency guarantee.

Using it

Requirements

The page requires a user API key for a workspace meeting prerequisites on a linked page. Those prerequisites are not included here. Service account keys cannot create live evaluations. The shell steps require curl, and the Python step requires Python 3.12 or later.

The Python example installs mistralai-otel-observability[mistral]. Its judge needs message content on the span, which the example enables through include_content=True. Whether recording those messages is appropriate for a particular application requires information about its data and applicable service terms.

Mechanism

The scorer uses mistral-small-latest to classify a conversation through a prompt template. Its response supplies a scorer slug and latest_version.variables, identifying the template input conversation.

A live evaluation selects spans where gen_ai.operation.name equals chat and maps conversation to the span's formatted transcript. Live evaluations start enabled. Each attached scorer has a pipeline_configs entry whose slug identifies its results through evaluation_name = 'judge:<config-slug>'. The scorer slug and live-evaluation slug cannot substitute for that config slug.

Setup

Set MISTRAL_API_KEY to a user key and MISTRAL_BASE_URL to [https://api.mistral.ai]. The tutorial creates the scorer through [https://api.mistral.ai/v1/observability/scorers], then creates the live evaluation through [https://api.mistral.ai/v1/observability/pipelines]. Retain the scorer slug, pipeline config slug and pipeline ID for their respective later steps.

In Python, configure Mistral observability, wrap the chat call in an operation with content capture enabled, and attach the response and original messages with chat.mistral_completion. The final observability.shutdown call flushes pending telemetry before the program exits.

Example

The example sends the user message I love this! to mistral-large-latest and records the resulting chat operation. The separate sentiment judge receives the recorded conversation through its transcript mapping.

The documentation illustrates a returned good label with an explanation that the user expresses satisfaction. This is example output supplied by the page; it does not establish that the code was executed here or that the judge performs reliably on other conversations.

Assessment & evidence

Limitations

Without gen_ai.input.messages or gen_ai.output.messages, the transcript is empty and the judge's variable remains unset. Other documented causes of missing results include unmatched filters, disabled evaluations or configs, an incorrect result identifier, an unsuitable query window and judge or prompt-rendering errors. Searches default to the last hour.

The page provides no scoring benchmark, throughput measurement or evidence of production suitability. It also states that scorers have no delete endpoint, although the live-evaluation pipeline can be deleted.

Reasoning

The guide's main teaching value is the explicit path from recorded messages to a judge input and then to an identifiable result. This makes it useful for learning the integration mechanics.

A good label represents the classification requested by this sentiment prompt. It does not establish factual correctness, safety or overall application quality. Assessing usefulness for a real application would require representative conversations and agreed evaluation criteria; neither is provided.

Alternatives

The page offers API search and AI Studio views as two ways to inspect the same evaluation results. Developers can retrieve records programmatically or inspect them in the live-evaluation and trace interfaces.

It does not compare competing services, other tutorials or offline evaluation approaches. Comparative capability, cost and migration effort are unknown.

Evidence

The evidence is the complete Mistral quickstart at [https://docs.mistral.ai/studio/observability/online-evaluations/quickstart.md], including its curl requests, Python example, illustrative JSON result, cleanup instructions and troubleshooting table.

It supports descriptions of the documented interface and intended sequence. No commands or code were executed, so successful integration, actual scores, billing behavior and evaluation accuracy remain unverified.

Access & freshness

Costs

The page explicitly says that leaving a scorer in place costs nothing once no live evaluation uses it. It supplies no prices for application model calls, judge calls, telemetry ingestion, storage or active evaluations, so active-use costs are unknown.

The example involves both an application model call and a model-based judge. The statement about an unused scorer does not establish that following the walkthrough is free.

Rights

The page supplies no documentation license, code-sample license or redistribution grant. Permission to redistribute its text or examples is therefore unknown from this evidence.

API service terms and policies governing recorded messages, retention and use for training are also not established by this page.

Freshness

The documentation snapshot was captured on 13 November 2026. The page states no publication or last-updated date. The timestamp inside the example result describes an illustrative evaluation record and does not establish when the documentation changed.

Both model names use latest aliases, and the installation command pins no package version. Exact model and package versions are therefore unspecified, limiting reproducibility across time.

Actions

Before following the guide, confirm the linked workspace prerequisites, active-use pricing and suitability of recording conversation content. Retain the pipeline config slug carefully, because result searches depend on it.

If no score appears, follow the documented checks for message attributes, matching filters, enabled settings, query timing and evaluation-trace errors. When finished, delete the pipeline using its pipeline ID. The scorer remains because the page documents no scorer deletion endpoint.

Evidence for this report

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