CollectionExistsAsync

This method checks if a collection exists in the vector store.

Declaration

// C#
public async Task<bool> CollectionExistsAsync(CancellationToken cancellationToken = default)

Parameters

  • cancellationToken

    The cancellation token.

Return Value

A task representing the asynchronous operation. The task result contains a boolean indicating whether the collection exists in the database. True if exists, else false.

Implements

Microsoft.Extensions.VectorData.VectorStore