Skip to content

Commit febdc18

Browse files
committed
fixing wrong type of assignment error
1 parent 7db675e commit febdc18

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • integrations/qdrant/src/haystack_integrations/document_stores/qdrant

integrations/qdrant/src/haystack_integrations/document_stores/qdrant/document_store.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,11 +540,11 @@ def delete_all_documents(self, recreate_index: bool = False) -> None:
540540

541541
# deal with the Optional use_sparse_embeddings
542542
sparse_vectors = info_json["config"]["params"]["sparse_vectors"]
543-
use_sparse_embeddings = sparse_vectors if sparse_vectors else False
543+
use_sparse_embeddings = True if sparse_vectors else False
544544

545545
# deal with the Optional sparse_idf
546546
hnsw_config = info_json["config"]["params"]["vectors"].get("config", {}).get("hnsw_config", None)
547-
sparse_idf = hnsw_config if use_sparse_embeddings and hnsw_config else False
547+
sparse_idf = True if use_sparse_embeddings and hnsw_config else False
548548

549549
# recreate collection
550550
self._set_up_collection(

0 commit comments

Comments
 (0)