← All questions
Retrieval & EmbeddingsVery Hard· Cross-lingual Retrieval· System Design· Inference Latency

Your teammate wants to machine-translate all 20M docume...

The primary constraint is that the query cannot be translated online due to the 150 ms latency budget. By translating the corpus offline and indexing both versions in a shared space, you gain the high quality of an English retriever while keeping the original documents for legal citations. This design avoids the translation hop at query time, keeping latency low at the cost of a larger index.

Code playground (Python)