Prevent Hallucinations in Generative AI