Multi-model · feature-extraction → translation · WASM
The front half of production multilingual RAG, made of two on-device models. First BGE-M3 finds the passage that best answers your query whatever language it's in, embedding whole passages in its 1024-d space. Then, if the winner isn't in your language, M2M100 translates it so you can read it. Language-agnostic retrieval first, expensive translation only where it's needed.
A mixed-language knowledge base of long passages. Ask in English; BGE-M3 ranks every passage by meaning regardless of language.
The top hit is passed to M2M100 for translation into English. First use downloads the translation model (~500 MB, cached afterwards) — it loads on demand.
Translating the whole corpus up front is wasteful — most documents will never match a given query. BGE-M3 embeds cheaply and language-agnostically, so you retrieve first across the entire multilingual corpus, then spend the heavier translation pass only on the passage a user actually lands on. It's the exact shape of production multilingual search — a strong shared-space retriever followed by a precise, heavier step — here both running privately on-device. (Two big models: ~570 MB + ~500 MB, cached after first load.)
← Wild · Back to BGE-M3 · Compare: cross-lingual reranking →