The artificial intelligence gold rush has caused blistering returns for many tech stocks, including Palantir Technologies.