EnsureCollectionExistsAsync
This method ensures the existence of the collection. It creates the collection in the vector store if it does not exist.
Declaration
// C#
public async Task EnsureCollectionExistsAsync(CancellationToken cancellationToken = default)
Parameters
cancellationToken
The cancellation token.
Return Value
A task representing the asynchronous operation that completes when the collection has been created in the database.
Implements
Microsoft.Extensions.VectorData.VectorStoreCollection