Skip to content
Discussion options

You must be logged in to vote

Based on the documentation, you'll need to create two separate evaluators—one for live traces and one for dataset runs(1).

When you have variables like {{ground_truth}} that only exist in dataset runs but not in live traces, Langfuse doesn't currently support optional variable mapping within a single evaluator configuration(1). The recommended approach is to create two separate custom evaluator prompts:

  1. Live trace evaluator: Uses variables like {{input}} and {{output}} without {{ground_truth}}
  2. Dataset run evaluator: Uses {{input}}, {{output}}, and {{ground_truth}}

This is the standard pattern when your evaluation criteria differ between live production data (which lacks ground truth) an…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by aniket-versant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant