When teams need LLM-as-a-judge evaluators in Langfuse
Teams need LLM-as-a-judge evaluators when production model output is too large and too varied to review by hand, yet still needs a consistent quality signal. A judge evaluator in Langfuse sends a trace, observation or experiment item to a language model with a rubric, and the model returns a score that Langfuse stores against the trace. Two modes matter for planning. An observation-level evaluator runs against live or ingested production traffic, scoring individual observations as they arrive. An experiment evaluator runs inside a dataset experiment, scoring each output of a candidate prompt, model or application version so runs can be compared before release. The two modes share the same judge model setup but differ in trigger, data and what a score means.
Every judge call is model spend. Each evaluation sends the input, output and rubric to a judge model, so cost grows with traffic, trace size and the number of evaluators attached to each observation. Plan controls before turning anything on: which observations are eligible, what sampling rate applies, which filters exclude sensitive or low-value traces, and which judge model and connection carry the charge. Confirm with your own team which provider account pays for judge calls and whether your organization or project owns the connection, because that determines who sees usage and who can change it. The sibling topics on LLM connections and code evaluators cover those choices in detail.
Self-hosting does not change the evaluation feature set. Langfuse states that all core features and APIs are available in the MIT-licensed open source version without limits, and that self-hosted deployments use the same codebase as Langfuse Cloud. Evaluations are part of that core, so you do not need an Enterprise license key to configure judge evaluators. Before rollout, confirm that your judge provider is reachable from the Langfuse Worker, since evaluation jobs run asynchronously there, and decide who may edit rubrics, because a rubric change alters every score that follows. Calibration against human labels, covered in a later section, is what tells you whether the judge's scores can be trusted.
Choosing observation-level or experiment evaluators
Langfuse runs LLM-as-a-judge evaluators at two scopes, and each answers a different question about your application. Choose the scope before you write the rubric, because it decides where the judge reads its input, how filters and sampling apply, and what the resulting scores mean for release decisions.
Observation-level evaluators on live traffic
These evaluators score production traces and individual observations as they arrive, so they answer whether real users are getting acceptable output today. Filters select which observations are scored, for example by trace name, environment or a metadata field. Check that the filter matches the observation type your rubric describes, since a judge scoring a retrieval step needs different instructions than one scoring a final answer.
Self-hosting docsExperiment evaluators on dataset runs
Experiment evaluators score the output of a dataset run against items with expected outputs or reference context, so they answer whether a change to a prompt, model or pipeline improved results on known cases. They run only when you execute an experiment, which makes their cost predictable. Confirm that each dataset item has the fields your rubric references, because a judge without the reference answer will score differently than one with it.
Sampling to control judge cost
Sampling applies to observation-level evaluators and decides what share of matching production traffic gets judged. Judge calls are billed by the provider of the judge model, so a high sample rate on a long trace can cost more than the application call it scores. Start with a low rate on a narrow filter, measure the judge token volume, and raise the rate only after the rubric has been calibrated against human labels.
Filters that match the rubric
A filter defines the population a score describes, so a rubric written for customer support answers should not run on internal test traffic or on tool-call steps. Use environment, trace name or tags to separate populations, and record the filter in the evaluator's documentation. Mismatched filters are a common cause of scores that look stable but track the wrong traffic.
Scores that compare across scopes
Production scores and experiment scores share the same score names only if the rubric, judge model and input fields match, so a shared name can hide a change in meaning. Use distinct score names or score configs for each scope when the inputs differ. Before using a production trend to justify an experiment result, confirm both scopes ran the same judge prompt version.
Writing a rubric a judge model can apply consistently
A judge model is only as consistent as the rubric it receives, so the first decision is to give each LLM-as-a-judge evaluator one criterion and nothing else. A rubric that asks a judge to check factual accuracy, tone and format in a single score produces a number that no one can explain when it moves. Split these into separate evaluators, each with its own name, its own instructions and its own score. Write the criterion as a yes or no question about one observable property of the output, such as whether the answer cites a document from the retrieved context or whether it refuses a request outside the product's scope. Before you write any prompt, check whether the property can be decided from the text alone. If it cannot, the criterion is either a human review task or needs a code evaluator instead.
Next, define exactly what the judge sees. In the evaluator configuration, map each template variable to a specific field: the trace input, the trace output, a retrieved context, or the expected output from a dataset item. Confirm that every variable you reference exists in the data for every trace the evaluator will run on, because a missing field silently changes what the judge scores. Write the rubric with explicit pass and fail definitions, or an explicit scale with one sentence per level, and add one short example of each outcome labeled as illustrative. Ambiguous levels such as "mostly good" are where judges drift, so replace them with observable conditions. Keep the rubric short enough that a reviewer can read it in one minute.
Then choose the score type. Use a boolean score when the criterion is binary and a failure has a clear action, such as blocking a release. Use a categorical score when you need a small set of named outcomes, for example complete, partial or missing. Use a numeric score only when the scale has defined anchors at each level, because judges tend to cluster around the middle of an unanchored range and the averages then mean little. Score configs in Langfuse let you define the allowed values and their labels once and reuse them across evaluators, annotation queues and manual scoring, so a "partial" from a judge and a "partial" from a reviewer mean the same thing. Confirm in your environment which score config options your Langfuse version exposes before you standardize on a scheme.
Configuration options and when each fits
This table compares the main settings you control when creating a judge evaluator, including target scope, sampling, filters, score type and judge model. Read each row for when the option fits and how it moves judge spend and score coverage. The main takeaway is that scope and sampling decide most of your judge cost, so set them before you tune the rubric.
| Option | When it fits | Effect on judge cost | Effect on score coverage |
|---|---|---|---|
| Observation-level target | Scoring a single generation or span, such as one answer's tone or one tool call's arguments | Runs once per matching observation, so high-volume generation types multiply cost quickly | Fine-grained coverage, but scores attach to individual steps rather than whole conversations |
| Trace-level target | Judging an end-to-end outcome, such as whether the final answer resolved the user's request | Runs once per matching trace, usually fewer calls than observation-level for multi-step apps | Covers the whole request, but may hide which step caused a failure |
| Experiment target | Scoring outputs of dataset runs before release, where every item should be judged | Cost is bounded by dataset size and runs, and is paid when you run the experiment | Full coverage of the test set, with no production sampling involved |
| Sampling rate | High-traffic production where judging every trace would cost more than the review value | Lower rates reduce judge calls in proportion to the fraction sampled | Lower rates leave some traffic unscored, so trend charts rest on fewer data points |
| Filters on metadata, tags or names | Limiting judges to one feature, environment, prompt name or user segment | Narrow filters cut calls, and they also cut the work done on irrelevant traffic | Scores cover only matching traffic, so confirm the filter matches the field your SDK actually sends |
| Score type (numeric, categorical, boolean) | Boolean for pass or fail gates, categorical for labeled failure modes, numeric for graded quality | Type does not change the call count, but longer reasoning output for numeric rubrics raises tokens per call | Boolean and categorical scores are easier to compare across runs and to calibrate against human labels |
| Judge model choice | A stronger model for subtle rubrics, a smaller model for simple, well-defined checks | Per-token price of the judge model is the largest variable on each call, set by your connection and provider | Weaker judges may disagree with human labels more often, so calibrate before trusting trends (confirm current model options and prices with your provider) |
How to configure a judge evaluator step by step
This sequence takes a judge model connection from setup to a verified evaluator that writes scores to the traces you intended. Each step ends with a check so you can confirm it before moving on.
Confirm the judge model connection
An administrator with project access adds an LLM connection in the Langfuse settings for the provider or internal OpenAI-compatible endpoint your judge will use. Confirm which provider keys, endpoints and model names your security team has approved, and decide whether the connection belongs to the organization or to one project. Check that the connection appears in the list and that a test call from the settings page returns a response. Do not start evaluator work until this check passes.
Create the evaluator with its prompt
Open the evaluators section of the project and create a new LLM-as-a-judge evaluator. Select the connection and judge model, then write the rubric as the evaluator prompt, stating the criteria, the score scale and what a passing output looks like. Map each prompt variable, such as the input, output or expected answer, to the matching trace or observation field so the judge sees the right content. Save the evaluator and confirm that the preview shows the rendered prompt with real variable values from a sample trace.
Set the target and filters
Choose whether the evaluator runs on live observations or on experiment runs, since the two use different targets and variable sources. Narrow the target with filters such as trace name, environment, tags or metadata so the judge only sees the traffic the rubric was written for. Keep the filter narrow at first, because every match is a judge model call billed to your connection. Check the filter preview to confirm that the matched count is what you expected before enabling anything.
Enable sampling to control judge cost
Set the sampling rate for the evaluator so that only a chosen share of matching traces is scored. A lower rate limits spend and latency on the judge model, while a higher rate gives more coverage for regression tracking. Record the rate and the reason for it in your evaluator documentation so reviewers know how representative the scores are. Confirm that the evaluator is saved with the sampling value shown in the list view and that the setting is not overridden elsewhere.
Run a small test on known traces
Pick a small set of traces where you already know the correct score, including clear passes, clear failures and a few borderline cases. Run the evaluator against these traces, either by creating them as a controlled test in a non-production environment or by sending them through the application with known inputs. Compare the judge output with your expected labels and note where the rubric is ambiguous. Revise the prompt and rerun until the disagreements are explained, and keep the test set for later calibration.
Check scores on the expected traces
Open the traces used in the test and confirm that the judge score appears on the correct trace or observation, with the score name, data type and evaluator reference you configured. Check that traces outside the filter received no score and that sampled-out traces were skipped. Look at the job or execution status for the evaluator to confirm that runs completed without errors such as failed connections or unmapped variables. Only enable the evaluator for wider traffic after these checks pass.
How a judge evaluation moves through Langfuse
The evaluation starts when a trace is ingested into your self-hosted Langfuse, where a filter and sampling rule decide whether it qualifies for judging. The Langfuse Worker then builds the judge prompt and calls the judge model through a configured LLM connection, and the returned score is written back to the trace or experiment run. Check the trust boundary: the judge provider receives the trace content you send, so confirm which fields are included before enabling the evaluator.
Trace ingestion, sampling, judge call and score write-back, with the external boundary marked.
Controlling judge cost with sampling and filters
Every item a judge scores is a separate model call with its own token cost, so the number of judged items, not the rubric alone, usually sets the bill. In self-hosted Langfuse, the evaluator configuration decides which observations or experiment items reach the judge. The main levers are the sampling rate on each evaluator, filters that restrict an evaluator to a specific environment or feature, and the choice between running an evaluator on live traffic or only inside experiments. Before turning on a judge against production, confirm with your team how many observations per day each filter will match, because a filter that looks narrow can still match most of your traffic.
The recurring costs are the judge model calls themselves. Each judged item consumes input tokens for the rubric, the observation content and any variables, plus output tokens for the score and reasoning. Those charges come from the model provider behind your LLM connection, and they recur for as long as the evaluator is active. Your own infrastructure also carries a smaller recurring cost, because each judge run creates score records that are stored in ClickHouse. Lowering the sampling rate, narrowing filters to the environments that matter and keeping experiment-only evaluators out of production reduce both.
The one-time costs are rubric design and calibration. Writing a rubric, testing it against a set of human-labeled examples and adjusting the wording until the judge agrees with reviewers takes expert time before the evaluator is trusted. Calibration usually has to be repeated after a judge model or prompt changes. When requesting a quote, ask for the rubric and calibration work as a separate line from ongoing judge runs, ask which judge model and token assumptions the estimate uses, and ask how the scope covers re-calibration after model changes. Ask the vendor or partner to confirm the sampling and filter controls available in your Langfuse version before the quote is finalized.
Security and data exposure in judge evaluators
A judge evaluator copies trace content into a prompt and sends it to a model provider, so what you score, which connection you use and who can change the evaluator all become security decisions. The cards below cover the data path, connection credentials, role-based access and audit trails for the judge setup in a self-hosted Langfuse instance.
Trace content leaves for the judge model
A judge evaluator fills its prompt with fields from each trace, such as input, output and metadata, and sends that text to the model provider configured for the evaluator. Before you enable one, classify the traces it will read, confirm which provider receives them, and read that provider's data handling and retention terms. If the traces include personal or regulated data, limit the mapped variables to the fields the rubric needs.
Provider terms for judge traffic
Judge calls are a second data flow, separate from the application's own model calls, and they often go to a different provider or account. Ask whether the judge provider's terms cover the data you send, whether the provider trains on API inputs, and where requests are processed. Record the answers in the evaluator's entry in your data inventory so reviewers can trace the flow.
Credential handling for judge connections
Judge models authenticate with API keys stored in an LLM connection. Use a dedicated key for judge traffic so it can be rotated and revoked without affecting the application, and confirm that Langfuse stores the key encrypted and never returns it in the UI or API. Check who can create or view connections, since anyone who can use a connection can usually spend against its budget.
Project roles for editing evaluators
An evaluator decides what gets scored and can change scores that feed dashboards and experiment gates. Project-level RBAC roles, which need an Enterprise license key, let you separate people who can view evaluators from people who can edit them. On a deployment without that key, confirm who holds organization-wide rights and restrict edits through your own change process.
License key docsAudit logs for evaluator changes
When a rubric, model or sampling rate changes, scores from before and after the change may not be comparable, and you need to know who made the change. Audit logs, which need an Enterprise license key, record administrative actions so you can reconstruct them. Confirm which events the logs capture and how long they are retained before you rely on them for an investigation.
License key docsQuestions teams ask before setting up judge evaluators
What drives the cost of running LLM-as-a-judge evaluators?
Judge model spend is the main recurring cost, and it scales with how many traces or experiment items each evaluator scores, how long those inputs and outputs are, and which model you pick as the judge. Sampling and filters are the most direct control: scoring every production trace with several evaluators costs far more than scoring a sampled slice with one. Your judge model provider bills you for those calls, so ask your team to estimate token volume per evaluator before approving a rollout. Rubric writing and calibration are one-time labor, while re-calibration recurs whenever prompts or models change.
How long does it take to set up judge evaluators in Langfuse?
The duration depends mainly on how many evaluators you need, how many environments they must run in, and whether you already have labeled examples to calibrate against. A single evaluator on one project is a small configuration task, while several evaluators across development, staging and production add rubric review, sampling decisions, and worker capacity checks for each environment. Calibration against human labels often takes longer than the configuration itself because reviewers must agree on what a good answer looks like. Ask any partner or internal lead for a written work breakdown tied to your evaluator count and environments.
What does our team need to provide for judge evaluators?
Most of the work depends on three inputs from your side. First, access to a judge model through an approved provider or an internal OpenAI-compatible endpoint, with credentials your security team has reviewed. Second, a set of labeled examples that reflect real traffic, including cases where the application is known to fail. Third, a named reviewer who can decide whether the judge's scores match human judgment and who owns rubric changes afterward. Without the reviewer, calibration results tend to go unused, so confirm this role before work starts.
Can an internal team set up LLM-as-a-judge evaluators alone?
Yes, an internal team with platform engineering skills and familiarity with the application can configure judge evaluators in a self-hosted Langfuse without a partner, because the core features are available in the MIT-licensed open source version. The harder parts are usually rubric design, deciding which failures matter, and building a labeled set that a domain expert trusts. Teams also need to check worker capacity, since evaluation runs add load to the platform. A partner is most useful when you need the work done in parallel with other projects or want an outside review of the rubrics and sampling plan.
Do judge evaluators need an Enterprise license?
No. Judge evaluators are part of the core feature set that Langfuse documents as available in the MIT-licensed open source version without limits. Features that require an Enterprise license key are a separate list, including project-level RBAC roles, protected prompt labels, data retention policies and audit logs. Confirm the current license terms in the Langfuse LICENSE file and the license key documentation before you rely on this, because those pages are the authoritative source.
How much worker capacity do judge evaluations consume?
Evaluations run asynchronously in the Langfuse Worker container, so heavy evaluator volume competes with ingestion for worker capacity. Langfuse recommends scaling worker containers on CPU load, and under heavy ingestion it suggests splitting the web container into separate ingestion and user interface deployments. Measure worker CPU and queue behavior in a staging environment with realistic trace volume before you enable evaluators on all production traffic. Your operations team should also decide how sampling rates will change if workers fall behind.
How do we know a judge's scores can be trusted?
Compare the judge's scores with labels from a human reviewer on a held-out set of traces, and measure how often they agree on pass or fail decisions. Look closely at the disagreements, because they usually reveal ambiguous rubric wording or failure modes the rubric does not cover. Repeat the comparison after each change to the judge prompt or model, and keep the labeled set current as the application changes. Treat the judge as a filter for human review rather than a final authority until agreement holds across the traffic you care about.
Do judge evaluators send our data to a third party?
They can, depending on which judge model you use. When a judge runs on a hosted provider, the trace content you select for evaluation is sent to that provider. When the judge runs on a model you host inside your own infrastructure, the content stays within your environment. Review data classification, retention terms with the provider and masking rules before enabling evaluators on production traces, and confirm with your compliance team which inputs may leave your boundary.
How DeployOpen scopes and delivers judge evaluator work
DeployOpen approaches judge evaluator setup as a bounded piece of work inside your self-hosted Langfuse instance, starting from the rubrics and traffic your team already has. We agree the scope in writing, build and test the evaluators against your own human labels, and hand over the configuration with documentation your team can operate.
How we scope
- Engagements are fixed-scope, with the judged traces, rubrics and judge models agreed in writing before work starts.
- We list which evaluators run on production traces and which run on experiment datasets, so judge cost is planned up front.
- The scope names the sampling rates, filters and score configs that control how many traces reach the judge model.
How we build
- We draft rubric prompts with your domain experts and test them against a labeled sample before enabling them broadly.
- We configure observation-level and experiment evaluators in your Langfuse project, using connections your organization has approved.
- We measure agreement between judge scores and human labels, then tune the rubric and sampling until the agreement is acceptable to your reviewers.
How we hand over
- You receive the evaluator definitions, rubric text, filter logic and score configurations as versioned artifacts in your environment.
- Documentation covers how to add a rubric, change a sampling rate, recalibrate against new labels and read judge score trends.
- We walk your engineers and reviewers through the configuration so the people running it can explain each judge decision.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer for judge evaluators as models and rubrics change.
- Retainers can cover recalibration when the judge model, provider or Langfuse version changes, so scores stay comparable over time.
- Your team should confirm the support level, response expectations and who owns rubric changes before the retainer starts.

