Skip to content

Commit

Permalink
Update examples
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 bf686db commit 592fb55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
};
points.push(p);
}
println!("Upsert points {:?}", points);
let r = client.upsert_points("my_test", points).await;
println!("Upsert points result is {:?}", r);

let q = vec![0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0];
println!("The collection size is {}", client.collection_info("my_test"));

let q = vec![0.0, 1.0, 1.0, 1.0, 1.0, 1.0, 6.0, 7.0, 8.0, 9.0];
let r = client.search_points("my_test", q, 2).await;
println!("Search result points are {:?}", r);
Ok(())
Expand Down

0 comments on commit 592fb55

Please sign in to comment.