PostHog made offline AI evaluations generally available on November 26. Teams can run an agent against saved test cases on a laptop or in continuous integration, score its answers with their existing test setup and send the results to PostHog. That makes it possible to compare a prompt or model change with previous runs before deploying it.

An experiment records where the result changed

The test cases can live in code, a file or a PostHog dataset. A support team could save examples of requests for delivery updates, then use a scorer to check whether the agent selected the correct tool for each case. PostHog groups a run as an experiment so the team can inspect the individual results behind a change in the overall score. The experiment can retain each case’s input and actual output alongside its score.

PostHog says teams can use their CI checks to stop a change from merging if its results fall below their threshold. The test runner executes the cases and reports the scores. To compare two prompt versions fairly, a team can keep the dataset and scoring criteria fixed while changing the prompt.

Sources

PostHog changelog, November 26 · PostHog offline evaluations documentation · Compare experiments

Stay curious. Choose thoughtfully.More news