What to measure
A chatbot can fail in several distinct ways. Track each one:
- **Correctness*: does the answer have the right facts?
- **Helpfulness*: does it actually solve the user's question?
- **Safety*: does it avoid harmful or off-topic replies?
- **Latency*: how long until the first word appears?
Decide which metrics matter for your product, then write tests that score them. Run the suite on every code change. Over time the suite becomes the proof that your improvements did not break anything else.