How can I seamlessly switch power supplies?
Connect a relay to the solar panel. When there is enough voltage, the relay will flip and power will be provided by the panel.

As said above, regulate the voltage to 5V before it enters RPi but it seems that you are already doing that.