qdrant_client.http.api.collections_api module
- class AsyncCollectionsApi(api_client: Union[ApiClient, AsyncApiClient])[source]
Bases:
_CollectionsApi
- async collection_exists(collection_name: str) InlineResponse2007 [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) InlineResponse200 [source]
Create new collection with given parameters
- async delete_collection(collection_name: str, timeout: Optional[int] = None) InlineResponse200 [source]
Drop collection and all associated data
- async get_collection(collection_name: str) InlineResponse2005 [source]
Get detailed information about specified existing collection
- async get_collections() InlineResponse2004 [source]
Get list name of all existing collections
- async update_collection(collection_name: str, timeout: Optional[int] = None, update_collection: Optional[UpdateCollection] = None) InlineResponse200 [source]
Update parameters of the existing collection
- class SyncCollectionsApi(api_client: Union[ApiClient, AsyncApiClient])[source]
Bases:
_CollectionsApi
- collection_exists(collection_name: str) InlineResponse2007 [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) InlineResponse200 [source]
Create new collection with given parameters
- delete_collection(collection_name: str, timeout: Optional[int] = None) InlineResponse200 [source]
Drop collection and all associated data
- get_collection(collection_name: str) InlineResponse2005 [source]
Get detailed information about specified existing collection
- get_collections() InlineResponse2004 [source]
Get list name of all existing collections
- update_collection(collection_name: str, timeout: Optional[int] = None, update_collection: Optional[UpdateCollection] = None) InlineResponse200 [source]
Update parameters of the existing collection
- jsonable_encoder(obj: Any, include: Optional[Union[Set[Union[int, str]], Dict[Union[int, str], Any]]] = None, exclude=None, by_alias: bool = True, skip_defaults: Optional[bool] = None, exclude_unset: bool = True, exclude_none: bool = True)[source]
- to_json(model: BaseModel, *args: Any, **kwargs: Any) str [source]