Skip to content

Multi-model · 34.3 MB Combined CPU WASM · 2 Independent Web Workers · Apache-2.0 + Apache-2.0

2-Stage Pipeline: NeuroBERT-NER → MS MARCO MiniLM Reranker

Stage 1 — onnx-community/NeuroBERT-NER-ONNX (10.4 MB q8 WASM, Apache-2.0) extracts 18-class OntoNotes entities from your query and every candidate passage, enabling structured entity-type gating. Stage 2 — built Xenova/ms-marco-MiniLM-L-6-v2 (23.9 MB q8 WASM, Apache-2.0, reusing models/ms-marco-reranker/worker.js) scores each query–passage pair jointly as a cross-encoder to deliver entity-grounded local RAG ranking.

Stage 1 · NeuroBERT-NER (10.4 MB WASM q8)

onnx-community/NeuroBERT-NER-ONNX · token-classification · Apache-2.0

Stage 2 · MS MARCO MiniLM Reranker (23.9 MB WASM q8)

Xenova/ms-marco-MiniLM-L-6-v2 · text-classification · Apache-2.0

1. Entity-Grounded Retrieval & Reranking Controls

Initialise both local WASM models above (34.3 MB combined) to run the 2-stage NER → Reranker pipeline.

2. Ranked Passages (Stage 2 Logits + Stage 1 Inline Entities)

Run both stages to see passages ordered by MS MARCO cross-encoder relevance logit with NeuroBERT-NER entities highlighted inline.

3. Inspect Stage 2 Worker Bridge & Entity-Grounded Ranking

Show the code · neurobert.js — MsMarcoStageClient (reusing models/ms-marco-reranker/worker.js)
Show the code · neurobert-core.mjs — rankEntityGroundedPassages() (NER + cross-encoder fusion)