If you’re investing in the AI theme for the long haul, here’s how to pick the winners