AI companies have had a good few years on the stock market, but anyone who knows the history of Silicon Valley knows that investors can sometimes get carried away by new tech.