Skip to content

Commit

Permalink
Resolving issues due to change in upsert_points API and also build fa…
Browse files Browse the repository at this point in the history
…ilures as type couldn't be inferred for collect().
  • Loading branch information
sriharshamadala committed Jan 21, 2025
1 parent 5d26adf commit a9f865a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/llm-chain-qdrant/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ where
vectors: Some(Vectors::from(vec)),
}
})
.collect();
.collect::<Vec<PointStruct>>();
self.client
.upsert_points(&self.collection_name, None, points, None)
.await
Expand Down Expand Up @@ -204,12 +204,12 @@ where
vectors: Some(Vectors::from(vec)),
})
})
.collect();
.collect::<Result<Vec<PointStruct>, 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)?;

Expand Down

0 comments on commit a9f865a

Please sign in to comment.