Skip to content

Commit aca70eb

Browse files
authored
Make evals example less performance sensitive (#2935)
1 parent 8e652f0 commit aca70eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/evals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,8 @@ class SpanTracingEvaluator(Evaluator[str, str]):
525525
error_query: SpanQuery = {'name_contains': 'error'}
526526
has_errors = span_tree.any(error_query)
527527

528-
# Calculate a performance score (lower is better)
529-
performance_score = 1.0 if total_processing_time < 1.0 else 0.5
528+
# Calculate a performance score
529+
performance_score = 1.0 if total_processing_time < 2.0 else 0.5
530530

531531
return {
532532
'has_spans': True,

0 commit comments

Comments
 (0)