Nextcloud has some neural network integrations so implementing something like that might be possible. The Memories app can already use the Recognize app for the smart tags for Photos.
Combining it with "The Search Page" app makes it a quite comfortable experience as is.