Skip to content
WebAI

search-rag / reranker

Reranker

Scores a query against each candidate document as a pair, which is more accurate than comparing embeddings but costs one forward pass per candidate. In a browser that cost is the whole design constraint: rerank the top 20 from a vector search, not the whole corpus.

3 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

MS MARCO MiniLM Cross-Encoder

Cross-encoder reranker trained on MS MARCO.

Tasks: Reranker

ModelTransformers.js

q8: 22.1 MiB

q4f16: 28.9 MiB

fp16: 43.5 MiB

fp32: 86.8 MiB

Code license: Apache-2.0

Weight license: Apache-2.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/ms-marco-MiniLM-L-6-v2
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Apache-2.0
Legacy license label (unverified)
Apache-2.0

Deployment variants

q8
Download size: 22.1 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: a09144355adeed5f58c8ed011d209bf8ee5a1fec
Weight artifact ↗
q4f16
Download size: 28.9 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: a09144355adeed5f58c8ed011d209bf8ee5a1fec
Weight artifact ↗
fp16
Download size: 43.5 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: a09144355adeed5f58c8ed011d209bf8ee5a1fec
Weight artifact ↗
fp32
Download size: 86.8 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: a09144355adeed5f58c8ed011d209bf8ee5a1fec
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

BGE Reranker Base

BAAI BGE reranker — strong out-of-the-box reranker.

Tasks: Reranker

ModelTransformers.js

q8: 266.4 MiB

q4f16: 414.2 MiB

fp16: 530.7 MiB

fp32: 1060.9 MiB

Code license: Apache-2.0

Weight license: MIT

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/bge-reranker-base
Natural languages
English, Chinese
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
MIT
Legacy license label (unverified)
MIT

Deployment variants

q8
Download size: 266.4 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 280bcc27a84e0b898c251e06fddb25171bd9b101
Weight artifact ↗
q4f16
Download size: 414.2 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 280bcc27a84e0b898c251e06fddb25171bd9b101
Weight artifact ↗
fp16
Download size: 530.7 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 280bcc27a84e0b898c251e06fddb25171bd9b101
Weight artifact ↗
fp32
Download size: 1060.9 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 280bcc27a84e0b898c251e06fddb25171bd9b101
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Cohere Rerank (ONNX)

ONNX port of a Cohere-style reranker for client-side use.

Identity unresolved — exclude from model selection until verified.

Tasks: Reranker

ModelONNX Runtime Web

Download size: Historical estimate: ~280 MB (unverified)

Code license: MIT

Weight license: Not verified

Browser support unverified

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Not verified
Natural languages
English
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
onnxruntime-web@1.30.0
Execution backend
Not verified
Code license
MIT
Weight license
Not verified
Legacy license label (unverified)
CC-BY-4.0

Deployment variants

Unspecified variant
Download size: Historical estimate: ~280 MB (unverified)
Peak runtime memory: Not measured
Quantization / precision: Not verified
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Reranker

Reranker under Search & RAG holds 3 catalogue entries: 3 models.

2 of them carry browser evidence, all from upstream browser examples. Another 1 are still waiting for verification.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers.js and ONNX Runtime Web, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
3 in total
Main runtime
Transformers.js and ONNX Runtime Web
Smallest known weights
22.1 MiB
Browser evidence
2 of 3 verified

Reranker: common questions

Can Reranker run directly in a browser?
Yes. 2 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Reranker?
We verified the weight file sizes of 2 entries in this task; the smallest tier is 22.1 MiB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
Which devices suit Reranker?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Search & RAG models →

Read next

All posts →