How the Search Works

All 70,654 illustrations in the corpus are encoded with SigLIP 2 (google/siglip2-base-patch16-224). Each illustration is represented by a normalized 768-dimensional embedding vector in a shared multimodal space aligning visual and textual representations.

The explorer runs entirely in the browser, requiring no external compute server or API key.

Instant Filtering and Visual Similarity

  • Browse by periodical and period: the catalogue (catalogue.json) lets you filter all 70,654 illustrations instantaneously by periodical and year range (1968–2002) without loading the neural network.
  • "Find visually similar images (instant)": from any illustration's detail view, a single click retrieves its precomputed 768-d vector from the local shards and ranks the closest images across the corpus (or active filter selection) by cosine similarity.

Three Local Multimodal Search Modes (Transformers.js / WebAssembly)

The search bar supports three query modes computed inside a dedicated Web Worker (encoder-worker.js):

  1. Text → Image (text query or thematic pills): encodes your text prompt into a 768-d vector using the quantized SiglipTextModel (q8).
  2. Image → Image ("📷 Attach an image" button or drag-and-drop an external image onto the search bar): encodes any image file using the quantized SiglipVisionModel (q8) to find visually similar illustrations across the five periodicals.
  3. Text + Image (Multimodal Fusion): when you attach an image (either an external image or a corpus illustration via "Use in search bar") and enter a text prompt, the worker computes both normalized vectors and blends them according to the Fusion balance slider ($\alpha \cdot v_{\text{text}} + (1 - \alpha) \cdot v_{\text{image}}$, 50% / 50% by default), then re-normalizes the resulting query vector.

At each step: * Unified One-Time Model Load: on your first neural search, a confirmation dialog details the complete SigLIP 2 package (~434 MB total: 283 MB q8 text encoder, 95 MB q8 vision encoder, 34 MB tokenizer, and 22 MB WebAssembly runtime). Once confirmed, both encoders stay in memory so you can switch seamlessly between Text, Image, and Text + Image queries without re-downloading. * Sharded In-Memory Vector Search: a second Web Worker (search-worker.js) scans the 283 vector shards (vectors/0000.f16 to 0282.f16, 250 images per shard in little-endian float16, ~108 MB total for all five periodicals). Shards are cached in RAM after the first pass and shards excluded by active filters are skipped automatically.

Reading the Results

Vector similarity (dot product between L2-normalized vectors) is a heuristic for visual and semantic exploration—not a probability, a definitive classification, or a historical measurement:

  • The top 100 closest illustrations are always returned and ranked, even when a queried motif is rare or absent in the selected period.
  • siglip2-base-patch16-224 achieves its best accuracy with descriptive queries in English (e.g., nuclear power plant, a tractor in a field, woodcut illustration, bicycle, geodesic dome).
  • Similarity scores should always be interpreted alongside the images themselves and their original page context via the online archive links.