← All models · LaBSE

Multi-model · feature-extraction → translation · WASM

Retrieve cross-lingually with LaBSE, then translate

Two on-device models composed into the front half of multilingual RAG. First LaBSE finds the passage that best answers your query whatever language it's in. Then, if the winner isn't in English, NLLB-200 translates it so you can actually read it. Language-agnostic retrieval, followed by translation only where it's needed — both private, both local.

1 · Retrieve across languages (LaBSE)

A mixed-language knowledge base. Ask in English; LaBSE ranks every passage by meaning regardless of language.

2 · Translate the winning passage (NLLB-200)

The top hit is passed to NLLB-200 for translation into English. First use downloads the translation model (~900 MB, cached afterwards) — a heavier model than the embedder, so it loads on demand.

Why compose them?

Translating the whole corpus up front is wasteful — most documents will never match a given query. LaBSE embedding is language-agnostic, so you retrieve first across the entire multilingual corpus, then spend the expensive translation pass only on the handful of passages a user actually lands on. It's the same shape as production multilingual search: a fast, shared-space retriever followed by a precise, heavier step — here, both running privately on-device.

← Back to LaBSE · See NLLB-200 on its own →