Skip to content

Create Collection if not exists #1022

@Hecht01

Description

@Hecht01

Current Situtation:

To create a collection and check if it doesnt exist the User currently has to:

if not client.collection_exists():
    client.create_collection(
        collection_name="test_collection"
    )

Future Call:

simply use

client.create_collection(collection_name ="test_collection", if_not_exists=True)

This would be a QoL Change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions