Amazon.com is vertically integrating all the way back to raw materials as it competes in artificial intelligence.