@Neiluj very valid points! +1 for Piwigo as well.
I scoured through their documentation to see what is written about data privacy. They do say that no data is sent over in a couple of places and their intention is not to make money but provide a platform for private use, etc. The AI is also done on the device as far as I understand. You are right, I don't think the code itself is opensource though.
This app is really feature rich. However, my first preference is Photoprism as well. May be others can add their views here...