Skip to content
Janeiro.aiAcquire ↗
Learn

A Multilingual Evaluation Kit You Can Run

Build a small ES, PT-BR and PT-PT acceptance suite using downloadable synthetic cases, an executable smoke runner, severity gates and a review rubric.

Updated 4 min read

A single average score can hide the language where your product fails. This kit gives you a small, inspectable starting point for Spanish, Brazilian Portuguese and European Portuguese, with a runner you can execute locally.

Download the synthetic cases and the zero-dependency smoke runner. Save both files in one folder, then run:

node run-locale-smoke.mjs

The included fixture adapter intentionally contains a critical error so the demonstration exits with status 1. It proves that the gate can fail; it does not evaluate any live language model. For a passing infrastructure demonstration, use:

node run-locale-smoke.mjs --demo-pass

That mode simply returns the supplied fixture expectations. Its success is not evidence of model quality. Replace the adapter with your own authorised test system before making any deployment decision.

Start with a narrow acceptance rule

The download contains nine synthetic cases, three per locale. They cover document-grounded retrieval, a destructive-action refusal and uncertainty handling. The documents are fictional policies supplied within each case. They contain no customer records, real credentials or personal identifiers.

Expected answers describe task behaviour. They are not a representative benchmark of speakers, industries or accents. The Spanish fixtures use an es label; a real product should choose the relevant country variants and have local reviewers author cases. PT-BR and PT-PT are distinct slices, not interchangeable translations.

Unicode CLDR is a reference for locale identifiers and locale-dependent conventions. It does not certify the quality or cultural appropriateness of a generated answer. Human reviewers remain responsible for that part of your rubric.

Inspect what the runner actually checks

Each response is a structured object with a decision, an answer and a source identifier. The runner checks expected decisions and sources, records failures per locale, and exits non-zero when any critical case fails. It also reports a simple answer-content check for the fixture examples.

That string check is deliberately limited. It cannot recognise every correct paraphrase, evaluate tone, establish factual completeness or detect every harmful output. Keep automated schema and action checks separate from human language review. A green smoke run should lead to a deeper evaluation, not replace it.

Use JSON Schema when you formalise the response contract. A syntactically valid object can still contain a wrong decision. The OWASP prompt-injection guidance is relevant to the case where retrieved text tries to instruct the system; the enforcement point must sit outside the model response.

Expand the set with local reviewers

Add a test only when you can explain the failure it is meant to catch. Preserve the input document, expected source version, reviewer, severity and acceptance rule. Change a case when the product contract changes; do not weaken it merely because a new model fails.

Include code-switching, ambiguous dates, unsupported jurisdictions, missing evidence, long input, poor connectivity and requests that cross permission boundaries. For voice workflows, use consented recordings and human transcripts. Do not infer voice quality from these text fixtures.

Report counts alongside rates. One pass in a locale is one pass, not proof of general reliability. A small zero-failure sample can still conceal a high underlying error rate. Keep a separate holdout set so repeated tuning does not turn your release cases into memorised examples.

The nine downloadable cases are public smoke fixtures. Keep their translations, paraphrases and scenario families in the development partition. Before a release comparison, reserve separately reviewed families and record the case-set version and access. When debugging exposes a reserved family, move it to regression coverage and replace it for the next decision. The holdout guide provides the manifest and the per-locale decision rules.

Keep a useful run record

Record the case-set version, model identifier, adapter commit, prompt version, run date and any service settings that affect the result. If a provider exposes stochastic controls, record them; do not claim reproducibility solely because a seed was specified.

Store redacted results and reviewer decisions with the pilot evidence pack. A team should be able to reconstruct why a release passed or was stopped, without copying sensitive production conversations into a public repository.

What to do next

learnevalsspanishportuguesetools

Published by . Original editorial for operators. How this was made