Similar, in the way you mean.
same.lens is a visual search engine in the spirit of same.energy. Open any image and search from it, or search in words, and it finds images like it across every source. Then pick a lens, and the results become images like it in one particular way: the same color, the same garment, the same person, the same kind of screen.
Why lenses
An image embedding packs everything about a picture into one vector: subject, palette, composition, medium, mood. Nearest neighbors in that space are similar in all of those at once, which is rarely what you want. A dark login screen sits next to other screens from the same app, when you were after other login screens, or other dark interfaces.
A concept lens keeps only the part of the embedding that is about one concept, and ranks by that. It implements Jasper Lu's Exploring Similarity Search with Prompted Subspaces.
How a lens is made
- Write prompts that span the concept, like
an image dominated by {x}for 34 colors, and embed them with the same model as the images. - Find the directions along which those prompts differ: the principal axes of their embeddings.
- Keep the strongest of those axes. They span the concept's subspace.
- Project every image onto that subspace, renormalize, and rank by cosine similarity. Whatever the embedding encodes outside the concept is ignored.
The same prompts give each lens a reading of your query: under the dress color lens, a green gown looks like "emerald green 38%, mint green 35%". To match on two things at once, say subject and color, pick one lens and press the + on another: results then rank by how close they are through both, and a slider beside each lens sets how much it counts. With Build a lens you can make your own: describe what "similar" should mean, like "the kind of neckline", and a language model (Claude) writes the prompts, or write a template and a list of classes yourself. Lenses written this way haven't been evaluated like the presets, so treat them as a sketch. Everything is embedded with Gemini Embedding 2, and text and image queries land in the same space.
Feature lenses
The Midjourney source has a second kind of lens, after latent.domains' nearest-neighbour explorer. A feature lens uses no prompts: it compares something measured from each image itself. Hue, Saturation and Brightness compare color histograms. Palette matches each image's five main colors. Texture compares grain and pattern in 16 patches, wherever they fall. Shape looks only at outlines. ResNet and SigLIP are two other neural networks' views of the image. These lenses read a query that is an image of that source, and rank within it. Its Neighbours view sets the image in the middle of the 300 nearest to it: drag to move around, and click any neighbour to open it, then search from it to put it in the middle.
Sources and their lenses
Loading the sources…
Does it work?
The image lenses were checked against plain search on the full embedding, by the share of the top 10 results that match the query on the lens's concept: a blind Claude judge decided for most lenses, and the source's own labels where they exist. Some examples:
- Under the celebrity lens, 73% of the top 10 show the same person, against 58% without it.
- Under the designer lens, 69% of the top 10 come from the same house (in other shows), against 50%.
- The dress style and dress color lenses each lift precision by a quarter of the top 10, and UI color by a fifth.
Not every lens wins. Fashion lenses that didn't beat plain search (jewelry, shoes, hairstyle, makeup, archival references) were left out. The art style lens on LAION Pop XL ranks a little worse than plain search and stays, because it reproduces the original post.
Credits
- The method: Jasper Lu, Exploring Similarity Search with Prompted Subspaces. The idea of the interface: same.energy.
- UI designs: screenshots from the Figma2Code dataset of Figma Community files.
- LAION Pop XL: a 107k-image sample of LAION Pop, with unsafe images filtered out.
- Runway & red carpet: runway looks from Vogue Runway, via the vogue-runway-top15 dataset; red-carpet photos from Wikimedia Commons, each under the license and credit on its Commons page, linked from the image.
- Midjourney: images from four datasets: the Midjourney Images & Prompt set on Kaggle; midjourney-niji-1m-llavanext (CC BY-SA 4.0; images resized), whose items show the prompt typed on Discord; midjourney-v6-llava; and a3xrfgb/MidJourney, images saved from Midjourney's explore page in late 2026. Its feature lenses and the Neighbours view follow latent.domains' nearest-neighbour explorer. Each image has a content rating from an automatic tagger. Those rated questionable or explicit are hidden unless you sign in and turn on Show restricted content in your account menu.
- Embeddings: Google's Gemini Embedding 2. Built by DJRHails.
- Privacy: what signing in stores, and how to delete it.