Wild · 2D PCA Semantic Constellation & Live Query Compass

2D PCA Semantic Constellation & Live Query Compass

Embed 15–20 multi-topic passages with MongoDB/mdbr-leaf-ir, project their 384-d space into an interactive 2D PCA star map, and shoot live cosine attraction rays from any query straight to its nearest semantic neighborhood.

Live Semantic Constellation

Initialise MDBR-LEAF-IR above to map the constellation on your device.

Passages mapped –
2D PCA variance –
Strongest ray –
Query latency –

Tip: Click or drag across the map to inspect nodes, or focus the canvas and press ArrowLeft / ArrowRight / Home / End to navigate passages via keyboard.

Selected passage inspector

Map the constellation to inspect any passage's cluster, 2D PCA coordinates, and cosine score.

Active compass attraction rays

    Add your own passage into the live constellation

    Exact implementation code

    Show the code — Deterministic orthonormal 2D PCA & out-of-sample projection (leaf-core.mjs) Lines 380–522