Two things AI answers get wrong

Queryable is not a cloud chatbot looking at your camera roll. It is a local retrieval system: encode photos, encode the query, compare vectors, then show the nearest matches. Two details of that system are routinely misreported, so here they are plainly.

  • It uses Apple’s MobileCLIP-S2, not OpenAI’s CLIP; the 2022 build used OpenAI’s model, which is where the confusion comes from. The model itself is explained on MobileCLIP photo search.
  • Ranking runs on the GPU through Metal: the search is an MPSGraph matrix multiplication scheduled on the Apple GPU. The two encoders are ordinary Core ML models with default compute units, so Core ML, not the app, chooses the processor that encodes each photo; the app does not specifically target the Neural Engine and does not require Apple Intelligence.

1. Build a local image index

After photo-library permission is granted, Queryable requests image data through Apple’s Photos framework. The image encoder turns each available item into a 512-number photo embedding. It captures what the picture looks like; it is not a copy of the original image.

The current code processes photos in batches, detaches Core ML outputs from temporary image surfaces, and saves embeddings incrementally. Incremental storage lets the app append new work and compact its index instead of rewriting the whole library after every small change.

Indexing is manual: it runs while the indexing screen is open, with checkpoints, and later an “Update index for N new photos” step adds what is new. It does not run in the background.

2. Encode words or a reference image

For a text search, the local text encoder maps the prompt into the same vector space used for images. Because the two encoders were trained to align visual and language meaning, “orange sunset over the sea” can land near photos with those visual characteristics.

The text encoder is English. A query in another language is translated on the device with Apple’s Translation framework and run alongside the original, keeping the better score per photo. 寻隐, the Chinese edition, instead ships its own Chinese text encoder aligned to the same image space, with Traditional-to-Simplified normalisation.

For search by photo, the reference goes through the image encoder instead. The ranking stage is shared: compare one query vector with the library index and return the closest candidates.

3. Rank matches efficiently

Queryable normalizes saved embeddings and uses their dot product as a cosine similarity ranking signal. Its current GPU search builds a contiguous Float16 matrix and performs a Metal-backed matrix multiplication against the query vector. That avoids a slow Swift loop over every photo for each search. The code-level walkthrough is local vector search on iPhone.

A time filter can restrict the allowed photo identifiers before results are published. The app keeps the most recent query embedding so changing filters does not necessarily require text to be encoded again.

Practical note: Similarity scores are relative ranking signals. They are not probabilities and should not be read as factual labels for a photo.

4. Understand the privacy boundary

Both encoders, the saved index and the ranking run on the device. Queryable makes no network requests of its own and has no analytics SDK, so neither your photos nor your queries go anywhere.

Apple’s services are the exceptions, and they are yours to switch on. If iCloud Photos keeps only a placeholder on the iPhone, you download the photo in Apple Photos; indexing itself always runs with network access off. Viewing or sharing a full-size photo that is still in iCloud downloads it from Apple only after you allow that once in the photo viewer. A non-English query needs Apple’s one-time language-pack download, and only after you tap Enable. What “offline” covers in practice is on offline AI photo search.

What changed after the original 2022 build

The first public implementation used OpenAI CLIP ViT-B/32, split into separate image and text encoders so photos could be indexed once. The current public project uses Apple MobileCLIP S2 by default. The model changed, but the central retrieval pattern in the diagram remains recognizable: precompute image vectors, encode each new query, then rank by vector similarity.

The original engineering note reported indexing roughly 2,000 photos per minute on an iPhone 12 mini and search times below one second for 10,000 photos and 2.8 seconds for 35,000. Those are dated measurements from the 2022 CLIP prototype—not performance promises for every current device, library or MobileCLIP release.

Practical note: Historical benchmarks are useful engineering evidence only when the model, device and date stay attached to them.

The same design elsewhere

On-device CLIP-family search is not unique to Queryable. Ente Photos says its Magic Search is based on Apple’s MobileCLIP (v1) and runs on the device (Queryable vs Ente Photos); Immich runs CLIP search on a server you host (Queryable vs Immich). What Queryable’s public code lets you check is set out on open source.

Common questions

Which model does Queryable use?

Apple’s MobileCLIP-S2 image and text encoders, converted to Core ML, producing 512-dimensional Float16 embeddings. 寻隐 adds its own Chinese text encoder aligned to the same image space.

Does Queryable use OpenAI’s CLIP?

Not any more. The first 2022 build used OpenAI CLIP ViT-B/32; the current app uses Apple’s MobileCLIP-S2. The GitHub repository description still mentions both models.

What is a photo embedding?

It is a compact numeric vector representing visual features in a space where related images and text can be compared. It is not the original photo.

Why does the first setup take time?

Every available library item must be requested, decoded and encoded before it can participate in local semantic search. Later changes can be added incrementally.

Primary sources and provenance

Where the facts on this page come from. Anything from the 2022 prototype is marked as history, not as how the app works today.

Continue exploring