LangSmith offline vs. online evaluation
Use offline evaluation to replay known cases before deployment. Use online evaluation to inspect the traffic your application actually receives.
Start with a dataset before launch
Suppose a returns assistant must ask for a purchase date before judging eligibility. Create examples with and without that date. For each example, write the expected action and keep the inputs stable so the current and proposed versions get the same test.
An evaluator can check whether the response takes the expected action. Use code when the output exposes a structured field you can compare. A rubric can help when the answer is prose and multiple phrasings are valid.
Watch live traces after launch
Online evaluation scores production traces. Incoming cases often arrive without a verified answer. Here, a practical check is whether the app asked a follow-up when the purchase date was absent from the input. Send flagged traces to human review before treating them as confirmed errors.
Feed confirmed failures back into the dataset
Remove personal data from a confirmed case. Save the minimum input that reproduces the failure, add the expected response, and replay it with the next release. That turns a production observation into a repeatable regression check.