feature-extraction · 1024-d [CLS] AnglE · 337.70 MB WASM q8 · MIT

UAE-Large-V1 — Universal AnglE Embedding

Angle-optimized 24-layer, 16-head BertModel (WhereIsAI/UAE-Large-V1) mapping queries and passages into 1024-d [CLS]-pooled unit vectors in 337.70 MB (q8 CPU WASM via shared ../../lib/webai.js on @huggingface/transformers@3.7.5).

Model Card & Runtime Contract

Upstream Model
WhereIsAI/UAE-Large-V1
Loaded ONNX Repo
Xenova/UAE-Large-V1
Task & Pooling
feature-extraction · pooling: "cls" (1_Pooling/config.json)
Backend & Quant
WASM · q8 (336.98 MB ONNX + 0.71 MB tok/cfg = 337.70 MB)
Architecture
24L · 16H · 1024-d · 4,096 FFN · 30,522 WordPiece · 512 max_pos
Retrieval Prompt & License
Prompts.C query prefix · MIT
Important Model-Card Contract (1_Pooling/config.json & Prompts.C): Unlike mean-pooled MiniLM/BGE-small models, WhereIsAI/UAE-Large-V1 configures pooling_mode_cls_token: true and pooling_mode_mean_tokens: false over its 24-layer 1024-d hidden state. For asymmetric retrieval, prepend "Represent this sentence for searching relevant passages: " to queries only—never to passages.

Load & Cache Status

Live Retrieval Scorer & Similarity Matrix

Drop, paste, or upload a .txt, .md, .csv, or .json list of candidate passages.

Ranked Passage Retrieval

Load the model to embed and rank all passages locally.

    2D PCA Semantic Constellation

    Diamond marks the query vector; dashed rays connect top-3 closest passages.

    See Inside the Model (1024-d [CLS] Tensor & WordPiece Telemetry)

    1024-d Embedding Sparkline & Distribution

    Run inference to inspect live 1024-d coordinate min, max, mean, std, and L2 norm.

    Pairwise Cosine Heatmap (Query + Passages)

    Live WordPiece Tokenization & 512-Token Limit Audit

    Inspects real WordPiece IDs ([CLS] 101, [SEP] 102, [UNK] 100) including the Prompts.C prefix when active.

    Per-text WordPiece token count, [UNK] count, L2 norm, cosine, Euclidean distance, and angle
    ID Tokens [UNK] Window Norm Cosine (Angle)
    Awaiting live inference…

    Why It Matters & API Usage

    Universal AnglE Embeddings optimize complex-plane angular separation during training so high-similarity pairs avoid cosine gradient saturation. With 24 Transformer layers and 1024 dimensions, you can build private browser knowledge-base search, asymmetric Q&A matching, duplicate triage, or Stage-1 dense recall paired with a cross-encoder reranker—all offline once cached.

    Show the code: Off-main-thread feature-extraction + [CLS] pooling (worker.js)
    Show the code: FIFO UaeLargeEngine lifecycle & dispose client (uae-client.js)