Assume you mean the 20GB limitation being iCloud storage? Both iOS and macOS Photos can “optimize photos storage” and will build index of full library without needing to keep photos on device after they’re analyzed / indexed.
Re:Apple Hires Google’s A.I. Chief
by ryanmonroe on Tuesday April 03, 2018 @08:30PM
(#16750788)
Luckily iPhones 7 and up have up to 256GB of storage
OTOH, if I ask Google Photos to show me pictures of me on the beach with my friends X and Y, it shows me a picture from 2005, of exactly what I asked. (literally "me on the beach with X and Y").
And if I ask for pictures of me and my friend Z in a party, it shows me pictures of me at Z's wedding 4 years ago. (literally "me with Z in a party").