From e716d4d4a30a00e93fddea54b94c45f4f64ee24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20H=C3=B6gman=20Rudenmalm?= Date: Wed, 10 Jan 2024 21:30:18 +0100 Subject: [PATCH] chore: Update qdrant api --- crates/llm-chain-qdrant/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crates/llm-chain-qdrant/src/lib.rs b/crates/llm-chain-qdrant/src/lib.rs index 30ed8891..2e7d9939 100644 --- a/crates/llm-chain-qdrant/src/lib.rs +++ b/crates/llm-chain-qdrant/src/lib.rs @@ -167,7 +167,7 @@ where }) .collect(); self.client - .upsert_points(self.collection_name.clone(), points, None) + .upsert_points(&self.collection_name, None, points, None) .await .map_err(QdrantError::Client)?; Ok(ids) @@ -209,7 +209,7 @@ where let points = points?; self.client - .upsert_points(self.collection_name.clone(), points, None) + .upsert_points(self.collection_name.clone(), None, points, None) .await .map_err(QdrantError::Client)?; @@ -225,6 +225,9 @@ where let res = self .client .search_points(&SearchPoints { + timeout: None, + shard_key_selector: None, + sparse_indices: None, collection_name: self.collection_name.clone(), vector: embedded_query, filter: self.filter.clone(),