The advancement of AI comes with consequences, particularly for middle- and lower-income workers, Economic Survey said.