Evaluations¶
Building a chatbot is the easy part. Knowing whether it works well is harder.
Evaluations let you check this systematically. You run your chatbot against a set of sample conversations. You then score the results against criteria you define, such as accuracy, tone, or whether it stayed on topic.
Running evaluations regularly warns you early when a change to a prompt, model or pipeline makes responses worse. It also gives you proof when a change makes them better. You no longer need to spot-check conversations by hand.
flowchart LR
sessions([Past conversations]) --> dataset[Dataset]
manual([Hand-written or CSV test cases]) --> dataset
dataset --> evaluators["Evaluators (LLM-as-a-judge or Python)"]
evaluators --> results[Results table]
results --> tags[Tag rules tag matching rows]
results --> compare[Compare runs over time]
- Dataset: the sample conversations or test cases to score.
- Evaluators: score each row, using an LLM prompt or Python code. Several evaluators can run on the same dataset.
- Tag rules: tag rows whose scores meet a condition, such as a low rating, so you can find them quickly.
Example¶
Suppose you run a health clinic's appointment chatbot and want to switch it to a cheaper model. You are not sure the answers will stay as good. You build a dataset from 50 real past conversations, including some that went badly. You create an evaluator that rates each response for helpfulness from 1 to 5.
You run the evaluation with the current model and note the average score, then change the model and run it again. If the average drops, you know the change has a cost before any participant sees it. A tag rule can tag every response that scored 2 or lower, so you can open those conversations and see what went wrong.
Next steps¶
- Create a Dataset — build your first dataset by cloning sessions, importing from an annotation queue, or uploading a CSV.
- Run an Evaluation — create an evaluation, preview and run it, and read the results.
- Set Up a Real-Time LLM-as-a-Judge — score new sessions from a live chatbot automatically.
- Evaluations Reference — how evaluation runs execute, Python evaluators and auto-population.