AI evaluations, explained side by side.

Before you ship, or after?

Offline evals test your changes on saved cases before they go live. Online evals grade the real thing as it happens." Pick a path below and see what each one catches.

Offline evals

Test known cases

Like unit / integration tests for your AI. Run a test suite on your laptop or in your CI.

Your local machine / CI
1

Offline · Input

user: “Can I return an item I bought 45 days ago?”

Cases from
Load via

This is a test case you got from a real user input. It’s defined in your code and loaded by your test runner.

Reference answer
Decline the late return; explain the 30-day policy.

Online evals

Discover missed cases

Real users go beyond your finite test suite. Monitor their interactions in PostHog.

Your app in production
1

Online · Input

user: “This was a gift, I have no receipt, and it broke after 45 days. I’m frustrated. Can you replace it?”

This is an unexpected request from a real user in prod. This user is asking about a defective product, but your test suite only covers late returns.

Your agent runs on this test case
Your local machine / CI
2

Offline · Output

Waiting for a new test run…

Your agent responds to the user
Your app in production
2

Online · Output

Waiting for the app’s response…

Pass input, output + tool call
Your evaluator runner
3

Offline · Evaluator

Type
Check

Does the answer apply the right policy to this request?

Scores the answer using the input, output, tool call, and reference answer.

Score produced hereNot scored yet
AI Observability tracing captures input, output + tool calls in PostHog
PostHog
3

Online · Evaluator

Type
Check

Does the answer apply the right policy to this request?

Scores the answer using the input, output, and tool call. Production requests have no reference answer.

Score produced hereNot scored yet
PostHog

4Results in PostHog

Same destination, different workflows.

Offline evals

Not yet

Waiting for your runner to report its results.

Online evals

Not yet

Waiting for the evaluation results.

'It works on my computer' doesn’t apply to your agent

Don’t let your agent run wild without running evals first.