Explain it simpler
Testing a generative AI app is harder than marking a math test, because there are many good ways to answer most questions. So instead of checking for one right answer, you check several qualities. Groundedness asks whether the answer sticks to the facts in the documents it was given, or makes things up. Relevance asks whether it actually answers the question. Coherence asks whether it is well organized, and fluency whether the language reads naturally. Safety checks look for harmful content. Often another AI model does the scoring, with people double-checking. Red teaming means people deliberately try to break the app, like a fire drill, so problems are found before real users find them.
The benefits chatbot at Harborview Manufacturing goes live in ten days, and Aisha, the project lead, has been asked one question by the chief people officer: "How do you know it is good?" The developers say it "feels right" after trying a few dozen questions. But there is no single correct answer to compare most responses with, the way there was for the old forecasting model. Last week, someone noticed it answered a dental question with a detail that appears nowhere in the plan documents. Aisha needs numbers she can defend, a way to catch invented facts, and some assurance that nobody can talk the bot into misbehaving. How do you evaluate something whose output is open-ended?
Traditional machine learning (ML) models are evaluated with metrics like accuracy or RMSE (root mean squared error) against known labels: the model predicts a value, and you compare it with the correct one. Generative AI output is open-ended text, so there is rarely one right answer to compare with. Two very different responses can both be excellent. Evaluation therefore uses a mix of quality metrics, safety metrics, human review and adversarial testing, and it continues after release rather than ending at launch.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.