mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-04 10:28:29 +02:00
Add more snippets
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
```csharp
|
||||
using Qdrant.Client;
|
||||
using Qdrant.Client.Grpc;
|
||||
|
||||
var client = new QdrantClient("localhost", 6334);
|
||||
|
||||
await client.UpdateCollectionAsync(
|
||||
collectionName: "{collection_name}",
|
||||
quantizationConfig: new QuantizationConfigDiff { Disabled = True } // WRONG
|
||||
);
|
||||
```
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
```go
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/qdrant/go-client/qdrant"
|
||||
)
|
||||
|
||||
client, err := qdrant.NewClient(&qdrant.Config{
|
||||
Host: "localhost",
|
||||
Port: 6334,
|
||||
})
|
||||
|
||||
client.UpdateCollection(context.Background(), &qdrant.UpdateCollection{
|
||||
CollectionName: "{collection_name}",
|
||||
QuantizationConfig: qdrant.NewQuantizationDiffDisabled(),
|
||||
})
|
||||
```
|
||||
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
```java
|
||||
import io.qdrant.client.grpc.Collections.QuantizationConfigDiff;
|
||||
import io.qdrant.client.grpc.Collections.UpdateCollection;
|
||||
|
||||
client.updateCollectionAsync(
|
||||
UpdateCollection.newBuilder()
|
||||
.setCollectionName("{collection_name}")
|
||||
.setQuantizationConfig(
|
||||
QuantizationConfigDiff.newBuilder().disabled().build()) // WRONG
|
||||
.build());
|
||||
```
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
```python
|
||||
client.update_collection(
|
||||
collection_name="{collection_name}",
|
||||
quantization_config=models.Disabled.DISABLED,
|
||||
)
|
||||
```
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
```rust
|
||||
use qdrant_client::qdrant::{Disabled, UpdateCollectionBuilder};
|
||||
|
||||
client
|
||||
.update_collection(UpdateCollectionBuilder::new("{collection_name}").quantization_config(Disabled {}))
|
||||
.await?;
|
||||
```
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
```typescript
|
||||
client.updateCollection("{collection_name}", {
|
||||
quantization_config: 'Disabled'
|
||||
});
|
||||
```
|
||||
Reference in New Issue
Block a user