This Python tool extracts _kMDItemPhotoEmbedding vectors from macOS photos and indexes them into FAISS for fast similarity search.
It's a private macOS Spotlight metadata attribute that contains a 256-dimensional float32 embedding (1024 bytes) generated by the Apple Neural Scene Analyzer (ANSA) - a MobileNetV3-based model trained with image-language contrastive learning. This embedding powers features like Visual Look Up and photo categorization.