mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 07:35:18 +00:00
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>
This commit is contained in:
parent
607708a411
commit
83cf01683e
@ -84,7 +84,7 @@ class EvaluatorCallbackHandler(BaseTracer):
|
|||||||
try:
|
try:
|
||||||
if self.project_name is None:
|
if self.project_name is None:
|
||||||
self.client.evaluate_run(run, evaluator)
|
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)
|
self.client.evaluate_run(run, evaluator)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(
|
logger.error(
|
||||||
|
Loading…
Reference in New Issue
Block a user