docs: Added C# snippet

This commit is contained in:
Anush
2024-05-18 23:34:35 +05:30
committed by GitHub
parent e4a52cc537
commit 18ec27290e
@@ -580,9 +580,19 @@ client.createCollectionAsync(
```
```csharp
using Qdrant.Client;
using Qdrant.Client.Grpc;
ToDo: Add C# example
var client = new QdrantClient("localhost", 6334);
await client.CreateCollectionAsync(
collectionName: "{collection_name}",
sparseVectorsConfig: ("splade-model-name", new SparseVectorParams{
Index = new SparseIndexConfig {
OnDisk = false,
}
})
);
```
Some important parameters of the sparse index are: