wild · feature-extraction · Xenova/multi-qa-MiniLM-L6-cos-v1 · WASM q8 · 22.97 MB

The question–answer constellation & retrieval failure lab

Sixteen passages from four topics are projected from 384 dimensions onto their top two principal components. Type a question and watch it land among them, with compass rays to the passages it would retrieve — then try to break it with paraphrases, typos and adversarial rewrites.

1 · Live query compass

Load the model to embed the passages.

Top answer–
Query latency–
PCA variance kept–
Passage index time–
All passages (keyboard / screen-reader list)

    2 · Paraphrase stress tester

    Each suite targets one passage. Honest rewrites (synonyms, word order, typos, slang, keywords) should keep it at rank #1; adversarial rewrites change or hijack the meaning and should drift — that's the model working, not failing. Every row is a fresh embedding.

    Stability (honest rewrites)–
    Mean cos to base–
    Adversarial drifted–
    Batch latency–
    Per-rewrite retrieval result against the target passage
    RewriteTextTop-1 retrievedTarget rankcos to base
    Run a suite to see how stable retrieval is.

    After a run, grey dots on the map show where each rewrite landed relative to the base question (★).

    Show the code — directional arrow-key navigation across the 2-D map
    Show the code — deterministic 384-d → 2-D PCA projection