Multi-model · Ruri v3 30M (43.78 MB q8) → Opus-MT JA→EN (108.71 MB q8) · ~152.49 MB · Apache-2.0

Japanese Knowledge Retrieval → Neural JA→EN Translation

Stage 1 (onnx-community/ruri-v3-30m-ONNX, 43.78 MB WASM q8, Apache-2.0) embeds your query and Japanese corpus off-thread to shortlist the top-K passages. Stage 2 (Xenova/opus-mt-ja-en, 108.71 MB WASM q8, Apache-2.0, reusing ../../opus-mt-ja-en/worker.js) translates only the shortlisted hits into English.

1 · Two Independent On-Device Models (~152.49 MB Total)

Stage 1 · Ruri v3 30M Bi-Encoder (43.78 MB WASM q8)

cl-nagoya/ruri-v3-30m → onnx-community/ruri-v3-30m-ONNX · Apache-2.0

Stage 2 · Opus-MT JA→EN Translator (108.71 MB WASM q8)

Helsinki-NLP/opus-mt-ja-en → Xenova/opus-mt-ja-en (reusing ../../opus-mt-ja-en/worker.js) · Apache-2.0

2 · Japanese Corpus Search & Shortlist Translation

Curated Japanese corpus presets (or upload / drop / paste)
Drop a Japanese .txt, .md, .csv, or .json corpus, paste with Ctrl/Cmd+V, or upload:
Stage 1 top hit—
Shortlist size—
Stage 1 / Stage 2 ms—
Translated tokens—
NaN count—

3 · Shortlisted Passages & Live English Translations

Stage 1 Ruri v3 cosine shortlist and Stage 2 Opus-MT JA to EN translations
Rank Passage Ruri Cosine Japanese Source (Stage 1) English Translation (Stage 2)
Initialise both models above and run the pipeline to retrieve and translate top Japanese hits.

4 · Inspect Multi-Model Worker Reuse

Show the code — OpusMtStageClient reusing ../../opus-mt-ja-en/worker.js