AI chatbots spew out nonsense too often. But there's a solution: retrieval-augmented generation.