func (collectionClient) GetOrCreate(
ctx context.Context,
datasetID uuid.UUID,
name string,
) (*datasets.Collection, error)
Get or create a collection by its name. If the collection does not exist, it will be created.
Parameters
The name of the collection
Returns
A collection object.
collection, err := client.Collections.GetOrCreate(ctx,
datasetID,
"My-collection",
)