We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9cbd0d commit ecbf475Copy full SHA for ecbf475
tests/snippet_tests/test_query_points_groups.rs
@@ -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