Skip to content
Janeiro.aiAcquire ↗
Pattern

Separate PT-BR and PT-PT Retrieval Contexts

Keep Brazilian and European Portuguese sources, terms and evaluations distinct where a workflow requires it, without claiming locale tags prevent errors.

Updated 2 min read

Treat PT-BR and PT-PT as separate product slices when their sources or acceptance requirements differ. A locale label alone does not prevent factual errors, and translating an answer does not fix an incorrectly selected source.

Keep three fields separate

Record the interface locale, source language and applicable market independently. A Brazilian document can be written in European Portuguese; neither spelling nor an accent determines which policy applies. The application's source metadata and authorisation rules must carry that information.

Unicode CLDR documents locale conventions. Use it for naming and formatting configuration while obtaining language and domain judgments from qualified reviewers.

Test a concrete confusion

Create two fictional policies with similar names but different source IDs. Ask the same question in each locale and require the answer to use the authorised source for that workflow. Then remove that source and check that the system asks for clarification rather than borrowing the other document.

This is a suggested test design, not a reported benchmark. The multilingual kit offers a small runnable scaffold, with clear warnings about its synthetic fixtures and limited automatic checks.

Preserve the evidence

Record source versions and reviewer judgments in the pilot pack. Use retrieval filters to enforce source selection and read the Brazil–Portugal corridor note for the operating questions behind the split.

What to do next

  • Save the acceptance rule, source versions and limits before testing.
  • Use the linked implementation and review tools to record what actually happened.
portugueseragcorridor

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