Skip to content

Commit

Permalink
chore: Update qdrant api
Browse files Browse the repository at this point in the history
  • Loading branch information
williamhogman committed Jan 10, 2024
1 parent a26992d commit e716d4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/llm-chain-qdrant/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)?;

Expand All @@ -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(),
Expand Down

0 comments on commit e716d4d

Please sign in to comment.