Semantic photo search, fully on-device: the photo library is indexed with CLIP image embeddings (Neural Engine, ~4 ms per photo), and free-text queries like “red bike at the beach” rank photos by cosine similarity.
Built on CoreAIKitVision — the whole ML surface of this app is
encoder.encode(image:) / encoder.encode(text:).
xcodegen generate
open PhotoSearch.xcodeproj
Run on an iPhone (photo library + Neural Engine). First launch downloads the CLIP bundle (~290 MB) from the Hugging Face Hub, then indexes the library once; embeddings persist under Application Support, so later launches only index new photos.