Skip to content

Commit e3327a0

Browse files
perf: forgot to enable concurrency for answering documents
Signed-off-by: thiswillbeyourgithub <26625900+thiswillbeyourgithub@users.noreply.github.com>
1 parent 23bef7d commit e3327a0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

wdoc/wdoc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,9 @@ def create_autoincrease_top_k_chain(inputs):
10221022
]
10231023
) | {
10241024
"intermediate_answers": itemgetter("inputs")
1025-
| RunnableEach(bound=answer_each_doc_chain),
1025+
| RunnableEach(bound=answer_each_doc_chain.with_config(multi)).with_config(
1026+
multi
1027+
),
10261028
"question_to_answer": itemgetter("question_to_answer"),
10271029
"filtered_docs": itemgetter("filtered_docs"),
10281030
"unfiltered_docs": itemgetter("unfiltered_docs"),

0 commit comments

Comments
 (0)