RAG & Retrieval·Question 36 of 100Intermediate

Your corpus is multilingual and users query in several languages. What breaks, and how do you fix it?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

The core failure is that cross-lingual retrieval, where the query language differs from the document language, degrades sharply compared with same-language retrieval. Reported drops vary a lot by model and language pair, but the direction is consistent and the magnitude is large enough to be a product problem, not a rounding error.

Full worked answer

The core failure is that cross-lingual retrieval, where the query language differs from the document language, degrades sharply compared with same-language retrieval. Reported drops vary a lot by model and language pair, but the direction is consistent and the magnitude is large enough to be a product problem, not a rounding error.

What breaks specifically:

Weak embedding-space alignment. A multilingual embedder is supposed to place 'dog' and 'chien' at the same point. In practice alignment is decent for high-resource European pairs and poor for low-resource languages and distant scripts, because training data is overwhelmingly English.

Language bias in the ranked list. Multilingual systems tend to favour documents in one language, often English or the query language, so a better-matching document in another language gets buried. Your top-k silently becomes monolingual.

BM25 does not cross languages at all. Your lexical leg is dead weight on cross-lingual queries, which quietly halves your hybrid system.

Analyzer assumptions collapse. Whitespace tokenization fails for Chinese and Japanese, stemming is wrong per language, and German compounds need decompounding.

What I would actually do:

  1. Detect language per document at ingest and per query, and store it as metadata. You need it for everything else.
  2. Pick a genuinely multilingual embedder and evaluate it on your language pairs, not on an aggregate leaderboard score. Aggregate multilingual scores hide per-pair collapse.
  3. Translate the query, not the corpus. Fan out: retrieve with the original query and with translations into each corpus language, fuse by RRF. Query translation is one cheap call; corpus translation multiplies index size and re-runs on every document change.
  4. Use a multilingual reranker. This is the highest-leverage single fix, because the cross-encoder sees both texts jointly and repairs a lot of first-stage misalignment.
  5. Constrain generation language explicitly. Answer in the user's language even when every source is in another one, and say what language the sources were in.

Evaluate per language pair. An aggregate number will look fine while Japanese-to-English is broken.

What a good answer covers

  • The core failure is that cross-lingual retrieval, where the query language differs from the document…
  • Reported drops vary a lot by model and language pair, but the direction is consistent and the magnitude…
  • A multilingual embedder is supposed to place 'dog' and 'chien' at the same point
  • In practice alignment is decent for high-resource European pairs and poor for low-resource languages and…
  • Multilingual systems tend to favour documents in one language, often English or the query language, so a…

Key terms: Weak embedding-space alignment · Analyzer assumptions collapse · Detect language · Pick a genuinely multilingual embedder · Use a multilingual reranker · Constrain generation language explicitly

Interviewer follow-ups to expect

  1. Why translate the query rather than the corpus, and when would you flip that decision?

  2. How would you build an evaluation set for cross-lingual retrieval without native speakers for every language?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep