How do you detect and mitigate hallucinations in production?

Technical