Skip to content

Commit

Permalink
min 1 (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrm0 authored Jul 12, 2023
1 parent 694dfb0 commit d58c7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trulens_eval/trulens_eval/utils/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def _get_relevant_documents(self, query: str, *,
docs = super()._get_relevant_documents(query, run_manager=run_manager)

# Evaluate the filter on each, in parallel.
ex = ThreadPoolExecutor(max_workers=len(docs))
ex = ThreadPoolExecutor(max_workers=max(1, len(docs)))

futures = list(
(
Expand Down

0 comments on commit d58c7d8

Please sign in to comment.