For the past few years, investing in artificial intelligence has largely meant buying a handful of companies that sit underneath it.