Identifier changes during translation
Detect: The retrieved component differs from the requested code.
Recover: Protect identifiers and compare them before search.
Retrieve evidence across languages using evaluated multilingual representations or translation paths while preserving source meaning and access scope.
Cross-lingual retrieval lets a query in one language find relevant documents written in another. A multilingual embedding model can place supported languages in a shared space; an alternative translates the query or documents before retrieval. These strategies differ in cost, coverage, and vulnerability to mistranslated terminology.
Language support is not binary. Quality varies by language pair, script, domain, and document style. Product names, legal terms, units, and abbreviations often require exact preservation. Retrieval, reranking, answer generation, and citation rendering must all be evaluated across the languages actually used, not inferred from an English benchmark.
A prototype builds a bilingual evaluation set with native-reviewed relevance labels.
Production records source language, preserves original text, and uses terminology dictionaries where translation is required.
Enterprise scale monitors low-resource language slices, model-version drift, regional permissions, and translation costs separately from generation costs.
Identifies likely languages and mixed-language inputs without forcing uncertain classification.
Embeds queries and documents in a compatible evaluated representation.
Provides an optional controlled path with terminology and identity preservation.
Orders retrieved evidence using supported language-pair evaluation.
Links original sources and labels translated excerpts clearly.
flowchart LR
Q["Spanish service question"] --> M["Multilingual query encoder"]
Q --> T["Controlled query translation"]
M --> V["Multilingual passage index"]
T --> L["Source-language lexical search"]
V --> F["Fuse and rerank"]
L --> F
F --> A["Spanish answer with original citations"]Determine query language, desired answer language, and permitted source languages.
Extract identifiers, numbers, and domain terms that must survive transformation.
Use shared embeddings, translated queries, or a measured combination.
Apply the same authorization and temporal constraints regardless of language.
Rerank with a compatible model and verify critical terminology in original sources.
Respond in the requested language while retaining original citations and marking translations.
Automotive · Illustrative enterprise scenario, not a reported customer outcome.
A vehicle manufacturer supports technicians who ask in Spanish while some engineering bulletins are published first in German.
English-centric retrieval misses relevant bulletins or mistranslates component identifiers.
Find authoritative cross-language evidence and preserve exact part numbers and applicability.
A multilingual index combines original bulletins with a controlled terminology dictionary and language-tested reranking.
If a critical technical term remains ambiguous, the assistant shows the source phrase and routes the interpretation for specialist review.
Measure retrieval recall and terminology accuracy per language pair; a single multilingual average can conceal an unusable regional experience.
| Decision | Benefit | Cost |
|---|---|---|
| Shared multilingual embeddings | Avoid translation on every lookup. | May perform unevenly across languages and domains. |
| Query translation | Can reuse strong source-language retrieval. | Adds latency and semantic-drift risk. |
| Original-source citations | Preserve auditability. | Users may need translated excerpts to interpret them. |
Detect: The retrieved component differs from the requested code.
Recover: Protect identifiers and compare them before search.
Detect: Relevant cross-language candidates fall in rank.
Recover: Use a validated multilingual scorer or a tested fallback.
Evaluate actual language pairs and domain slices.
Store originals and link translations by version.
Carry the same trusted scope through every path.