← All models Β· Jina v2

Multi-model Β· feature-extraction + reranking Β· WASM

Retrieve with Jina, rerank with a cross-encoder

The standard two-stage retrieval pattern, both stages on-device. Stage 1: Jina embeds the query and every passage and ranks them by cosine β€” fast, and it reads whole documents. Stage 2: the MS MARCO cross-encoder re-reads the top candidates with the query, together, and re-scores them. Embeddings cast a wide net cheaply; the reranker judges precisely. Watch the order change between the two.

Two-stage search

Stage 1 β€” Jina retrieval (cosine)

Stage 2 β€” cross-encoder rerank

Why two stages?

A bi-encoder (Jina) embeds query and passages separately, so retrieval is just a dot product β€” cheap enough to scan a whole corpus, and Jina's long context means each passage is embedded in full. But separate encoding can miss fine-grained relevance. A cross-encoder reads the query and a passage together in one pass, capturing interactions a dot product can't β€” far more accurate, but too slow to run over everything. So you retrieve a shortlist with Jina, then rerank just those few. The ordering often shifts: keyword-ish matches that ranked high on cosine drop when the reranker reads them closely.

Keep exploring

← Basics

One cosine number for two passages.

Practical β†’

Long-document search & dedup.

Wild β†’

Cluster passages into themes.