Likeness Grid
Drag a photo and the ones most like it gather round and follow, the closest the tightest. Let go and everything springs home.
Needs: One embedding per item, any model (CLIP, your own). The preview reads them with CLIP ViT-B/32 in the browser, downloaded once and cached.
Customize
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| items | { id: string; src: string; alt?: string; embedding?: ArrayLike<number> }[] | required | The photos. Embeddings are compared by cosine similarity; alt is read out and used to announce neighbours. |
| columns | number | 4 | Grid columns. |
| gap | number | 10 | Space between photos, px. |
| className | string | – | Class on the grid. |
| style | CSSProperties | – | Style on the grid, e.g. --mlui-radius for tile corners or --mlui-surface for what faded tiles fade into. |