From a9f865a4099c1d30e90a1741f1ea23c91716764b Mon Sep 17 00:00:00 2001 From: sriharsha madala Date: Mon, 20 Jan 2025 18:56:39 -0800 Subject: [PATCH] Resolving issues due to change in upsert_points API and also build failures as type couldn't be inferred for collect(). --- crates/llm-chain-qdrant/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/llm-chain-qdrant/src/lib.rs b/crates/llm-chain-qdrant/src/lib.rs index 2e7d9939..f0b5c5df 100644 --- a/crates/llm-chain-qdrant/src/lib.rs +++ b/crates/llm-chain-qdrant/src/lib.rs @@ -165,7 +165,7 @@ where vectors: Some(Vectors::from(vec)), } }) - .collect(); + .collect::>(); self.client .upsert_points(&self.collection_name, None, points, None) .await @@ -204,12 +204,12 @@ where vectors: Some(Vectors::from(vec)), }) }) - .collect(); + .collect::, Self::Error>>(); let points = points?; self.client - .upsert_points(self.collection_name.clone(), None, points, None) + .upsert_points(&self.collection_name, None, points, None) .await .map_err(QdrantError::Client)?;