From 1ef385802cc1db5ca697ff2e6ebe3230cf678303 Mon Sep 17 00:00:00 2001 From: Arnaud Gourlay Date: Thu, 16 Jan 2025 17:25:45 +0100 Subject: [PATCH] add missing imports --- .../documentation/concepts/collections.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/qdrant-landing/content/documentation/concepts/collections.md b/qdrant-landing/content/documentation/concepts/collections.md index ccba57ca4..e33f4b536 100644 --- a/qdrant-landing/content/documentation/concepts/collections.md +++ b/qdrant-landing/content/documentation/concepts/collections.md @@ -916,6 +916,10 @@ curl -X PATCH http://localhost:6333/collections/{collection_name} \ ``` ```python +from qdrant_client import QdrantClient, models + +client = QdrantClient(url="http://localhost:6333") + client.update_collection( collection_name="{collection_name}", strict_mode_config=models.StrictModeConfig(enabled=True, unindexed_filtering_retrieve=True), @@ -923,6 +927,10 @@ client.update_collection( ``` ```typescript +import { QdrantClient } from "@qdrant/js-client-rest"; + +const client = new QdrantClient({ host: "localhost", port: 6333 }); + client.updateCollection("{collection_name}", { strict_mode_config: { enabled: true, @@ -1010,6 +1018,10 @@ curl -X PATCH http://localhost:6333/collections/{collection_name} \ ``` ```python +from qdrant_client import QdrantClient, models + +client = QdrantClient(url="http://localhost:6333") + client.update_collection( collection_name="{collection_name}", strict_mode_config=models.StrictModeConfig(enabled=False), @@ -1017,6 +1029,10 @@ client.update_collection( ``` ```typescript +import { QdrantClient } from "@qdrant/js-client-rest"; + +const client = new QdrantClient({ host: "localhost", port: 6333 }); + client.updateCollection("{collection_name}", { strict_mode_config: { enabled: false,