CollectionExistsAsync

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

Declaration

// C#
public Task<bool> CollectionExistsAsync(string name, CancellationToken cancellationToken = default)

Parameters

  • name

    The name of the collection.

  • 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