We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ff83d5 commit bd4ade5Copy full SHA for bd4ade5
llm-service/app/services/metrics.py
@@ -209,8 +209,11 @@ def generate_metrics(metric_filter: Optional[MetricFilter] = None) -> Metrics:
209
output_word_count_over_time.append(
210
(run.info.start_time, run.data.metrics.get("output_word_count", 0))
211
)
212
- faithfulness_total += run.data.metrics.get("faithfulness", 0)
213
- relevance_total += run.data.metrics.get("relevance", 0)
+
+ # Only accumulate faithfulness and relevance for non-direct LLM runs
214
+ if run.data.tags.get("direct_llm") != "True":
215
+ faithfulness_total += run.data.metrics.get("faithfulness", 0)
216
+ relevance_total += run.data.metrics.get("relevance", 0)
217
218
artifact: FileInfo
219
for artifact in artifacts:
0 commit comments