Method CreateCollectionAsync
CreateCollectionAsync(string, uint, IEnumerable<string>, CancellationToken)
Asynchronously creates a new collection for storing vectors of a fixed size.
public Task CreateCollectionAsync(string collectionIdentifier, uint vectorSize, IEnumerable<string> payloadIndexFields = null, 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.
payloadIndexFieldsIEnumerable<string>An optional collection of payload field names to index. Indexes are required for filtering on these fields when using a remote Qdrant server.
cancellationTokenCancellationTokenAn optional cancellation token to cancel the asynchronous creation operation.
Returns
- Task
A task representing the asynchronous creation operation.