Skip to content

Commit

Permalink
Fix params being changed during pipeline.eval() (deepset-ai#2638)
Browse files Browse the repository at this point in the history
  • Loading branch information
tstadel authored Jun 8, 2022
1 parent 374155f commit 293a3b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haystack/pipelines/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,8 @@ def eval(
if add_isolated_node_eval:
if params is None:
params = {}
else:
params = params.copy()
params["add_isolated_node_eval"] = True

# if documents is None, set docs_per_label to None for each label
Expand Down

0 comments on commit 293a3b5

Please sign in to comment.