WebAI Studio
Back to Demos

Cluster & Label

Embeddings

Group raw user feedback into themes with k-means over embeddings, then let the Prompt API name each cluster.

Why On-Device?

Topic discovery over private feedback, notes, or tickets happens entirely locally — the embeddings power the math, the Prompt API writes the labels.

Interactive Demo

Semantic Embedder: Loading...
Prompt API: Loading...
Raw Feedback 24 items, one per line
Clusters (k)
Semantic Map

Each item becomes a point in embedding space, projected to 2D. Similar feedback lands close together.

Implementation Code

demo.js