The company is seeking to reposition itself from a heavy reliance on the search-engine business toward technologies used in AI