Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan committed Dec 24, 2024
1 parent dd0621a commit f83a4a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 1 addition & 3 deletions python/docs/create_api_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ def _load_module_members(module_path: str, namespace: str) -> ModuleMembers:
else (
"enum"
if issubclass(type_, Enum)
else "Pydantic"
if issubclass(type_, BaseModel)
else "Regular"
else "Pydantic" if issubclass(type_, BaseModel) else "Regular"
)
)
# if hasattr(type_, "__slots__"):
Expand Down
4 changes: 2 additions & 2 deletions python/langsmith/evaluation/_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1665,14 +1665,14 @@ def _score(
yield result

def _apply_summary_evaluators(
self,
summary_evaluators: Sequence[SUMMARY_EVALUATOR_T],
self, summary_evaluators: Sequence[SUMMARY_EVALUATOR_T]
) -> Generator[EvaluationResults, None, None]:
runs, examples, evaluation_results = [], [], []
for row in self.get_results():
runs.append(row["run"])
examples.append(row["example"])
evaluation_results.append(row["evaluation_results"]["results"])

aggregate_feedback = []
with ls_utils.ContextThreadPoolExecutor() as executor:
project_id = self._get_experiment().id if self._upload_results else None
Expand Down
3 changes: 2 additions & 1 deletion python/tests/unit_tests/evaluation/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ def summary_eval_outputs_reference(outputs, reference_outputs):
return min([len(x["response"]) for x in outputs])


def summary_eval_outputs_reference(evaluation_results):
def summary_eval_evaluation_results(evaluation_results):
return len(evaluation_results)


Expand All @@ -988,6 +988,7 @@ def summary_eval_outputs_reference(evaluation_results):
summary_eval_runs_examples,
summary_eval_inputs_outputs,
summary_eval_outputs_reference,
summary_eval_evaluation_results,
],
)
def test__normalize_summary_evaluator(evaluator: Callable) -> None:
Expand Down

0 comments on commit f83a4a8

Please sign in to comment.