Skip to content

Commit a72b65b

Browse files
CorentinAnush008
Corentin
andauthored
Update integrations/qdrant/src/haystack_integrations/document_stores/qdrant/converters.py
Co-authored-by: Anush <[email protected]>
1 parent a3bd3d3 commit a72b65b

File tree

1 file changed

+1
-1
lines changed
  • integrations/qdrant/src/haystack_integrations/document_stores/qdrant

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def point_to_document(self, point: QdrantPoint) -> Document:
8585
if not self.use_sparse_embeddings:
8686
payload["embedding"] = point.vector if hasattr(point, "vector") else None
8787

88-
if self.use_sparse_embeddings:
88+
else:
8989
if hasattr(point, "vector") and point.vector is not None and DENSE_VECTORS_NAME in point.vector:
9090
payload["embedding"] = point.vector[DENSE_VECTORS_NAME]
9191
else:

0 commit comments

Comments
 (0)