Skip to content

Commit

Permalink
Update SDK
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Yuan <[email protected]>
  • Loading branch information
juntao committed Jan 27, 2024
1 parent afb72ae commit bf686db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ impl Qdrant {
let params = json!({
"vector": point,
"limit": limit,
"with_payload": true,
"with_vector": true,
});

let v = self.search_points_api(collection_name, &params).await.unwrap();
Expand Down Expand Up @@ -154,7 +156,6 @@ impl Qdrant {
);

let body = serde_json::to_vec(params).unwrap_or_default();
println!("Upsert request: {:?}", params);
let client = reqwest::Client::new();
let res = client.put(&url).header("Content-Type", "application/json").body(body).send().await?;
if res.status().is_success() {
Expand Down

0 comments on commit bf686db

Please sign in to comment.