Generative artificial intelligence has a reliability problem. Here’s how investors can gain confidence in portfolios that deploy the technology.