CollectionExistsAsync

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

Declaration

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

Parameters

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