News from China upset U.S. markets this week and disrupted the frenzy that had built up around artificial intelligence.