qdrant_client.http.api.collections_api module¶
- class AsyncCollectionsApi(api_client: Union[ApiClient, AsyncApiClient])[source]¶
Bases:
_CollectionsApi- async collection_exists(collection_name: str) InlineResponse2008[source]¶
Returns “true” if the given collection name exists, and “false” otherwise
- async create_collection(collection_name: str, timeout: Optional[int] = None, create_collection: Optional[CreateCollection] = None) InlineResponse2001[source]¶
Create new collection with given parameters
- async delete_collection(collection_name: str, timeout: Optional[int] = None) InlineResponse2001[source]¶
Drop collection and all associated data
- async get_collection(collection_name: str) InlineResponse2006[source]¶
Get detailed information about specified existing collection
- async get_collections() InlineResponse2005[source]¶
Get list name of all existing collections
- async get_optimizations(collection_name: str, _with: Optional[str] = None, completed_limit: Optional[int] = None) InlineResponse20010[source]¶
Get progress of ongoing and completed optimizations for a collection
- async update_collection(collection_name: str, timeout: Optional[int] = None, update_collection: Optional[UpdateCollection] = None) InlineResponse2001[source]¶
Update parameters of the existing collection
- class SyncCollectionsApi(api_client: Union[ApiClient, AsyncApiClient])[source]¶
Bases:
_CollectionsApi- collection_exists(collection_name: str) InlineResponse2008[source]¶
Returns “true” if the given collection name exists, and “false” otherwise
- create_collection(collection_name: str, timeout: Optional[int] = None, create_collection: Optional[CreateCollection] = None) InlineResponse2001[source]¶
Create new collection with given parameters
- delete_collection(collection_name: str, timeout: Optional[int] = None) InlineResponse2001[source]¶
Drop collection and all associated data
- get_collection(collection_name: str) InlineResponse2006[source]¶
Get detailed information about specified existing collection
- get_collections() InlineResponse2005[source]¶
Get list name of all existing collections
- get_optimizations(collection_name: str, _with: Optional[str] = None, completed_limit: Optional[int] = None) InlineResponse20010[source]¶
Get progress of ongoing and completed optimizations for a collection
- update_collection(collection_name: str, timeout: Optional[int] = None, update_collection: Optional[UpdateCollection] = None) InlineResponse2001[source]¶
Update parameters of the existing collection