Baidu was among the first big Chinese companies to invest heavily in AI following the 2022 debut of OpenAI's ChatGPT. However, its Ernie large language model has struggled to gain widespread adoption.