has_collection
Function
Checks whether a specified collection exists in a vector database.
Prototype
def has_collection(collection_name: str)
Parameters
Parameter |
Data Type |
Required/Optional |
Description |
|---|---|---|---|
collection_name |
String |
Required |
Collection name, which cannot be empty. The maximum length is 1024 characters. |
Return Value
Data Type |
Description |
|---|---|
Bool |
If the collection corresponding to collection_name exists in a vector database, True is returned; otherwise, False is returned. |
Parent topic: MilvusDB