It’s been a tumultuous 12 months for Alibaba, casting doubt on the future of the tech giant just as artificial intelligence is taking off.