Langfuse v4: up to 165ร— faster ยท Read more
DocsOverview

Agent evals and experiments

Agent evals are a repeatable check of application behavior. You replace guesswork with scores โ€” numeric, categorical, boolean, or text โ€” on live traces and on dataset experiments, so you can catch regressions before you ship.

This page is for teams that need to measure quality in production and compare prompt, model, or code changes before release. If you want to score traffic today, start with Evaluate Production Traffic. To test a change on a fixed set of cases, start with Evaluate with Datasets.

Score Analytics dashboard in Langfuse showing evaluation scores trended over time across multiple evaluators.

Evaluation runs across most of the AI engineering loop: you score live traces, turn interesting examples into datasets, run experiments, and judge the results with manual or automated evaluators. It happens both online, on live production traces, and offline, before you ship a change.

๐Ÿš€

Want to see it in action? Create a free account and explore Langfuse Evaluation in the interactive example project.

What you can do with evals

Teams use Langfuse evals to:

Getting started

You can evaluate both:

For how evaluators, scores, datasets, and experiments fit together, read Core Concepts.

If you're looking for another specific workflow, use the table below to find the right feature page:

If you want to...Use this Langfuse feature
Review and rate traces manuallyAnnotation Queues, Scores via UI
Collect feedback from your end usersUser Feedback
Leave open-ended notes on tracesText scores, Annotation Queues
Build a reusable set of test casesDatasets
Compare prompt, model, or code changes side by sideExperiments via UI, Experiments via SDK, Experiments via OpenTelemetry
Block deploys on regressionsCI/CD experiments
Run deterministic checksCode Evaluators
Automatically score live production tracesLLM-as-a-Judge, Scores via API/SDK
See how scores trend over timeScore Analytics, custom dashboards

Already know what you're looking for? Browse Evaluation Methods and Experiments in the sidebar.

FAQ

What are agent evals?

Agent evals are a repeatable way to score application behavior โ€” helpfulness, factuality, tone, safety, or any rubric you define โ€” instead of relying on anecdotal reviews. In Langfuse, evaluation results are stored as scores on traces, observations, sessions, and experiment runs.

What is the difference between online and offline evaluation?

Online evaluation scores live production traces as they arrive, so you can watch quality trends and catch regressions in production. Offline evaluation runs your application against a fixed dataset before you ship, so you can compare prompt, model, or code changes side by side. Experiments are the offline workflow.

When should I use LLM-as-a-Judge vs a code evaluator?

Use a code evaluator for deterministic checks you can write as Python or TypeScript โ€” format, required fields, keyword presence, or numeric thresholds. Use LLM-as-a-Judge when the judgment is qualitative, such as faithfulness, helpfulness, or whether a response followed a policy.

How do experiments relate to scores?

An experiment runs your task on a dataset and attaches scores to each item. Those scores are the same score objects you use on production traces, so you can compare an offline experiment to live quality using one data model.

GitHub Discussions


Was this page helpful?

Last edited