Skip to content

Commit 115eff4

Browse files
committed
adding cast to upsert input
1 parent 1c2fef7 commit 115eff4

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
@@ -670,7 +670,7 @@ def update_by_filter(self, filters: dict[str, Any], meta: dict[str, Any]) -> int
670670
for batch in get_batches_from_generator(updated_points, self.write_batch_size):
671671
self._client.upsert(
672672
collection_name=self.index,
673-
points=batch,
673+
points=list(batch),
674674
wait=self.wait_result_from_api,
675675
)
676676

@@ -750,7 +750,7 @@ async def update_by_filter_async(self, filters: dict[str, Any], meta: dict[str,
750750
for batch in get_batches_from_generator(updated_points, self.write_batch_size):
751751
await self._async_client.upsert(
752752
collection_name=self.index,
753-
points=batch,
753+
points=list(batch),
754754
wait=self.wait_result_from_api,
755755
)
756756

0 commit comments

Comments
 (0)