From 83cf01683e8d45b0f2d26ae42c065242049c62db Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Wed, 5 Jul 2023 16:28:34 -0700 Subject: [PATCH] Add 'eval' tag (#7209) Add an "eval" tag to traced evaluation runs Most of this PR is actually https://github.com/hwchase17/langchain/pull/7207 but I can't diff off two separate PRs --------- Co-authored-by: Ankush Gola <9536492+agola11@users.noreply.github.com> --- langchain/callbacks/tracers/evaluation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/langchain/callbacks/tracers/evaluation.py b/langchain/callbacks/tracers/evaluation.py index f6ec4fe68f..9742e050d5 100644 --- a/langchain/callbacks/tracers/evaluation.py +++ b/langchain/callbacks/tracers/evaluation.py @@ -84,7 +84,7 @@ class EvaluatorCallbackHandler(BaseTracer): try: if self.project_name is None: self.client.evaluate_run(run, evaluator) - with tracing_v2_enabled(project_name=self.project_name): + with tracing_v2_enabled(project_name=self.project_name, tags=["eval"]): self.client.evaluate_run(run, evaluator) except Exception as e: logger.error(