mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
22 lines
468 B
C#
22 lines
468 B
C#
using Qdrant.Client;
|
|
using Qdrant.Client.Grpc;
|
|
|
|
public class Snippet
|
|
{
|
|
public static async Task Run()
|
|
{
|
|
// @hide-start
|
|
var client = new QdrantClient("localhost", 6334);
|
|
// @hide-end
|
|
|
|
await client.UpsertAsync(
|
|
collectionName: "{collection_name}",
|
|
points: new List<PointStruct>
|
|
{
|
|
new() { Id = 111, Vectors = new[] { 0.1f, 0.2f, 0.3f } }
|
|
},
|
|
shardKeySelector: new ShardKeySelector { ShardKeys = { new List<ShardKey> { "user_1" } } }
|
|
);
|
|
}
|
|
}
|