mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-09 21:08:31 +02:00
* Replace memmap_threshold with indexing_threshold * Update GitHub Stars * Update GitHub Stars * Update GitHub Stars --------- Co-authored-by: myyrakle <16988115+myyrakle@users.noreply.github.com>
17 lines
402 B
C#
17 lines
402 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.CreateCollectionAsync(
|
|
collectionName: "{collection_name}",
|
|
vectorsConfig: new VectorParams { Size = 768, Distance = Distance.Cosine },
|
|
optimizersConfig: new OptimizersConfigDiff { IndexingThreshold = 20000 }
|
|
);
|
|
}
|
|
}
|