Investor excitement around artificial intelligence (AI) has been sky-high over the past year, lifting a wide range of stocks.