Method CreateCollectionAsync
CreateCollectionAsync(string, uint, CancellationToken)
Asynchronously creates a new collection for storing vectors of a fixed size.
public Task CreateCollectionAsync(string collectionIdentifier, uint vectorSize, CancellationToken cancellationToken = default)Parameters
- collectionIdentifierstring
- The unique identifier (name) of the collection to create. An exception may be thrown if the collection already exists. 
- vectorSizeuint
- The fixed dimensionality of the vectors that will be stored. All vectors in this collection must adhere to this size. 
- cancellationTokenCancellationToken
- An optional cancellation token to cancel the asynchronous creation operation. 
Returns
- Task
- A task representing the asynchronous creation operation.