Skip to content

Commit

Permalink
Bug fix for retrieve from faiss by prompt (#914)
Browse files Browse the repository at this point in the history
There was a bug in the retrieve from faiss by prompt component related
to cpu.
The number of workers was calculated as float instead of an int.
  • Loading branch information
mrchtr authored Mar 27, 2024
1 parent 2743dbe commit 2464ef0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def setup(self) -> Client:
# We need at least 8Gb RAM for the datacomp small faiss index
# We should consider calculating the memory required for the index based on the faiss
# index size
cores_to_utilise = total_memory // 8
cores_to_utilise = int(total_memory // 8)
cluster = LocalCluster(
processes=True,
n_workers=cores_to_utilise,
Expand Down

0 comments on commit 2464ef0

Please sign in to comment.