diff --git a/src/ops/storages/qdrant.rs b/src/ops/storages/qdrant.rs index 7da0b558d..da9080950 100644 --- a/src/ops/storages/qdrant.rs +++ b/src/ops/storages/qdrant.rs @@ -70,9 +70,11 @@ impl ExportContext { points.push(PointStruct::new(point_id, vectors, payload)); } - self.client - .upsert_points(UpsertPointsBuilder::new(&self.collection_name, points).wait(true)) - .await?; + if !points.is_empty() { + self.client + .upsert_points(UpsertPointsBuilder::new(&self.collection_name, points).wait(true)) + .await?; + } let ids = mutation .delete_keys