For the past two years, the stock market has been obsessed with the brains of the artificial intelligence (AI) revolution.