Parameters
uuid.UUID
The id of the dataset
string
The name of the collection
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
collection, err := client.Collections.GetOrCreate(ctx,
datasetID,
"My-collection",
)
collection, err := client.Collections.GetOrCreate(ctx,
datasetID,
"My-collection",
)
func (collectionClient) GetOrCreate(
ctx context.Context,
datasetID uuid.UUID,
name string,
) (*datasets.Collection, error)
collection, err := client.Collections.GetOrCreate(ctx,
datasetID,
"My-collection",
)
Was this page helpful?