The rapid rise of artificial intelligence is forcing every knowledge-based profession to confront a difficult question: what happens when machines…