The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Same Project for Eval Runs (#8781)
William FH1d68470bac47
diff --git a/libs/langchain/langchain/callbacks/tracers/evaluation.py b/libs/langchain/langchain/callbacks/tracers/evaluation.pyindex a4a39063bf..cd8252b49f 100644--- a/libs/langchain/langchain/callbacks/tracers/evaluation.py+++ b/libs/langchain/langchain/callbacks/tracers/evaluation.py@@ -71,7 +71,7 @@ class EvaluatorCallbackHandler(BaseTracer):client: Optional[Client] = None,example_id: Optional[Union[UUID, str]] = None,skip_unfinished: bool = True,- project_name: Optional[str] = None,+ project_name: Optional[str] = "evaluators",**kwargs: Any,) -> None:super().__init__(**kwargs)diff --git a/libs/langchain/langchain/smith/evaluation/runner_utils.py b/libs/langchain/langchain/smith/evaluation/runner_utils.pyindex 585c3f5028..b8e5ec3490 100644--- a/libs/langchain/langchain/smith/evaluation/runner_utils.py+++ b/libs/langchain/langchain/smith/evaluation/runner_utils.py@@ -785,14 +785,12 @@ async def _callbacks_initializer(project_name=project_name, client=client, use_threading=False))- evaluator_project_name = f"{project_name}-evaluators" if project_name else Noneif run_evaluators:callback = EvaluatorCallbackHandler(client=client,evaluators=run_evaluators,# We already have concurrency, don't want to overload the machinemax_workers=1,- project_name=evaluator_project_name,)callbacks.append(callback)evaluation_handler_collector.append(callback)@@ -1081,7 +1079,6 @@ def _run_on_examples(tracer = LangChainTracer(project_name=project_name, client=client, use_threading=False)- evaluator_project_name = f"{project_name}-evaluators"run_evaluators, examples = _setup_evaluation(llm_or_chain_factory, examples, evaluation, data_type)@@ -1089,7 +1086,6 @@ def _run_on_examples(evalution_handler = EvaluatorCallbackHandler(evaluators=run_evaluators or [],client=client,- project_name=evaluator_project_name,)callbacks: List[BaseCallbackHandler] = [tracer, evalution_handler]for i, example in enumerate(examples):