WebAI Studio
Back to Demos

Hot or Cold

Embeddings

Guess the secret word: every guess is embedded on-device and scored by how semantically close it lands.

Why On-Device?

A whole word game with zero backend: scoring is a local cosine similarity, so it is instant, free to run, and works offline.

Interactive Demo

Semantic Embedder: Loading...
A secret word is picked and embedded locally. Guess it by getting semantically closer.
0 guesses
Guesses, Closest First

Start a game to begin guessing.

How It Works
  1. A secret word is picked and embedded once, on-device.
  2. Every guess is embedded locally and compared with cosine similarity — no server ever sees your guesses.
  3. The temperature tells you how semantically close you are: "ocean" is scorching for "submarine", "banana" is freezing.
  4. Think in meaning, not spelling — related concepts, categories, and contexts score high.

Implementation Code

demo.js