Skip to content

Commit

Permalink
Fix: typo on Sparse embedders. The parameter should be "progress_bar"…
Browse files Browse the repository at this point in the history
… … (#814)

* Fix typo on Sparse embedders. The parameter should be "progress_bar" instead of "show_progress_bar"

* Fix typo on Sparse embedders tests. The parameter should be "progress_bar" instead of "show_progress_bar"
  • Loading branch information
paulmartrencharpro authored Jun 26, 2024
1 parent bd21df7 commit 49e323f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def run(self, documents: List[Document]):
embeddings = self.embedding_backend.embed(
texts_to_embed,
batch_size=self.batch_size,
show_progress_bar=self.progress_bar,
progress_bar=self.progress_bar,
parallel=self.parallel,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run(self, text: str):

embedding = self.embedding_backend.embed(
[text],
show_progress_bar=self.progress_bar,
progress_bar=self.progress_bar,
parallel=self.parallel,
)[0]
return {"sparse_embedding": embedding}
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def test_embed_metadata(self):
"meta_value 4\ndocument-number 4",
],
batch_size=32,
show_progress_bar=True,
progress_bar=True,
parallel=None,
)

Expand Down

0 comments on commit 49e323f

Please sign in to comment.