Skip to content

Commit ecbf475

Browse files
generalltimvisee
authored andcommitted
upd snippets
1 parent f9cbd0d commit ecbf475

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
#[tokio::test]
3+
async fn test_query_points_groups() {
4+
async fn query_points_groups() -> Result<(), Box<dyn std::error::Error>> {
5+
// WARNING: This is a generated test snippet.
6+
// Please, modify the snippet in the `../snippets/query_points_groups.rs` file
7+
use qdrant_client::Qdrant;
8+
use qdrant_client::qdrant::{Query, QueryPointGroupsBuilder};
9+
10+
let client = Qdrant::from_url("http://localhost:6334").build()?;
11+
12+
client.query_groups(
13+
QueryPointGroupsBuilder::new("{collection_name}", "document_id")
14+
.query(Query::from(vec![0.01, 0.45, 0.67]))
15+
.limit(10u64)
16+
.group_size(5u64)
17+
).await?;
18+
Ok(())
19+
}
20+
let _ = query_points_groups().await;
21+
}

0 commit comments

Comments
 (0)