The valuations of artificial intelligence (AI) companies are surging, but their growth is more than just hype.