David Luan, the head of Amazon's artificial general intelligence lab, announced on Tuesday that he will be departing the company at the end of the week.