Microsoft is revamping its Bing search engine and EdgeWebbrowser with artificial intelligence, the company said, signaling its ambition to retake the lead in consumer technology markets where it has fallen behind.