mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
32 lines
613 B
C#
32 lines
613 B
C#
using Qdrant.Client;
|
|
using Qdrant.Client.Grpc;
|
|
|
|
public class Snippet
|
|
{
|
|
public static async Task Run()
|
|
{
|
|
var client = new QdrantClient("localhost", 6334);
|
|
|
|
await client.QueryAsync(
|
|
collectionName: "{collection_name}",
|
|
prefetch: new List < PrefetchQuery > {
|
|
new() {
|
|
Query = new(float, uint)[] {
|
|
(0.22f, 1), (0.8f, 42),
|
|
},
|
|
Using = "sparse",
|
|
Limit = 20
|
|
},
|
|
new() {
|
|
Query = new float[] {
|
|
0.01f, 0.45f, 0.67f
|
|
},
|
|
Using = "dense",
|
|
Limit = 20
|
|
}
|
|
},
|
|
query: Fusion.Dbsf
|
|
);
|
|
}
|
|
}
|