From 5545e5cee2b216ae8d5b12f66ae3cea8f0f086d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20=C5=81ukawski?= Date: Fri, 1 Sep 2023 13:29:11 +0200 Subject: [PATCH] Move the step of deleting a collection to the very end --- .../documentation/tutorials/async-api.md | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/qdrant-landing/content/documentation/tutorials/async-api.md b/qdrant-landing/content/documentation/tutorials/async-api.md index e1292243c..57b5ba9bf 100644 --- a/qdrant-landing/content/documentation/tutorials/async-api.md +++ b/qdrant-landing/content/documentation/tutorials/async-api.md @@ -220,20 +220,9 @@ await client.async_grpc_collections.Update( ) ``` -### Delete a collection - There are plenty of methods available for collections, such as creating aliases or checking the status of the cluster. This tutorial won't use all of them, but you can always [check the list of available methods and their parameters in the documentation](https://github.com/qdrant/qdrant/blob/master/docs/grpc/docs.md#collections_serviceproto). -Right now, you can just delete the collection you created: - -```python -await client.async_grpc_collections.Delete( - grpc.DeleteCollection( - collection_name="my_collection" - ) -) -``` That's it when it comes to collection management. Let's move on to points (individual vectors) allowing us to load data into our collection ## Step 3: Add points to the collection @@ -355,6 +344,18 @@ You can build even more sophisticated filters with the `must`, `should` and `mus Analogous to search, you can also [scroll our collection](https://qdrant.tech/documentation/concepts/points/#scroll-points) to retrieve all the points or use the [recommendation API](https://qdrant.tech/documentation/concepts/search/#recommendation-api) to find points similar to positive and dissimilar to negative examples. +## Step 6: Delete a collection + +Right now, you can just delete the collection you created, so there is nothing left dangling: + +```python +await client.async_grpc_collections.Delete( + grpc.DeleteCollection( + collection_name="my_collection" + ) +) +``` + ## Supported Python libraries Qdrant integrates with numerous Python libraries. Until recently, only [Langchain]() provided async Python API support.