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